/* =========================================================
   Vertex Design System tokens (default-light)
   Resolved from vtx-ui-react-component-library /tokens
   Built on Ant Design v5 look & feel
   ========================================================= */
:root {
  /* interactive = blue scale */
  --blue-50: #edf7ff;
  --blue-100: #dbeeff;
  --blue-200: #b8ddff;
  --blue-300: #70bbff;
  --blue-500: #0077e0;
  --blue-600: #0066c2;
  --blue-700: #0055a3;
  --navy: #003970;
  --navy-deep: #002247;

  /* neutrals = cool blue-grey scale */
  --grey-0: #fff;
  --grey-50: #f8f9fa;
  --grey-100: #e0e6ec;
  --grey-200: #cfd9e2;
  --grey-300: #c3d0db;
  --grey-400: #a3b4c2;
  --grey-500: #627c93;
  --grey-600: #415362;
  --grey-700: #354655;
  --grey-900: #131d25;

  /* semantic */
  --green: #279b42;
  --green-500: #2eb74d;
  --green-text: #1f642d;
  --green-bg: #f1fdf3;
  --green-bd: #bbf7c6;
  --orange: #cc7a00;
  --orange-text: #7a4b00;
  --orange-bg: #fff9f0;
  --orange-bd: #ffdea8;
  --red: #e5293d;
  --red-text: #9d1a2c;
  --red-bg: #fef3f4;
  --red-bd: #fecacd;
  --brand-green: #6fd44e;

  /* Vertex aubergine, sampled from the wordmark, and the tint a step Vertex
     owns is washed with in both views. Light enough that the grey-600 body
     copy over it still clears AA. */
  --brand-purple: #3e002a;
  --purple-bg: #faf4f8;
  --purple-bd: #ead9e4;
  /* The deeper step a washed row takes under the pointer. Only Vertex's own
     steps hover in aubergine; every other row keeps the view's blue-grey. */
  --purple-wash-hover: #f1e4ed;

  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --link: var(--blue-600);

  --ink: #1f1f1f;
  --body: #262626;
  --muted: var(--grey-500);
  --line: var(--grey-100);
  --line-2: var(--grey-200);
  --app-bg: var(--grey-50);
  --surface: var(--grey-0);
  --radius: 2px;
  --radius-sm: 2px;
  --font-brand: "Lato", "Open Sans", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(19, 29, 37, .06), 0 1px 3px rgba(19, 29, 37, .04);
  --shadow-lg: 0 6px 16px rgba(19, 29, 37, .12);
}

/* ===================== GLOBAL RESETS =====================
   Match the base styles in the original migration-portal.html
   prototype so the app shell inherits the same design-system
   foundation as the standalone HTML file.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--app-bg);
  color: var(--body);
  font-size: 14px;
  line-height: 1.5715;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-brand);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}
a { color: var(--link); text-decoration: none; cursor: pointer; }
a:hover { color: var(--primary-hover); text-decoration: none; }

/* ===================== MIGRATION PORTAL SHELL ===================== */

.mp-vtxwm { height: 34px; width: auto; display: block; }

/* ---- Landing page ---- */

.mp-landing {
  background: var(--surface);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--body);
}

.mp-lnav {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.mp-lnav .mp-vtxwm { height: 30px; }

.mp-lsep {
  width: 1px;
  height: 26px;
  background: var(--line-2);
}

.mp-lapp {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -.1px;
}

.mp-lhero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.mp-leyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.mp-lhero h1 {
  font-family: var(--font-brand);
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.mp-lhero .mp-lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--grey-600);
  margin: 0 0 14px;
  max-width: 56ch;
}

.mp-lhero .mp-sub {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 56ch;
}

.mp-lcta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mp-btn-xl { font-size: 15px; padding: 13px 26px; font-weight: 700; }

.mp-lpanel {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--surface);
}

.mp-lph {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mp-lph svg { width: 16px; height: 16px; flex: none; }

.mp-lpb { padding: 6px 20px 18px; }

.mp-lstep {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mp-lstep:last-child { border-bottom: 0; }

.mp-lsn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--grey-50);
  color: var(--grey-500);
  border: 1.5px solid var(--line-2);
  margin-top: 1px;
}

.mp-lstep.v .mp-lsn { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-700); }
.mp-lstep.m .mp-lsn { background: var(--green-bg); border-color: var(--green-bd); color: var(--green-text); }

.mp-lstep b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.mp-lstep span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.mp-lown {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  margin-left: auto;
  flex: none;
}

.mp-lown.v { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }
.mp-lown.m { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-bd); }

.mp-lband {
  background: var(--grey-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 40px;
}

.mp-lband-in { max-width: 1180px; margin: 0 auto; }

.mp-lband h2 {
  font-family: var(--font-brand);
  font-size: 27px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -.4px;
}

.mp-lband .mp-h2sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 70ch;
  line-height: 1.65;
}

.mp-lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 4-column variant used on the landing features band */
.mp-lgrid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .mp-lgrid, .mp-lgrid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .mp-lgrid, .mp-lgrid.g4 { grid-template-columns: 1fr; } }

.mp-lcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.mp-lcard .mp-lci {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mp-lcard .mp-lci svg { width: 20px; height: 20px; }

.mp-lcard h3 { font-size: 15.5px; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.mp-lcard p { font-size: 13.5px; line-height: 1.65; color: var(--grey-600); margin: 0; }

.mp-lfoot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 40px 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.mp-lfoot .mp-vtxwm { height: 22px; opacity: .75; }
.mp-lfoot .mp-cbsp { margin-left: auto; }

/* ---- Landing: lown.b (shared/both ownership badge) ---- */
.mp-lstep.b .mp-lsn { background: var(--grey-50); border-color: var(--line-2); color: var(--navy); }
.mp-lown.b { background: var(--grey-50); color: var(--navy); border: 1px solid var(--line-2); }

/* ---- Landing: sign-in gate notice ---- */
.mp-lgate {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin-top: 28px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--grey-600);
}
.mp-lgate svg { width: 17px; height: 17px; color: var(--blue-600); flex: none; margin-top: 3px; }

/* ---- Landing: "How it works" strip ---- */
.mp-lband.plain { background: var(--surface); border-top: 0; }
.mp-lhow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.mp-lhowi { padding: 26px 24px; border-right: 1px solid var(--line); }
.mp-lhowi:last-child { border-right: 0; }
.mp-lhn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 13px;
}
.mp-lhowi h4 { margin: 0 0 7px; font-size: 15.5px; color: var(--ink); font-family: var(--font-brand); }
.mp-lhowi p  { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--grey-600); }
@media (max-width: 820px) {
  .mp-lhow { grid-template-columns: 1fr; }
  .mp-lhowi { border-right: 0; border-bottom: 1px solid var(--line); }
  .mp-lhowi:last-child { border-bottom: 0; }
}

/* ---- Landing: "Ready to start?" closing CTA ---- */
.mp-lend {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 40px 10px;
  text-align: center;
}
.mp-lend h2 { font-family: var(--font-brand); font-size: 26px; margin: 0 0 10px; color: var(--ink); letter-spacing: -.4px; }
.mp-lend p  { font-size: 14.5px; color: var(--muted); margin: 0 auto 22px; max-width: 60ch; line-height: 1.7; }

/* ---- Shared button styles ---- */

.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  transition: .15s;
  line-height: 1.2;
  font-family: var(--font-body);
}

.mp-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.mp-btn.default { background: var(--surface); color: var(--body); border-color: var(--line-2); }
.mp-btn.default:hover { color: var(--primary); border-color: var(--blue-300); background: var(--surface); }

/* ---- Login page ---- */

.mp-login {
  background: #0064d6;
  min-height: 100vh;
  padding: 44px 20px;
  font-family: var(--font-body);
}

.mp-lgwrap { max-width: 400px; margin: 0 auto; }

.mp-lgcard {
  background: #fff;
  border-radius: 5px;
  padding: 40px 40px 34px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}

.mp-lgcard .mp-vtxwm { height: 38px; margin: 0 auto 26px; }

.mp-lgcard h1 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  color: #1e212a;
  margin: 0 0 12px;
  letter-spacing: -.2px;
  font-family: var(--font-body);
}

.mp-lgcard .mp-lgsub {
  font-size: 14px;
  color: #65676e;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 26px;
}

/* Floating-label field */
.mp-fld { position: relative; margin-bottom: 16px; }

.mp-fld input {
  width: 100%;
  height: 52px;
  padding: 14px 15px;
  font-size: 15px;
  font-family: inherit;
  color: #1e212a;
  background: #fff;
  border: 1px solid #c9cace;
  border-radius: 3px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}

.mp-fld input:focus { border-color: #0064d6; box-shadow: 0 0 0 1px #0064d6; }

.mp-fld label {
  position: absolute;
  left: 11px;
  top: 15px;
  font-size: 15px;
  color: #65676e;
  background: #fff;
  padding: 0 4px;
  pointer-events: none;
  transition: all .12s ease;
}

.mp-fld input:focus + label,
.mp-fld.fill label {
  top: -8px;
  font-size: 12px;
  color: #0064d6;
}

.mp-fld.err input { border-color: #d03027; box-shadow: 0 0 0 1px #d03027; }
.mp-fld.err input:focus + label,
.mp-fld.err.fill label { color: #d03027; }

/* The v1/v2 arm choice, drawn only where the deployment has both EVATs. The
   label is the flex row, so the gap sits between the box and its words. */
.mp-lgarm { margin: -2px 0 18px; }

.mp-lgarm label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1e212a;
  cursor: pointer;
}

.mp-lgarm input { width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }

.mp-lgbtn {
  width: 100%;
  height: 52px;
  background: #012d5c;
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background .12s;
}

.mp-lgbtn:hover { background: #01213f; }

.mp-lgerr {
  display: none;
  align-items: flex-start;
  gap: 9px;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  color: #8c1f18;
  border-radius: 3px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.mp-lgerr.on { display: flex; }
.mp-lgerr svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.mp-lgid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4f5f7;
  border: 1px solid #e3e5e8;
  border-radius: 3px;
  padding: 11px 13px;
  font-size: 14px;
  color: #1e212a;
  margin-bottom: 18px;
  word-break: break-all;
}

.mp-lgid a {
  color: #0064d6;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.mp-lgid a:hover { text-decoration: underline; }

/* Vertex support sign-in, beside the merchant form.

   A secondary button rather than a primary one: merchants are the larger
   population and the form is their path, so SSO reads as the alternative it
   is. The rule-and-"or" separates the two routes without implying an order. */
.mp-lgsso {
  margin-top: 22px;
  text-align: center;
}

.mp-lgor {
  display: block;
  position: relative;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.mp-lgor::before,
.mp-lgor::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  height: 1px;
  background: #e3e5e8;
}

.mp-lgor::before { left: 0; }
.mp-lgor::after { right: 0; }

.mp-lgssobtn {
  display: block;
  width: 100%;
  height: 52px;
  line-height: 50px;
  background: #fff;
  color: #012d5c;
  border: 1px solid #012d5c;
  border-radius: 3px;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s;
  box-sizing: border-box;
}

.mp-lgssobtn:hover { background: #f4f7fb; }

.mp-lgssohint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #6b7280;
}

.mp-lgback {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: #0064d6;
  cursor: pointer;
  text-decoration: none;
}

.mp-lgback:hover { text-decoration: underline; }

/* ---- SVG icon helper ---- */
svg.mp-vic {
  width: 15px;
  height: 15px;
  flex: none;
  vertical-align: -2px;
  display: inline-block;
}

/* =================================================================
   App shell, customer view and shared design-system tokens
   Ported from the embedded <style> in migration-portal.html so that
   the CLJS SPA (migration-portal-app.html) can use the same CSS.
   ================================================================= */

/* ---- Shared base resets (safe to apply alongside the mp-* rules above) ---- */
.vtxwm { height: 34px; width: auto; display: block; }
.muted { color: var(--grey-500); }
hr { border: none; border-top: 1px solid var(--grey-100); margin: 20px 0; }
code { background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 4px; padding: 2px 6px; font-size: 12.5px; font-family: ui-monospace, Menlo, monospace; color: var(--grey-700); }

/* ---- Full-page layout wrapper ---- */
.wrapper { display: flex; min-height: 100vh; }

/* ---- Sider ---- */
.sider { width: 248px; background: #fff; flex-shrink: 0; border-right: 1px solid var(--grey-100); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { padding: 16px 20px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--grey-100); }
.brand svg, .brand img.vtxwm { height: 30px; width: auto; }
.brand-app { padding: 0 18px 14px; font-family: var(--font-brand); font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: -.1px; line-height: 1.35; }
.brand-user { font-size: 10.5px; color: var(--grey-400); padding: 8px 20px 12px; word-break: break-word; border-bottom: 1px solid var(--grey-100); }
.menu { padding: 10px; flex: 1; }
.menu-cap { font-size: 11px; font-weight: 700; color: var(--grey-400); text-transform: uppercase; letter-spacing: .5px; padding: 14px 12px 6px; font-family: var(--font-brand); }
.menu .sep { height: 1px; background: var(--grey-100); margin: 8px 12px; }
.mi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #262626; border-radius: 2px; font-size: 14px; margin: 2px 0; position: relative; cursor: pointer; }
.mi svg { width: 16px; height: 16px; color: var(--grey-500); }
.mi .mnum { font-size: 11px; color: var(--grey-500); font-weight: 700; min-width: 11px; }
.mi:hover { background: var(--grey-50); color: #1f1f1f; }
.mi.active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.mi.active svg { color: var(--blue-600); }
.mi.active:before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-600); }
.mdot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-right: 2px; background: var(--grey-300); display: inline-block; }
.mdot.done { background: #279b42; }
.mdot.prog { background: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }

/* ---- Layout ---- */
.layout { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.header { height: 56px; background: #fff; border-bottom: 1px solid var(--grey-100); display: flex; align-items: center; padding: 0 22px; gap: 16px; position: sticky; top: 0; z-index: 40; }
.header .burger { font-size: 18px; color: var(--grey-500); cursor: pointer; }
.header .title { font-family: var(--font-brand); font-size: 17px; font-weight: 700; color: #1f1f1f; }
.header .spacer { flex: 1; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; font-family: var(--font-brand); }
.content { padding: 22px 26px 60px; width: 100%; max-width: 1280px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 2px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--blue-600); background: var(--blue-600); color: #fff; transition: .15s; line-height: 1.2; font-family: var(--font-body); }
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn.default { background: #fff; color: #262626; border-color: var(--grey-200); }
.btn.default:hover { color: var(--blue-600); border-color: var(--blue-300); background: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: var(--red-text); border-color: var(--red-text); }
.btn.xl { font-size: 15px; padding: 12px 26px; }
.btn.off { background: var(--grey-50); color: var(--grey-400); border-color: var(--grey-200); cursor: default; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: 5px 12px; font-size: 13px; }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--grey-100); border-radius: 2px; box-shadow: 0 1px 2px rgba(19,29,37,.06), 0 1px 3px rgba(19,29,37,.04); margin-bottom: 20px; }
.card .hd { padding: 18px 22px; border-bottom: 1px solid var(--grey-100); }
.card .ct { font-family: var(--font-brand); font-size: 16px; font-weight: 700; color: #1f1f1f; }
.card .cc { color: var(--grey-500); font-size: 13px; margin-top: 3px; }
.card .bd { padding: 20px 22px; }
.row { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Tags ---- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 2px; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.tag:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.done { background: #f1fdf3; color: #1f642d; border-color: #bbf7c6; }
.tag.prog { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.tag.wait { background: #fff9f0; color: #7a4b00; border-color: #ffdea8; }
.tag.todo { background: var(--grey-50); color: var(--grey-500); border-color: var(--grey-200); }
.tag.warn { background: #fef3f4; color: #9d1a2c; border-color: #fecacd; }
.tag.info { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.tag.plain:before { display: none; }

/* ---- Notes and alerts ---- */
.note { border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--grey-700); border-radius: 2px; padding: 12px 15px; font-size: 13.5px; margin: 14px 0; display: flex; align-items: flex-start; gap: 8px; }
.note.ai { align-items: center; line-height: 1.6; }
.note.ai svg { width: 16px; height: 16px; flex: none; }
.alert { border-radius: 2px; padding: 11px 16px; font-size: 13.5px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--grey-700); }
.alert.warn { border-color: #ffdea8; background: #fff9f0; color: #7a4b00; }

/* ---- Multi-merchant ops view ---- */

/* Ops milestone table — clickable summary rows */
.opsrow { cursor: pointer; }
.opsrow:hover { background: var(--grey-50); }
.opsrow.cur { background: var(--blue-50); }
.opsrow.cur:hover { background: var(--blue-100); }

/* Caret indicator in the first column */
.ocar { display: inline-block; width: 14px; color: var(--muted); font-size: 10px; vertical-align: 1px; }

/* Mini progress bar inside the checks cell */
.obar { height: 4px; background: var(--grey-100); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.obar span { display: block; height: 100%; background: var(--green-500); border-radius: 2px; }

/* Expanded detail row */
.opsdet > td { background: var(--grey-50); padding: 0 !important; }
.odwrap { padding: 14px 16px 16px; }
.odtab { margin: 0; background: var(--surface); }
.odtab th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }
.odtab td { vertical-align: top; font-size: 12.5px; }
.odgrp td { background: var(--grey-50); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-600); }

/* Tier badge — shown inline beside the merchant name in the ops card title */
.tiernav { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; vertical-align: 2px; margin-left: 4px; }
.tiernav.strategic { background: var(--navy); color: #fff; }
.tiernav.standard  { background: var(--grey-100); color: var(--grey-600); }

/* ARR · CSM line below the merchant name */
.tiermeta { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; }

/* Large counter value used in the ops stats row */
.counter { font-family: var(--font-brand); font-size: 32px; font-weight: 900; letter-spacing: -1px; }

/* Context bar (support-only, above the content area) */
.ctxbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 2px; padding: 10px 15px; font-size: 13px; margin-bottom: 14px; }
.ctxbar .cbrole { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 100px; padding: 3px 10px; }
.ctxbar .cbsp { margin-left: auto; }
.ctxbar .aclink { color: #fff; text-decoration: underline; cursor: pointer; }

/* Book of business table
   Taken from the prototype verbatim rather than re-invented. The port's own
   version used the same class names with different values -- no frame round
   the table, a mixed-case header inheriting the generic `thead th` rule, and
   no `min-width`, so the eight columns squeezed instead of scrolling. */
.opsacct { margin-bottom: 18px; }
.actbl { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; }
.actbl table { font-size: 13.5px; min-width: 1000px; }
/* The journey board lays its own columns out and must not inherit the floor
   above; stated here, beside the rule it overrides, rather than relying on a
   later block winning on source order. */
.actbl.jbboard table { min-width: 0; }
.actbl thead th { padding: 9px 11px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.actbl tbody td { padding: 10px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.actbl tbody tr:last-child td { border-bottom: none; }

/* The journey board's two columns that hold prose rather than a value.
   `.actbl tbody td` sets `white-space: nowrap` for the account table, where
   every cell is a short value and wrapping would look like a fault; the
   milestone board's Detail column is a sentence, and on one line it pushes the
   table's own width out until the row scrolls. Scoped to these two cells
   rather than lifted from the shared rule, so the account table is untouched. */
/* **Selector written to out-specify `.actbl tbody td`, not merely to follow
   it.** That rule is (0,1,2) -- one class, two elements -- so a bare
   `.jbdetail` at (0,1,0) loses however far down the file it sits, and the
   cell keeps `nowrap`. Matching its shape and adding the class wins on the
   class count rather than on source order, which is what survives somebody
   reordering the file. */
.actbl tbody td.jbdetail { white-space: normal; line-height: 1.45; }
/* The milestone name wraps for the same reason; `Current` sits under it on its
   own line, so a badge on one row cannot widen the column for all five. */
.actbl tbody td.jbms { white-space: normal; }
/* The Dates column wraps too (ENT-4423): `26 Oct 2026 → 26 Oct 2026` on one
   line is wider than the column's 13%, and under the fixed layout below it ran
   into Detail rather than widening its own cell. Set on the cell's own wrapper,
   which overrides the inherited `nowrap` without a specificity contest; each
   date stays whole, so the break falls after the arrow. */
.jbdates { white-space: normal; }
.jbdate { white-space: nowrap; }
.jbms .tag { margin-top: 5px; }

/* **`table-layout: fixed` is what actually makes the Detail column wrap.**
   `white-space: normal` only grants permission to wrap; under the default
   `auto` layout the table still sizes its columns to their content and simply
   grows, so a long sentence widens the table past its container and the row
   runs off the right edge instead of folding. Fixed layout sizes the columns
   from the header widths below and holds them there, which is what leaves the
   prose no choice but to wrap.

   Scoped to the journey board alone. The account table shares `.actbl` and
   has its own column behaviour; `min-width` stays on it so narrow viewports
   still scroll rather than crushing the five value columns. */
.jbboard > table { table-layout: fixed; min-width: 0; width: 100%; }

/* **`>` all the way down, because the board nests a second table inside its
   own rows.** An unscoped `.jbboard th:nth-child(2)` matches the step table's
   second column as readily as the board's, and the two describe different
   columns -- so the nested header would be handed a width meant for Owner.
   The child combinators keep each rule to the table it was written for. */
.jbboard > table > thead > tr > th:nth-child(1),
.jbboard > table > tbody > tr > td:nth-child(1) { width: 19%; }
.jbboard > table > thead > tr > th:nth-child(2),
.jbboard > table > tbody > tr > td:nth-child(2) { width: 12%; }
.jbboard > table > thead > tr > th:nth-child(3),
.jbboard > table > tbody > tr > td:nth-child(3) { width: 11%; }
.jbboard > table > thead > tr > th:nth-child(4),
.jbboard > table > tbody > tr > td:nth-child(4) { width: 11%; }
.jbboard > table > thead > tr > th:nth-child(5),
.jbboard > table > tbody > tr > td:nth-child(5) { width: 13%; }
.jbboard > table > thead > tr > th:nth-child(6),
.jbboard > table > tbody > tr > td:nth-child(6) { width: 34%; }

/* The expanded step table lays itself out from the percentages its own header
   carries, so it is fixed too rather than left to size from content. Auto
   layout here gave the widest step name the column it wanted and squeezed the
   two prose columns into a word per line. */
.jbboard .odtab { table-layout: fixed; width: 100%; }

/* **Every column of the step table wraps, not just the prose two.** The step
   name is the longest value in the table and under `nowrap` it takes whatever
   width it needs, which under fixed layout means overflowing its cell. The
   account table's `nowrap` is right for a table of short values and wrong for
   every column of this one. */
.jbboard .odtab tbody td { white-space: normal; }
/* Group header rows carry the strategic / standard split */
.acgrp td { background: var(--grey-50); border-bottom: 1px solid var(--line); padding: 8px 11px !important;
  border-left: 3px solid var(--line-2); }
.acgrp.strategic td { border-left-color: var(--navy); background: #f2f6fa; }
.acgrp b { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }
.acgrp span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 9px; }
.acgrp .acn { float: right; margin-left: 0; font-size: 11.5px; color: var(--muted); }
.actbl tbody tr.acgrp:hover td { background: var(--grey-50); }
.actbl tbody tr.acgrp.strategic:hover td { background: #f2f6fa; }
.acr { cursor: pointer; }
.acr:hover { background: var(--grey-50); }
.acr.cur { background: var(--blue-50); }
.acr.cur:hover { background: var(--blue-100); }
.acname { min-width: 214px; max-width: 272px; }
.acname > .acav { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; vertical-align: middle; font-family: var(--font-brand); }
.acname > span:last-child { display: inline-block; vertical-align: middle; line-height: 1.4; max-width: 214px; }
.acname b { display: block; color: var(--ink); font-size: 13.5px; }
/* The contact line is useful but must not set the width of the whole table. */
.acname > span:last-child > span { display: block; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acr .ms { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-300); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.acr .ms.done { background: var(--green-500); }
.acr .ms.prog { background: var(--blue-500); }
.acpr { min-width: 108px; }
.acbar { display: inline-block; width: 56px; height: 5px; border-radius: 100px; background: var(--grey-100);
  overflow: hidden; vertical-align: middle; margin-right: 9px; }
.acbar i { display: block; height: 100%; background: var(--green); border-radius: 100px; }
.acpct { font-size: 12.5px; color: var(--grey-600); font-weight: 600; }
.acb { font-size: 11.5px; font-weight: 700; border-radius: 100px; padding: 3px 10px; display: inline-block; }
.acb.open { background: var(--orange); color: #fff; }
.acb.none { background: var(--grey-100); color: var(--muted); font-weight: 600; }
.acarr { font-weight: 600; color: var(--ink); }
.acsel { text-align: right; }
.aclink { color: var(--primary); font-weight: 600; font-size: 12.5px; }
.acnow { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--primary); }
.tiernav { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px;
  border-radius: 100px; vertical-align: 2px; margin-left: 4px; }
.tiernav.strategic { background: var(--navy); color: #fff; }
.tiernav.standard { background: var(--grey-100); color: var(--grey-600); }
.tiermeta { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; }
/* `:not(.jbboard)` so the account table keeps its scrolling floor on a narrow
   viewport while the journey board does not. Without the exclusion this rule
   wins on source order and re-imposes the 1000px the board is trying to drop,
   and the Detail column goes back to running off the right edge. */
@media (max-width: 1200px) { .actbl:not(.jbboard) table { min-width: 1000px; } }

/* Milestone status dot in ops table */
.ms { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--grey-300); vertical-align: 1px; }
.ms.done { background: var(--green); }
.ms.prog { background: var(--blue-500); }
.ms.todo { background: var(--grey-300); }

/* Pending batch requests panel */
.obwrap { border: 1px solid var(--line); border-radius: 2px; background: #fff; margin-bottom: 16px; }
.obhd { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--grey-50); }
.obhd svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--primary); }
.obhd > div { flex: 1; min-width: 0; }
.obhd b { display: block; font-size: 14px; color: var(--ink); }
.obhd span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.obcount { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 100px; background: var(--orange-bg); color: var(--orange-text); border: 1px solid var(--orange-bd); white-space: nowrap; }
.obcount.none { background: var(--grey-50); color: var(--muted); border-color: var(--grey-200); }
.obrow { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.obrow:last-child { border-bottom: none; }
.obrow.pend { background: #fffdf0; }
.obtk { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--grey-300); background: #fff; }
.obtk.done { background: var(--green); border-color: var(--green); color: #fff; }
.obtk svg { width: 12px; height: 12px; }
.obmain { flex: 1; min-width: 0; }
.obt { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.obm { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---- Go-Live sequential action cards ---- */
/* Green "done" banner — shown when testing is complete (top) or go-live is done (action 3) */
.gldone { display: flex; gap: 17px; align-items: flex-start; background: var(--green-bg); border: 1px solid var(--green-bd); border-radius: 2px; padding: 20px 22px; margin: 20px 0; }
.gldone .gi { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.gldone .gi svg { width: 24px; height: 24px; }
.gldone h3 { margin: 0 0 6px; font-size: 19px; font-family: var(--font-brand); color: var(--green-text); }
.gldone p  { margin: 0; font-size: 14px; color: var(--grey-600); line-height: 1.65; max-width: 72ch; }

/* Orange "not ready yet" banner */
.glwait { display: flex; gap: 17px; align-items: flex-start; background: var(--orange-bg); border: 1px solid var(--orange-bd); border-radius: 2px; padding: 20px 22px; margin: 20px 0; }
.glwait .gi { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.glwait .gi svg { width: 23px; height: 23px; }
.glwait h3 { margin: 0 0 6px; font-size: 18px; font-family: var(--font-brand); color: var(--ink); }
.glwait p  { margin: 0; font-size: 14px; color: var(--grey-600); line-height: 1.65; max-width: 74ch; }
.glwait .glnext { margin-top: 12px; font-size: 13.5px; }

/* Pre-req step buttons in the "not ready" banner */
.glpre { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.glp { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--grey-200); border-radius: 100px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--grey-600); cursor: pointer; font-family: inherit; transition: .12s; }
.glp:hover { border-color: var(--blue-300); color: var(--primary); }
.glp svg { width: 14px; height: 14px; color: var(--green-text); }
.glp.ok { border-color: var(--green-bd); background: var(--green-bg); color: var(--green-text); }
.glp .gpd { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--grey-300); flex: none; }
.glp .gps { font-size: 11px; font-weight: 600; opacity: .7; margin-left: 2px; }

/* Individual action card */
.glact { border: 1px solid var(--line); border-radius: 2px; padding: 22px; margin-bottom: 16px; background: #fff; }
.glact.locked { background: var(--grey-50); border-style: dashed; }
.glact .gln { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.glact h4 { margin: 0 0 9px; font-size: 16.5px; color: var(--ink); font-family: var(--font-brand); }
.glact p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.7; color: var(--grey-600); max-width: 74ch; }

/* "Done" confirmation strip inside an action card */
.gldn { display: inline-flex; align-items: center; gap: 9px; background: var(--green-bg); border: 1px solid var(--green-bd); color: var(--green-text); border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.gldn svg { width: 15px; height: 15px; }

/* "Locked" caption below a disabled action button */
.gllock { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.gllock svg { width: 14px; height: 14px; }

/* Info note inside action cards */
.glnote { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--primary); background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 2px; padding: 9px 11px; margin-bottom: 14px; line-height: 1.65; }
.glnote svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.glnote div { flex: 1; }

/* ---- Historical data migration ---- */

/* Option buttons for sample/range pickers */
.hrng { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 13px; }
.hrng.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .hrng, .hrng.three { grid-template-columns: 1fr; } }
.hro { border: 1px solid var(--grey-200); background: #fff; border-radius: 2px; padding: 13px 12px; text-align: left; font: inherit; transition: .15s; cursor: pointer; }
.hro:hover { border-color: var(--blue-300); background: var(--blue-50); }
.hro.sel { border-color: var(--primary); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--primary); }
.hro.off { opacity: .5; cursor: default; pointer-events: none; }
.hro b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; font-family: var(--font-brand); }
.hro span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* Pending notice inside the hist modal */
.hwait { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 13px; border: 1px solid var(--blue-200); background: var(--blue-50); border-radius: 2px; padding: 9px 11px; font-size: 12.5px; color: var(--blue-700); line-height: 1.65; }
.hwait svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* Applied-result success strip */
.htres { margin: 0 0 13px; border: 1px solid var(--green-bd); background: var(--green-bg); border-radius: 2px; padding: 9px 11px; font-size: 12.5px; color: var(--green-text); line-height: 1.65; display: flex; align-items: center; gap: 7px; }
.htres svg { width: 13px; height: 13px; flex: none; }

/* ---- Confirmation modal ---- */
.mmask {
  position: fixed;
  inset: 0;
  background: rgba(19, 29, 37, .5);
  opacity: 0;
  visibility: hidden;
  transition: .18s;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mmask.on { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  width: fit-content;
  min-width: min(580px, 100%);
  max-width: 95vw;
  max-height: 88vh;
  overflow: auto;
  transform: translateY(10px) scale(.985);
  transition: .18s;
}
.mmask.on .modal { transform: none; }
.mhd { padding: 22px 24px 0; display: flex; gap: 15px; align-items: flex-start; }
.mic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.mic svg { width: 21px; height: 21px; }
.mic.red   { background: var(--red-bg);    color: var(--red); }
.mic.amber { background: var(--orange-bg); color: var(--orange); }
.mic.green { background: var(--green-bg);  color: var(--green); }
.mhd h3 { margin: 0; font-size: 17.5px; font-family: var(--font-brand); color: var(--ink); line-height: 1.35; }
.mbd { padding: 13px 24px 2px 79px; font-size: 14px; line-height: 1.7; color: var(--grey-600); }
.mbd p  { margin: 0 0 11px; }
.mbd ul { margin: 0 0 11px; padding-left: 19px; line-height: 1.75; }
.mft { padding: 18px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---- Read-only notice ---- */
.robar { display: flex; align-items: flex-start; gap: 11px; background: #fff9f0; border: 1px solid #ffdea8; color: #7a4b00; border-radius: 2px; padding: 12px 15px; font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
#v-cust.ro li.clickable { cursor: default; }
#v-cust.ro li.clickable:hover .tk.todo { border-color: transparent; background: var(--grey-200); }

/* ---- Hero banner ---- */
.hero { background: linear-gradient(100deg, var(--navy), var(--blue-700) 70%, var(--blue-600)); color: #fff; border-radius: 2px; padding: 24px 26px; margin-bottom: 20px; display: flex; align-items: center; gap: 26px; position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(19,29,37,.12); }
.hero:after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(111,212,78,.25), transparent 70%); }
.hero .big { flex: 1; z-index: 1; }
.hero h1 { font-size: 23px; color: #fff; margin: 0 0 6px; }
.hero .sub { color: #c7ddf3; font-size: 14px; margin: 0; }

/* ---- Product grid ---- */
.prodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-bottom: 16px; }
.prod { border: 1px solid var(--grey-100); border-radius: 2px; padding: 13px 15px; transition: .15s; cursor: pointer; background: #fff; position: relative; }
.prod:hover { border-color: var(--blue-300); box-shadow: 0 1px 2px rgba(19,29,37,.06), 0 1px 3px rgba(19,29,37,.04); }
.prod.on { border-color: var(--blue-200); background: var(--blue-50); }
.prod.off { background: var(--grey-50); opacity: .72; }
.prod .pn { font-family: var(--font-brand); font-weight: 700; font-size: 13.5px; color: #1f1f1f; display: flex; align-items: flex-start; gap: 7px; line-height: 1.35; }
.prod .pn svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--blue-600); }
.prod.off .pn svg { color: var(--grey-400); }
.prod .pd { font-size: 12px; color: var(--grey-500); margin: 6px 0 9px; line-height: 1.5; }
.prod .pcore { position: absolute; top: 11px; right: 12px; }

/* A product's footnote: how it is offered, under the description. */
.prod .ppkg {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11.5px; color: var(--grey-500); line-height: 1.45;
  margin-top: 2px; padding-top: 9px; border-top: 1px dashed var(--grey-100);
}
.prod .ppkg svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--grey-400); }

/* The product's name links to its page on vertexinc.com, and its ::after
   covers the box so the whole tile is that link. The docs link sits above it. */
.prod a.plink { color: inherit; text-decoration: none; }
.prod a.plink::after { content: ""; position: absolute; inset: 0; }
.prod a.plink:focus-visible { outline: none; }
.prod a.plink:focus-visible::after { outline: 2px solid var(--blue-600); outline-offset: 2px; }
/* Boxes in a row share its height; the docs link sits at the foot of each, so
   the links line up across the row whatever the length of the copy above. */
.prod { display: flex; flex-direction: column; }
.prod .ppkg.pdocs { margin-top: auto; }
.prod .ppkg:not(.pdocs) { margin-bottom: 9px; }
.prod .pdocs a { position: relative; z-index: 1; color: var(--blue-600); font-weight: 600; text-decoration: none; }
.prod .pdocs a:hover { text-decoration: underline; }

/* A product the merchant does not hold, which can be enquired about. Dashed
   rather than faded: it is available to ask about, not switched off. */
.prod.avail { border-style: dashed; opacity: 1; background: #fff; }
.prod.avail:hover { border-color: var(--blue-600); border-style: solid; background: var(--blue-50); }
.prod .pask {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--blue-600);
  margin-top: 2px; padding-top: 9px; border-top: 1px dashed var(--grey-100);
}
.prod .pask svg { width: 13px; height: 13px; flex: none; }

/* ---- Milestone timeline ---- */
.steps { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin: 6px 6px; }
.steps:before { content: ""; position: absolute; top: 20px; left: 48px; right: 48px; height: 2px; background: var(--grey-100); z-index: 0; }
.steps .fill { position: absolute; top: 20px; left: 48px; height: 2px; background: #279b42; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; flex: 1; cursor: pointer; }
.step:hover .sdot { transform: scale(1.06); }
.sdot { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; border: 4px solid var(--grey-50); font-size: 15px; font-family: var(--font-brand); }
.step.done .sdot { background: #279b42; }
.step.prog .sdot { background: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.step.todo .sdot { background: var(--grey-400); }
.step.sel .sdot { box-shadow: 0 0 0 3px var(--blue-600); }
.sdot svg { width: 19px; height: 19px; }
.slabel { font-size: 13.5px; font-weight: 600; color: #262626; font-family: var(--font-brand); }
.sstate { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--grey-500); margin-top: 2px; }
.step.prog .slabel { color: var(--blue-700); }
.step.sel .slabel { color: var(--blue-600); }
.step.lockd .sdot { background: var(--grey-100); color: var(--muted); box-shadow: none; }
.step.lockd .slabel { color: var(--muted); }

/* Locked task rows (step is gated — interacting opens the blocked modal) */
.tasks li.lockedrow { opacity: .6; cursor: not-allowed; }
.tasks li.lockedrow:hover { background: transparent; }
.prog-wrap { height: 8px; background: var(--grey-100); border-radius: 5px; overflow: hidden; }
.prog-bar { height: 100%; background: var(--blue-600); border-radius: 5px; transition: width .3s ease; }

/* ---- Task checklist ---- */
.owner { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.owner.vertex { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }
.owner.merchant { background: #f1fdf3; color: #1f642d; border: 1px solid #bbf7c6; }
.owner.both { background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--grey-200); }
ul.tasks { list-style: none; margin: 0; padding: 0; }
ul.tasks > li { display: flex; align-items: flex-start; gap: 11px; padding: 10px 2px; border-bottom: 1px solid var(--grey-100); }
ul.tasks > li:last-child { border-bottom: none; }

/* ---- Steps Vertex owns ----
   Washed aubergine in both views so a merchant scanning the list can see at
   a glance what is waiting on Vertex rather than on them, and support can see
   the same split on the board. Keyed on the owner, not the status: a Vertex
   step is Vertex's whether it is done or still to do. The left edge carries
   the brand colour, which the tint is too pale to state on its own. */
ul.tasks > li.vtx { background: var(--purple-bg); box-shadow: inset 3px 0 0 var(--brand-purple); padding-left: 10px; }
.odtab tr.vtx > td { background: var(--purple-bg); }
.odtab tr.vtx > td:first-child { box-shadow: inset 3px 0 0 var(--brand-purple); }
/* The wash is painted on the cells, which cover the row's own hover; without
   this a Vertex step would be the one row that does not answer the pointer.
   Aubergine here and nowhere else: the colour marks whose step it is, so a
   merchant's step hovering in it would say something untrue. Theirs keeps the
   view's blue-grey, from `tbody tr:hover`. */
.odtab tr.vtx:hover > td { background: var(--purple-wash-hover); }
.tk { width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #fff; border: 2px solid transparent; transition: all .15s ease; }
.tk svg { width: 12px; height: 12px; }
.tk.done { background: #279b42; border-color: #279b42; }
.tk.prog { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.tk.todo { background: #fff; border-color: var(--grey-300); }
.tk.todo svg { opacity: 0; }
.tk.cond { background: #fff9f0; border-color: #ffdea8; }
li.clickable { cursor: pointer; }
li.clickable:hover .tk.todo { border-color: #279b42; background: #f1fdf3; }
li.clickable:hover .tk.todo svg { opacity: 1; color: #279b42; }
/* The internal board's tick on a Vertex step is a button: support's control. */
button.tk { padding: 0; font: inherit; cursor: pointer; }
button.tk:not([disabled]):hover { box-shadow: 0 0 0 3px #d6f5dc; }
button.tk.todo:not([disabled]):hover, button.tk.prog:not([disabled]):hover { border-color: #279b42; background: #f1fdf3; }
button.tk:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
button.tk[disabled] { cursor: not-allowed; }
li.clickable:hover .tk.done { opacity: .65; }
li.clickable:hover .tname { color: var(--blue-600); }
.tbody { flex: 1; min-width: 0; }
.tname { font-size: 14px; font-weight: 600; color: #262626; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
li.done .tname { color: var(--grey-500); }
.tmeta { font-size: 12.5px; color: var(--grey-500); margin-top: 3px; }
.grp { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-500); font-weight: 700; margin: 16px 0 2px; }
.tact { flex: none; align-self: center; border: 1px solid var(--grey-200); background: #fff; color: var(--blue-600); font-size: 12.5px; font-weight: 600; border-radius: 2px; padding: 5px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: .15s; }
.tact:hover { border-color: var(--blue-300); background: var(--blue-50); }
.tact svg { width: 13px; height: 13px; }
/* Write controls under a step (merchant view). Disabled ones stay visible and
   say why: a viewer is shown what it cannot do, not left to wonder. */
.stepctl { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tact:disabled { color: var(--grey-400); background: var(--grey-50); cursor: not-allowed; }
.tact:disabled:hover { border-color: var(--grey-200); background: var(--grey-50); }
/* Secondary: a bordered button like Mark complete, in a neutral colour so the
   primary action still reads as the one to take. It lost its border once and
   read as plain text. */
.tact.quiet { color: var(--grey-600); }
.tact.quiet:hover { border-color: var(--grey-400); background: var(--grey-50); color: var(--ink); }
.stepwhy { font-size: 12px; color: var(--muted); flex-basis: 100%; }
.stepwait { margin-top: 6px; font-size: 12.5px; color: var(--grey-600); display: flex; align-items: center; gap: 4px; }
.stepwait svg { width: 13px; height: 13px; flex: none; color: var(--muted); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 18px; border-bottom: 1px solid var(--grey-100); }
.tab { padding: 10px 16px; font-size: 14px; font-weight: 600; color: #262626; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--blue-600); }
.tab.on { color: var(--blue-600); border-bottom-color: var(--blue-600); }

/* ---- Tables ---- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
thead th { text-align: left; padding: 11px 14px; background: var(--grey-50); color: var(--grey-600); font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--grey-100); font-family: var(--font-brand); }
tbody td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
tbody tr:hover { background: #f5f8fb; }
tr.diffrow td { background: #fffaf0; }
tr.diffrow:hover td { background: #fff5e3; }

/* ---- Expandable table rows ---- */
.exp { cursor: pointer; }
.exp .caret { display: inline-block; transition: .2s; color: var(--grey-500); margin-right: 6px; }
.exp.open .caret { transform: rotate(90deg); }
.detail { background: var(--grey-50); }
.detail td { padding: 0; border-bottom: 1px solid var(--grey-100); }
.detail .inner { padding: 15px 18px; border-left: 3px solid var(--blue-600); margin: 0; }
.detail.warn .inner { border-left-color: #e5293d; }
.steps-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 2px; background: var(--grey-100); color: var(--grey-500); border: 1px solid var(--grey-200); }
.chip.on { background: #fef3f4; color: #9d1a2c; border-color: #fecacd; }
.chip.mid { background: #fff9f0; color: #7a4b00; border-color: #ffdea8; }
.chip.end { background: #f1fdf3; color: #1f642d; border-color: #bbf7c6; }
.arrow { color: var(--grey-400); }

/* ---- Diff viewer ---- */
.diff { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--grey-100); border-radius: 2px; overflow: hidden; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.diff .h { background: var(--grey-50); padding: 9px 13px; font-weight: 700; border-bottom: 1px solid var(--grey-100); }
.diff .b { padding: 13px; white-space: pre-wrap; }
.diff .l { border-right: 1px solid var(--grey-100); }

/* ---- Terminal output ---- */
pre.term { background: #131d25; color: #dbeeff; padding: 15px 17px; border-radius: 2px; font-size: 13px; overflow: auto; margin: 0; }

/* ---- File upload drop zone ---- */
.drop { border: 1px dashed var(--grey-300); border-radius: 2px; padding: 24px; text-align: center; color: var(--grey-500); background: var(--grey-50); cursor: pointer; transition: .15s; }
.drop:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }

/* ---- Configuration notes ---- */

/* Internal notes section in ops task breakdown */
.cnotes { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 9px; }
.cnh { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cnh svg { width: 12px; height: 12px; }
.cnhbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--orange-text); background: var(--orange-bg); border: 1px solid var(--orange-bd); border-radius: var(--radius-sm); padding: 1px 6px; margin-left: 2px; }
.cnhbadge svg { width: 10px; height: 10px; }
.cnsub { font-size: 11.5px; color: var(--muted); margin: -4px 0 8px; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cnnone { font-size: 12px; color: var(--muted); margin: 0 0 7px; }

/* Individual note card */
.cnote { background: var(--grey-50); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 9px 11px; margin-bottom: 7px; }
.cnote .cna { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 4px; }
.cnote .cnau { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.cnote .cnts { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cnote .cntx { font-size: 12.5px; line-height: 1.65; color: var(--grey-600); white-space: pre-wrap; }
.cnshared { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--green-text); background: var(--green-bg); border: 1px solid var(--green-bd); border-radius: var(--radius-sm); padding: 1px 6px; }
.cnint { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--orange-text); background: var(--orange-bg); border: 1px solid var(--orange-bd); border-radius: var(--radius-sm); padding: 1px 6px; }
.cnint svg { width: 10px; height: 10px; }

/* Evidence pills */
.cnev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cnevi { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 11.5px; color: var(--grey-600); max-width: 100%; }
.cnevi svg { width: 12px; height: 12px; flex: none; color: var(--muted); }
.cnevi b { font-weight: 600; color: var(--ink); }

/* Add note button */
.cnadd { margin-top: 2px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--primary); font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.cnadd:hover:not(:disabled) { border-color: var(--blue-300); background: var(--blue-50); border-style: solid; }
/* Notes off for the step, or a completed migration: the reason is the
   button's title. The PoC never refused a note, so it had no such state. */
.cnadd:disabled { color: var(--grey-400); cursor: not-allowed; }
.cnadd svg { width: 12px; height: 12px; }

/* Warning box in the add-note modal */
.cnwarn { display: flex; gap: 9px; align-items: flex-start; background: var(--orange-bg); border: 1px solid var(--orange-bd); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 12.5px; line-height: 1.6; color: var(--orange-text); }
.cnwarn svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.cnlbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 5px; }
.cnlbl .opt { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.cnhint { font-size: 12px; color: var(--muted); margin: 7px 0 0; line-height: 1.6; }

/* A quoted note inside a panel row or a modal: what the merchant told us,
   set apart from the portal's own copy around it. */
.obnote {
  border-left: 3px solid var(--grey-100); background: var(--grey-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px; margin: 10px 0;
  font-size: 12.5px; color: var(--grey-600); line-height: 1.6;
}
.obnote b {
  display: block; font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}

/* Evidence rows in the add-note modal */
.evrow { display: flex; gap: 7px; margin-bottom: 7px; align-items: center; }
.evrow select, .evrow input { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 7px 9px; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); }
.evrow select { flex: none; width: 118px; }
.evrow input { flex: 1; min-width: 0; }
.evrow .evx { flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: var(--radius-sm); width: 30px; height: 32px; cursor: pointer; font-size: 15px; line-height: 1; }
.evrow .evx:hover { color: var(--red); border-color: var(--red-bd); }

/* Shared note shown in the merchant's task list */
.mnote { margin-top: 8px; background: var(--blue-50); border: 1px solid var(--blue-300); border-radius: var(--radius-sm); padding: 8px 10px; cursor: default; }
.mnote .mnh { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--primary); margin-bottom: 4px; }
.mnote .mnh svg { width: 12px; height: 12px; }
/* The merchant's own note: neutral, so Vertex's stand out as Vertex's. */
.mnote.mine { background: var(--grey-50); border-color: var(--grey-200); }
.mnote.mine .mnh { color: var(--grey-600); }
.noteform { margin-top: 8px; }
.noteform textarea { width: 100%; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--grey-200); border-radius: 2px; resize: vertical; }
.noteform textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
/* Notes on the internal board's steps, under the step's name. */
.bnotes { margin-top: 8px; font-weight: normal; }
.bnotes .mnh { flex-wrap: wrap; white-space: nowrap; row-gap: 2px; }
/* The step's owner, with *Add a note* beneath it: out of the step's own column. */
.towner { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; white-space: nowrap; }
.addnote { border: none; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--blue-600); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.addnote svg { width: 12px; height: 12px; }
.addnote:hover { text-decoration: underline; }
.addnote:disabled { color: var(--grey-400); cursor: not-allowed; text-decoration: none; }

/* *Open guide* shares `.addnote`'s shape, a line above it in the same column,
   and is the quieter of the two: it reads where the other writes. */
.guidelink { color: var(--grey-600); }
.guidelink:hover { color: var(--blue-600); }
.mnote .mnts { font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 11px; }
.mnote .mnx { font-size: 12.5px; line-height: 1.65; color: var(--grey-600); }

/* ---- Framed view (/embedded) ----
   Inside the Vertex for eCommerce dashboard the host is the chrome, so the
   portal draws one slim row of its own navigation and nothing else. Sticky, so
   it is there wherever the merchant has scrolled to: the contract's height
   budget (content = 100vh - 264px, i.e. the host's 208px plus a 56px in-frame
   header) assumes a header that stays. "Avoid a second sticky row" means one
   pinned row in the frame, not none -- the old shell pinned a header *and* a
   sidebar. z-index 40, like .header: above the content, below the guide
   drawer (100/101) and the confirmation modal (200), which should cover it. */
.embedded .content { margin: 0 auto; }
.fnav { display: flex; align-items: stretch; gap: 2px; height: 42px; padding: 0 20px;
        background: #fff; border-bottom: 1px solid var(--grey-100);
        position: sticky; top: 0; z-index: 40; }
.fnav-item { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--grey-600);
             background: none; border: 0; border-bottom: 2px solid transparent;
             padding: 0 12px; cursor: pointer; }
.fnav-item:hover, .fnav-item[aria-expanded="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.fnav-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.fcaret { font-size: 11px; }
.fmenu { position: relative; display: flex; }
.fmenu-list { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
              background: #fff; border: 1px solid var(--grey-100); box-shadow: var(--shadow-lg);
              padding: 4px 0; display: flex; flex-direction: column; }
.fmenu-list button { font: inherit; font-size: 13.5px; text-align: left; background: none; border: 0;
                     padding: 8px 14px; cursor: pointer; color: var(--ink); }
.fmenu-list button:hover, .fmenu-list button:focus-visible { background: var(--blue-50); outline: none; }

/* ---- Guide drawer ---- */
.dmask { position: fixed; inset: 0; background: rgba(19,29,37,.45); opacity: 0; visibility: hidden; transition: .2s; z-index: 100; }
.dmask.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 860px; max-width: 96vw; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 101; transform: translateX(100%); transition: transform .26s cubic-bezier(.23,1,.32,1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.dhd { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; background: var(--grey-50); }
.dhd .dt { font-family: var(--font-brand); font-size: 17px; font-weight: 700; color: var(--ink); }
.dhd .ds { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dclose { margin-left: auto; font-size: 22px; line-height: 1; color: var(--grey-500); cursor: pointer; padding: 0 4px; }
.dclose:hover { color: var(--ink); }
.dback { font-size: 12.5px; font-weight: 600; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dbd { padding: 20px 22px 60px; overflow: auto; flex: 1; }
.dbd h4 { font-size: 14.5px; margin: 22px 0 8px; }
.dbd h4:first-child { margin-top: 0; }
.dbd p { margin: 0 0 10px; }
/* A fenced block in a guide: a request or response, boxed like the portal's other code. */
.dbd pre { background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.55; overflow: auto; margin: 0 0 14px; font-family: ui-monospace,Menlo,monospace; white-space: pre; }
.dbd pre code { background: none; padding: 0; border: 0; font-size: inherit; color: inherit; }

/* ---- Guide content sections ---- */
.dsec { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; background: var(--surface); }
.dsec.flat { border: none; padding: 0; }
.kpi { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* Two-column comparison (old vs new) */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp .col { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp .col .ch { padding: 9px 13px; font-weight: 700; font-size: 13px; font-family: var(--font-brand); border-bottom: 1px solid var(--line); }
.cmp .col.old .ch { background: var(--grey-50); color: var(--grey-600); }
.cmp .col.new .ch { background: var(--blue-50); color: var(--blue-700); }
.cmp .col .cb { padding: 13px; }
@media (max-width: 820px) { .cmp { grid-template-columns: 1fr; } }

/* Highlighted text (changed values in comparison) */
.hl { background: #fff3cd; border-radius: 2px; padding: 0 3px; box-shadow: 0 0 0 1px #ffe08a; }

/* Payload converter (taxcalc guide) */
pre.code { background: var(--grey-900); color: #dbeeff; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.55; overflow: auto; margin: 0; font-family: ui-monospace,Menlo,monospace; white-space: pre; }
pre.code.lite { background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--line); }
.conv { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 10px; align-items: stretch; }
.conv > div { display: flex; flex-direction: column; min-width: 0; }
.conv textarea { width: 100%; flex: 1; min-height: 260px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; font-family: ui-monospace,Menlo,monospace; font-size: 12.5px; resize: vertical; color: var(--grey-700); background: var(--grey-50); }
.conv pre.code { flex: 1; }
.conv .mid { display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) { .conv { grid-template-columns: 1fr; } .conv .mid { transform: rotate(90deg); } }

/* Section label */
.lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 5px; }

/* Checkbox option row (invoicing guide SMTP toggle) */
.cbx { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px 15px; cursor: pointer; transition: .15s; background: var(--surface); }
.cbx:hover { border-color: var(--blue-300); background: var(--blue-50); }
.cbx.on { border-color: var(--green-bd); background: var(--green-bg); }
.cbx .bx { width: 20px; height: 20px; border-radius: 3px; border: 2px solid var(--grey-300); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.cbx .bx svg { width: 12px; height: 12px; opacity: 0; }
.cbx.on .bx { background: var(--green); border-color: var(--green); }
.cbx.on .bx svg { opacity: 1; }

/* Invoice mockup (invoicing guide) */
.inv { border: 1px solid var(--line); border-radius: var(--radius); font-size: 11.5px; background: #fff; overflow: hidden; }
.inv .ih { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv .ih b { font-family: var(--font-brand); font-size: 14px; color: var(--ink); display: block; }
.inv .ib { padding: 12px 14px; }
.inv table { font-size: 11px; }
.inv thead th { padding: 6px 8px; font-size: 11px; }
.inv tbody td { padding: 6px 8px; }
.inv .tot { display: flex; justify-content: space-between; padding: 4px 0; }
.inv .tot.g { font-weight: 700; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 7px; }

/* ---- Product switcher (header dropdown) ---- */
.psw { position: relative; }
.psw .pbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--grey-200); background: #fff; border-radius: 2px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--body); cursor: pointer; height: 34px; }
.psw .pbtn:hover { border-color: var(--blue-300); color: var(--primary); }
.psw .pbtn .cv { font-size: 9px; color: var(--grey-400); }
.psw .pmenu { position: absolute; top: calc(100% + 6px); right: 0; width: 330px; background: #fff; border: 1px solid var(--grey-100); border-radius: 2px; box-shadow: 0 6px 16px rgba(19,29,37,.12); z-index: 60; padding: 6px; max-height: 70vh; overflow: auto; }
.psw .pcap { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-400); padding: 9px 11px 5px; }
.psw .pitem { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 2px; cursor: pointer; }
.psw .pitem:hover { background: var(--grey-50); }
.psw .pitem.cur { background: var(--blue-50); }
.psw .pitem svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--blue-600); }
.psw .pitem .t { font-size: 13px; font-weight: 600; color: var(--ink); }
.psw .pitem .d { font-size: 11.5px; color: var(--muted); margin-top: 1px; line-height: 1.45; }
.psw .pitem.dis { opacity: .5; cursor: default; }
.psw .pitem.dis:hover { background: none; }
.psw .psep { height: 1px; background: var(--grey-100); margin: 5px 8px; }

/* ---------------------------------------------------------------------------
   Cutover: the rehearsal on TEST and the real run on production.

   One set of styles because it is deliberately one procedure shown twice, and
   the merchant should recognise the second from the first. Taken from the
   prototype (resources/poc/PoC-migration-portal-vertex.html) rather than re-invented.
   --------------------------------------------------------------------------- */

.ctabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0 0; flex-wrap: wrap; }
.ctab {
  appearance: none; background: none; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; padding: 11px 16px 10px; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; gap: 9px; border-radius: 6px 6px 0 0;
  transition: .15s; text-align: left;
}
.ctab:hover { color: var(--ink); background: var(--grey-50); }
.ctab.on { color: var(--primary); border-bottom-color: var(--primary); }
.ctab svg { width: 15px; height: 15px; flex: none; }
.ctab span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.ctab.on span { color: var(--grey-600); }
.ctab .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-300); flex: none; }
.ctab .cdot.prog { background: var(--orange); }
.ctab .cdot.done { background: var(--green); }

/* Why the rehearsal exists. Sits above the TEST sequence because the first
   reasonable reaction to "switch your endpoint off" is to ask why anyone
   would do that on purpose. */
.cwhy {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm); padding: 14px 15px; margin: 0 0 20px;
}
.cwhy .gi {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.cwhy .gi svg { width: 20px; height: 20px; }
.cwhy h4 { margin: 0 0 6px; font-size: 15.5px; font-family: var(--font-brand); color: var(--ink); }
.cwhy p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.7; color: var(--grey-600); max-width: 74ch; }
.cwhy p:last-child { margin-bottom: 0; }
.cwhy ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.75; color: var(--grey-600); max-width: 74ch; }
.cwhy ul + p { margin-top: 11px; }

/* Phase card. Same anatomy as .glact so the rehearsal and the real cutover
   read as the same procedure. */
.cph {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 15px; margin-bottom: 14px; background: var(--surface);
}
.cph.locked { background: var(--grey-50); border-style: dashed; }
.cph.now { border-color: var(--primary); box-shadow: 0 0 0 3px var(--blue-50); }
.cph.out { border-color: var(--orange-bd); background: var(--orange-bg); }
.cph.ok { border-color: var(--green-bd); }
.cphn {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px; display: flex; align-items: center;
  gap: 9px; flex-wrap: wrap;
}
.cph h4 { margin: 0 0 9px; font-size: 16px; color: var(--ink); font-family: var(--font-brand); }
.cph p { margin: 0 0 13px; font-size: 13.5px; line-height: 1.7; color: var(--grey-600); max-width: 74ch; }
.cph p:last-child { margin-bottom: 0; }

/* Outage banner. The point of the whole screen is that this window exists and
   has a length, so it gets an elapsed counter rather than a static note. */
.cout {
  display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--orange-bd); border-radius: var(--radius-sm);
  padding: 14px 15px; margin: 0 0 13px;
}
.cout .gi {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.cout .gi svg { width: 18px; height: 18px; }
.cout b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.cout .cm { font-size: 13px; color: var(--grey-600); line-height: 1.65; }
.cbar { height: 6px; border-radius: 100px; background: var(--grey-100); overflow: hidden; margin: 11px 0 7px; max-width: 420px; }
.cbar i { display: block; height: 100%; background: var(--orange); border-radius: 100px; transition: width .4s; }
.cts { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cts b { display: inline; font-size: 12px; color: var(--grey-600); }

/* Compact record of the finished rehearsal, shown on the Go-Live tab. */
.crec {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-bg); border: 1px solid var(--green-bd);
  border-radius: var(--radius-sm); padding: 13px 15px; margin: 0 0 16px;
  font-size: 13px; line-height: 1.65; color: var(--grey-600);
}
.crec svg { width: 16px; height: 16px; color: var(--green-text); flex: none; margin-top: 2px; }
.crec b { color: var(--ink); }

/* Prototype-only shortcut. Deliberately ugly and clearly labelled so nobody
   demonstrating the portal mistakes it for something a merchant would see. It
   stands in for a Vertex-side action so one session can walk the whole
   journey without signing out and back in as support. */
.proto {
  margin-top: 9px; border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, var(--grey-50), var(--grey-50) 9px, #fff 9px, #fff 18px);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.protoh { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.protot {
  font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 1px 6px;
}
.proto p { margin: 0 0 9px; font-size: 12px; line-height: 1.6; color: var(--grey-600); }
.proto .btn { font-size: 12.5px; padding: 6px 12px; }

/* ---- Support writes on the internal board ---- */
.sacts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.sact { border: none; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--blue-600); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sact svg { width: 12px; height: 12px; }
.sact:hover { text-decoration: underline; }
.sact:disabled { color: var(--grey-400); cursor: not-allowed; text-decoration: none; }
.swhat { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.bnoteform textarea { font-size: 12.5px; }
.bnoteform .stepctl { gap: 6px 10px; }
.sdlbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.sdin { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 13.5px; font-weight: normal; padding: 7px 9px; border: 1px solid var(--grey-200); border-radius: 2px; resize: vertical; }
.sdin:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.sdchk { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 10px; cursor: pointer; }
.sdopt { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; cursor: pointer; }
.auditp { margin-top: 16px; }
.audith { display: flex; align-items: center; margin-bottom: 8px; font-weight: 600; }
.audtab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.audtab th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--grey-200); }
.audtab td { padding: 6px 8px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
/* What Vertex support or the system did, washed like the steps Vertex owns. */
.audtab tr.vtx > td { background: var(--purple-bg); }
.audtab tr.vtx > td:first-child { box-shadow: inset 3px 0 0 var(--brand-purple); }
.audtab tr.vtx:hover > td { background: var(--purple-wash-hover); }

/* ---- Resources card ---- */
.resmeta { display: flex; align-items: center; margin-bottom: 10px; }
.resbody .md h4 { font-size: 14.5px; margin: 18px 0 8px; }
.resbody .md p { margin: 0 0 10px; }
.resbody .md table { margin-bottom: 14px; }
.schosen { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 4px; }
