[hidden] { display: none !important; }
.template-register.letter-template-surface { display: block; }
.letter-template-surface > * + * { margin-top: 20px; }
.letter-editor-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(640px, 1fr); gap: 24px; }
.letter-fields, .letter-fields label { display: grid; gap: 8px; min-width: 0; }
.letter-fields { gap: 16px; align-content: start; }
.letter-fields textarea { resize: vertical; min-height: 80px; }
.letter-fields .inp { width: 100%; box-sizing: border-box; font-size: 16px; }
.letter-preview { width: 100%; height: 700px; border: 1px solid #dadada; background: #f9f9f9; box-sizing: border-box; }
.letter-dialog { width: min(1160px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #999; border-radius: 6px; box-sizing: border-box; }
.letter-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.letter-dialog h2 { margin: 0 0 20px; font-size: 22px; overflow-wrap: anywhere; }
.letter-review-check { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.letter-merge-guide code { display: inline-block; padding: 6px 10px; margin: 4px; background: #f9f9f9; overflow-wrap: anywhere; }
@media (max-width: 1240px) {
  .letter-editor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .letter-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .letter-dialog { padding: 16px; }
  .letter-template-surface .row, .letter-fields .row { flex-wrap: wrap; }
}
/* ==========================================================================
   Ryerson certificate console -- the tax team's side
   --------------------------------------------------------------------------
   Loads portal.css first for tokens, shell, buttons, fields and tables, and
   adds only what a data application needs on top.

   Different audience, same design system. The portal is used once by someone
   doing an errand; the console is used every day by someone who owns 40,000
   certificates. So it is denser, it surfaces the summary before the detail,
   and state is encoded in shape as well as number -- a stripe, a pill, a bar --
   because what needs attention has to read at a glance rather than be counted.
   ========================================================================== */

/* --------------------------------------------------------------- rail nav */
.app { --rail-w: 244px; --top-h: 60px; }
@media (min-width: 901px) {
  .app > .rail-scrim { display: none; }
}
.rail-head { padding: 20px 20px 15px; }
.rail-head .tenant-logo {
  width: 160px; max-width: 100%; height: 48px;
  object-fit: contain; object-position: left center;
  margin-bottom: 8px;
}
.rail .rail-head [data-tenant-name] {
  max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  font-size: 22px; letter-spacing: 0;
}
.rail-mark { width: 116px; }
html[data-tenant-branded] .rail { background: var(--tenant-primary-dark); }
html[data-tenant-branded] .rail-wordmark::after { background: var(--tenant-primary-light); }
html[data-tenant-branded] .rail-head { border-bottom-color: var(--tenant-primary-light); }
html[data-tenant-branded] .rail-app,
html[data-tenant-branded] .rail-cap { color: var(--tenant-primary-light); }
html[data-tenant-branded] .nav a[aria-current="page"] {
  background: var(--tenant-primary); color: #fff;
}
@media (max-width: 640px) {
  .top #env-chip {
    min-width: 0; max-width: 130px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
}
.rail-app, .rail-cap { font-size: 10px; letter-spacing: .08em; }
.rail-nav { padding: 14px 12px; }
.rail-foot { padding: 16px 20px; font-size: 11px; }
.nav { list-style: none; margin: 0 0 var(--s4); padding: 0; }

.nav a {
  display: flex; align-items: center; gap: var(--s3);
  padding: 7px 8px;
  border-radius: var(--r);
  color: #D4D4D4;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: background .13s var(--ease), color .13s var(--ease);
}
.nav a + a { margin-top: 1px; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { background: rgba(18,89,163,.34); color: #fff; }
.nav a[aria-current="page"] .nav-ic { color: var(--rail-bg); }
.nav-ic { flex: 0 0 auto; color: #949494; }
.nav-n {
  margin-left: auto;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.10); color: #D4D4D4;
  padding: 1px 6px; border-radius: 999px;
}
.nav a[aria-current="page"] .nav-n { background: rgba(255,255,255,.20); color: #fff; }
.nav-n.alert { background: rgba(168,35,28,.42); color: #FFD9D5; }

/* ------------------------------------------------------ content workbench */
/* The rail already has a clear product voice. The workspace uses the same
   restraint: one white working plane, rules for hierarchy, and no floating
   dashboard surfaces. */
.work { min-height: calc(100vh - var(--top-h)); background: var(--paper); }
.top { min-height: var(--top-h); padding-inline: 24px; }
.wrap { max-width: 1120px; padding: 20px 24px 36px; }
.view > .phead {
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-str);
}
.view > .phead .ptitle { font-size: 21px; letter-spacing: 0; }
.view > .phead .pnote { max-width: 80ch; }
.view > .phead .pcount {
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--slate);
  font-size: 13px;
}

/* Cards in the console are document sections, not floating objects. Repeated
   items such as mail previews keep their own border further below. */
.view .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.view .card-h {
  min-height: 45px;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line);
}
.view .card-b { padding: var(--s4) 0; }
.view .badge { border-radius: 2px; }
.view .note { border-radius: 0; box-shadow: none; }
.view .note.warn {
  padding-block: var(--s3);
  border-width: 1px 0 1px 3px;
  background: #FFFBF3;
}

.production-register {
  margin: 0 0 var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line);
}
.production-register-head { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); }
.production-register-head h2 { margin: 0; font-size: 16px; }
.production-register-head p { margin: 4px 0 0; color: var(--slate); font-size: 13px; }
.production-register-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.production-register-fields label { display: grid; gap: 5px; color: var(--slate); font-size: 12px; font-weight: 700; }
.production-register-fields .inp, .production-register-fields .sel { width: 100%; min-height: 34px; }
.production-register-actions { display: flex; justify-content: flex-end; margin-top: var(--s4); }
.production-campaign {
  margin: 0 0 var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line);
}
.production-campaign-head h2 { margin: 0; font-size: 16px; }
.production-campaign-head p { margin: 4px 0 0; color: var(--slate); font-size: 13px; }
.production-campaign-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: var(--s3); margin-top: var(--s4); }
.production-campaign-fields label { display: grid; gap: 5px; color: var(--slate); font-size: 12px; font-weight: 700; }
.production-campaign-fields .inp, .production-campaign-fields .sel { width: 100%; min-height: 34px; }
.production-campaign-actions { display: flex; justify-content: flex-end; margin-top: var(--s4); }
.administration-list { display: grid; gap: var(--s4); }
.tenant-control-card .card-b { display: grid; gap: var(--s5); }
.tenant-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); border-top: 1px solid var(--line); }
.feature-switch, .connector-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 76px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feature-switch b, .connector-switch b { display: block; color: var(--ink); font-size: 13px; }
.feature-switch small, .connector-switch small { display: block; max-width: 48ch; margin-top: 3px; color: var(--slate); font-size: 12px; line-height: 1.35; }
.feature-switch input, .connector-switch input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #9A4A08; }
.tenant-connectors { display: grid; gap: 0; }
.tenant-connectors h3 { margin: 0 0 var(--s2); font-size: 14px; }
.tenant-control-actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------------ tiles */
/* A compact index strip, not a shelf of KPI cards. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0;
  margin-bottom: var(--s4);
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line-str);
}

.tile {
  position: relative; min-height: 74px;
  padding: 10px 14px;
  border: 0; border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.tile:last-child { border-right: 0; }
.tile:hover { border-color: var(--line); background: var(--navy-050); box-shadow: none; transform: none; }

/* The severity stripe. Colour is doing real work here: a person scanning this
   row is looking for the one number that is a problem, not reading five. It
   also carries a width, so the ranking survives greyscale and colour blindness
   -- the brief's no-colour-only-status rule. */
.tile::before {
  content: ""; position: absolute; left: var(--s4); bottom: 9px;
  width: 20px; height: 2px; background: var(--line-str);
}
.tile.ok::before   { width: 12px; background: var(--ok); }
.tile.navy::before { width: 20px; background: var(--navy-700); }
.tile.warn::before { width: 30px; background: var(--warn); }
.tile.stop::before { width: 40px; background: var(--stop); }

/* A tile with nothing to filter to is not a button pretending otherwise. */
.tile.static { cursor: default; }
.tile.static:hover { background: transparent; box-shadow: none; border-color: var(--line); }

.tile-k {
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--slate);
  display: flex; align-items: center; gap: var(--s2);
}
.tile-v {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-size: 23px; font-weight: 600; letter-spacing: 0;
  line-height: 1.1; margin: var(--s1) 0; color: var(--ink);
}
.tile.stop .tile-v, .tile.warn .tile-v, .tile.ok .tile-v { color: var(--ink); }
.tile-s { padding-right: var(--s2); font-size: 11px; color: var(--slate); }

.overview-bottom { margin-top: var(--s4); }
.coverage-list { padding: 12px 0 0; }
.coverage-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center; gap: 10px; min-height: 28px; font-size: 12px;
}
.coverage-bar { height: 6px; background: var(--canvas-2); overflow: hidden; }
.coverage-bar span { display: block; height: 100%; background: var(--navy-600); }
.coverage-row b { text-align: right; font-size: 11px; }
.recent-records { margin: 0; padding: 8px 0 0; list-style: none; }
.recent-records li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.recent-records li:last-child { border-bottom: 0; }
.recent-records span { display: block; }
.recent-records span + span { color: var(--slate); margin-top: 2px; }
.empty-inline { margin: 12px 0; color: var(--slate); font-size: 12px; }

/* Uploaded certificate campaign design handoff: the console is an audit
   application, with hierarchy carried by type and rules rather than cards.

   The four --navy-* overrides that used to sit in this block are gone, and that is the
   whole reason this console can wear a client's colours at all. tenant-branding.js sets
   --navy-900/700/600/500 on documentElement from the client's branding row; redeclaring
   them on body is closer to every element inside body, so the client's palette was
   overridden before it could reach anything. The console rendered grey and orange for
   every tenant, whatever their branding said.

   The neutrals stay: --ink, --slate, --line and the status colours are the product's
   reading surface, not a client's identity, and an audit application wants them steady
   whoever is signed in. */
/* The product's own palette, and what the console wears before a client's branding
   arrives or when a tenant has no branding row.

   These sit on :root rather than body on purpose. tenant-branding.js writes the same names
   to documentElement.style, and an inline style beats any selector, so a client's colours
   still win -- which is exactly what the four overrides removed from the body block below
   could not do. Keeping a default here means the rail is never unpainted: var(--rail-bg)
   with no --navy-900 defined resolves to nothing, and the rail would have rendered
   backgroundless for the whole first paint and for any reviewer whose branding fetch failed.

   The ramp mirrors tenant-branding.js's mapping of a three-colour branding row, so the
   default and a client's palette drive the identical set of names. */
:root {
  /* Armanino's own, because this is Armanino's application.
   *
   * These four names used to be declared on `body`, which is closer than the documentElement
   * tenant-branding.js writes to -- so a client's palette was overridden before it reached
   * anything and every tenant saw this same chrome. Moving them to :root fixed that, but the
   * values moved with it to a generic product teal, which meant the unbranded console stopped
   * looking like Armanino and started looking like stock software. The fix for the first
   * problem should not have changed the answer to "what does this look like with no client
   * selected".
   *
   * So the fallback is the house brand again: #262626 near-black with the #DA720F accent, and
   * it is what pairs with the warm `.work` canvas the design already uses. A client's branding
   * still wins, because tenant-branding.js sets these on documentElement as an inline style
   * and an inline style beats any selector. */
  /* The house brand: near-black, one orange accent, cool neutrals.
  
     The tints used to be warm -- #F3E4D4 and #FCF4EC, mixed toward the orange -- which is
     where the cream page came from. Warm cream under a near-black rail and an orange button
     is three temperatures arguing, and it reads as unfinished rather than as a choice. Cool
     greys let the orange be the only warm thing on the page, which is what makes it an
     accent instead of a competitor.
  
     #F4F4F5 is not picked by eye: it is the exact grey the Armanino logo carried as its
     backing plate, so the lightest surface in the product and the brand asset are the same
     colour by construction. */
  --tenant-primary: #262626; --tenant-primary-dark: #1A1A1A; --tenant-primary-light: #F4F4F5;
  --navy-900: #1A1A1A; --navy-800: #262626;
  --navy-700: #262626; --navy-600: #404040; --navy-500: #DA720F;
  --navy-100: #F4F4F5; --navy-050: #FAFAFA;
}

body {
  --ink: #262626; --slate: #595959;
  --line: #DADADA; --line-str: #BBBBBB; --canvas: #F2F2F2;
  --ok: #6B6A00; --warn: #A8500A; --stop: #D14124;
  /* The console used Arial while the portal next door used Public Sans, because
     console.html never linked vendor/fonts/fonts.css. Two surfaces of one product in two
     different faces, and the one a client sees was the generic one.

     --ff-display is for page and section titles ONLY. A serif at a heading size gives the
     page somewhere to start; the same serif in a data table would cost legibility at 13px
     for nothing, which is why the tables, fields and identifiers stay on the sans and the
     mono below. */
  --ff: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* The chrome, derived from the client's palette rather than fixed.
  
     --rail-accent is a light TINT of the client's primary, not the primary itself. The
     accent sits on the dark rail, and a client's primary against their own dark is
     frequently unreadable -- Ryerson's #002E5F on #001B39 measures 2.48:1, under the 3:1
     a non-text indicator needs. Mixing toward white guarantees the separation whatever
     colour a client picks, which a hand-chosen second colour could not.
     
     The fallbacks on the line above each are the product's own, for a browser without
     color-mix and for a tenant with no branding row. */
  --rail-bg: var(--navy-900);
  --rail-accent: #D4D4D4;
  --rail-accent: color-mix(in srgb, var(--navy-700) 32%, #FFFFFF);
  --rail-accent-dim: rgba(143, 195, 240, .55);
  --rail-accent-dim: color-mix(in srgb, var(--rail-accent) 55%, transparent);
  --rail-ink: #FFFFFF;
}
.rail {
  background: var(--rail-bg);
}
.rail-head { padding: 24px 24px 18px; }
.rail-wordmark {
  color: var(--rail-ink);
  font-family: var(--ff);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.rail-wordmark::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 8px;
  background: var(--rail-accent);
}
.rail-head { border-bottom-color: var(--rail-accent-dim); }
.rail-app { font-family: var(--ff); font-size: 10px; letter-spacing: .1em; color: var(--rail-accent); }
.rail-cap { color: var(--rail-accent); }
.rail-foot { border-top-color: var(--rail-accent-dim); }
.rail-foot b { color: var(--rail-ink); }
.rail-nav { padding: 20px 16px; }
.rail-foot { padding: 20px 24px; }
.nav a { padding: 11px 12px; border-radius: 6px; font-size: 13px; color: #D4D4D4; }
.nav a:hover { background: color-mix(in srgb, var(--rail-accent) 20%, transparent); color: #FFF; }
.nav a[aria-current="page"] { background: var(--rail-accent); color: var(--rail-bg); }
.nav-ic { color: var(--rail-accent); }
.nav a[aria-current="page"] .nav-ic { color: var(--rail-bg); }
.nav-n { background: color-mix(in srgb, var(--rail-accent) 22%, transparent); color: var(--rail-ink); }
.nav a[aria-current="page"] .nav-n { background: color-mix(in srgb, var(--rail-bg) 17%, transparent); color: var(--rail-bg); }
.nav-n, .view .badge { border-radius: 4px; }
/* #FFF8F1 until now, and it is why the page still looked cream after the tints were
   cooled: this was a literal, not a token, so changing --navy-050 moved nothing here.
   A redeploy alone would not have fixed it. */
.work { background: var(--navy-050); }

/* The product, named in the rail.
   --------------------------------------------------------------------------
   .rail-wordmark above it carries the CLIENT, because tenant-branding.js replaces its text
   with their display name. So this is the only place the product is called anything, and it is
   set in the display serif because signed out it is the single largest piece of type on the
   page -- the one thing carrying the brand before a person has done anything. */
.rail-product {
  margin: 10px 0 2px;
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--rail-ink);
}
.rail-app { margin: 0; }

/* Section names with nothing behind them yet.
   Visible so the rail has a shape, inert so nothing is offered that cannot work. The contrast
   is deliberately lower than a real nav item: #8A8A8A on #1A1A1A is 4.9:1, which clears the
   text minimum while reading as plainly unavailable next to the #D4D4D4 live items. */
.nav-inert {
  padding: 11px 12px;
  font-size: 13px;
  color: #8A8A8A;
  cursor: default;
}

/* Signed out, which is a normal state and the first page most people see.
   --------------------------------------------------------------------------
   Cert IQ's own page. Light and warm rather than an ink field: the client is about to work in a
   light product, and the full-colour Cert IQ lockup is designed for a light ground. The left
   side is one composition centred in its column -- what Cert IQ does beside a picture of what
   it keeps in order -- so a wide monitor gets a larger composition rather than more empty floor.
   The card on the right holds the one action. Palette: ink #222222, body #5F6468, Armanino
   orange, the product's teal for "on file", warm whites. */
.signin-screen {
  position: fixed; inset: 0; z-index: 300; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 32vw, 560px);
  background: #F1EEE9;
}
.signin-pane {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  min-height: 100vh; min-height: 100dvh;
  padding: clamp(26px, 3vw, 48px) clamp(28px, 4vw, 80px) clamp(22px, 2.6vw, 40px);
  background:
    radial-gradient(900px 620px at 92% 108%, rgba(218, 114, 15, .16), transparent 70%),
    radial-gradient(700px 520px at -8% -10%, rgba(244, 168, 49, .12), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(34, 34, 34, .06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #FBF8F4;
  border-right: 1px solid #E4DFD8;
}
.signin-logo { display: block; height: clamp(64px, 6vw, 92px); width: auto; }

.signin-hero {
  align-self: center; justify-self: center; width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(28px, 4vw, 72px);
}
.signin-kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A4604; }
.signin-pane h1 {
  margin: 0; max-width: 19ch;
  font-family: var(--ff-display); font-size: clamp(36px, 3.6vw, 60px); font-weight: 700;
  line-height: 1.03; letter-spacing: -.03em; color: #222222; text-wrap: balance;
}
.signin-rule { width: 56px; height: 3px; margin-top: 22px; background: #DA720F; }
.signin-lead { margin: 20px 0 0; max-width: 44ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.65; color: #5F6468; }
.signin-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.signin-points li { display: flex; gap: 12px; align-items: baseline; font-size: clamp(14px, 1vw, 15.5px); line-height: 1.5; color: #5F6468; }
.signin-points b { color: #222222; font-weight: 600; }
.dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; transform: translateY(1px); }
.dot-ok { background: #007681; } .dot-renew { background: #DA720F; } .dot-missing { background: #B5483B; }

/* The certificate stack, sized to its column so it grows with the screen. */
.signin-art { position: relative; width: 100%; aspect-ratio: 1.25 / 1; max-height: 62vh; }
.cert {
  position: absolute; width: 64%; padding: 4.2% 4.6% 4.6%;
  background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(34, 34, 34, .06), 0 22px 48px rgba(34, 34, 34, .12);
  display: flex; flex-direction: column; gap: 9px;
}
.cert-back  { left: 34%; top: 2%;  transform: rotate(7deg);   background: #F3EFE9; }
.cert-mid   { left: 18%; top: 15%; transform: rotate(2deg);   background: #F8F6F2; }
.cert-front { left: 0;   top: 30%; transform: rotate(-4deg); }
.cert-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cert-state {
  display: grid; place-items: center; min-width: 36px; height: 28px; padding: 0 7px; border-radius: 7px;
  background: #222222; color: #FFFFFF; font: 700 12.5px/1 var(--ff, inherit); letter-spacing: .06em;
}
.cert-tag { padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--ff, inherit); white-space: nowrap; }
.tag-ok      { background: #E3F1F2; color: #005A63; }
.tag-renew   { background: #FDEBD8; color: #8A4604; }
.tag-missing { background: #FBE7E4; color: #923B32; }
.cert-title { margin: 4px 0 6px; font-family: var(--ff-display); font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; line-height: 1.3; color: #222222; }
.cert-line { display: block; height: 8px; border-radius: 4px; background: #ECE7E0; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.cert-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cert-seal { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #DA720F; box-shadow: inset 0 0 0 4px #FFFFFF, 0 0 0 2px #DA720F; }

.signin-legal { margin: 0; max-width: 90ch; font-size: 11px; line-height: 1.7; color: #8A8E91; }

.signin-panel {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(22px, 2.4vw, 48px);
}
.signin-card {
  width: 100%; max-width: 480px; padding: clamp(24px, 2.8vw, 38px);
  background: #FFFFFF; border: 2px solid #222222; border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(218, 114, 15, .18);
}
.signin-card-logo { display: block; height: 64px; width: auto; margin: 0 0 16px -6px; }
.signin-card h2 { margin: 0; font-family: var(--ff-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: #222222; }
.signin-sub { margin: 9px 0 0; font-size: 15px; line-height: 1.6; color: #666666; }
/* Prefixed to outrank tax-team-design.css, which paints every primary button near-black
   (html.certificate-workbench.tax-team-design .btn:not(.sec)...). The one action is orange. */
.signin-card .signin-button,
html.certificate-workbench.tax-team-design .signin-screen .signin-card .btn.pri.signin-button {
  width: 100%; margin-top: 24px; min-height: 50px; padding: 14px; font-size: 15px; font-weight: 600;
  justify-content: center; background: #DA720F; border-color: #DA720F; color: #FFFFFF; border-radius: 10px;
}
.signin-card .signin-button:hover:not(:disabled),
html.certificate-workbench.tax-team-design .signin-screen .signin-card .btn.pri.signin-button:hover:not(:disabled) {
  background: #B85E05; border-color: #B85E05; color: #FFFFFF;
}
.signin-card .signin-button:focus-visible { outline: 3px solid #222222; outline-offset: 2px; }
.signin-status {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 8px;
  background: #FBF1F0; border: 1px solid #E8C4BF; color: #923B32; font-size: 13px; line-height: 1.5;
}
.signin-assure { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; color: #8A4604; }
.signin-assure svg { flex: 0 0 16px; margin-top: 2px; }
.signin-assure p { margin: 0; font-size: 13px; line-height: 1.6; color: #666666; }
.signin-help { margin-top: 20px; padding-top: 18px; border-top: 1px solid #DADADA; }
.signin-help-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #222222; }
.signin-help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.signin-help li { font-size: 13px; line-height: 1.55; color: #666666; }

@media (max-width: 860px) {
  .signin-screen { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; }
  .signin-panel { order: -1; }
  .signin-pane { min-height: 0; padding-top: 200px; }
}
.top { background: #fff; box-shadow: inset 0 -3px 0 var(--navy-700); }
.wrap { max-width: 1280px; padding: 26px 32px 44px; }
.view > .phead .ptitle {
  font-family: var(--ff-display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; text-wrap: balance;
}
.view .card-h h2 {
  font-family: var(--ff); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--slate);
}
.view .card-h { border-top: 0; border-bottom-color: #222; min-height: 38px; }
.tiles { border-color: #DADADA; }
.tile { background: #fff; min-height: 68px; }
.tile:hover { background: var(--navy-050); }
.tile-k { color: #666; font-size: 12px; }
.tile-v { margin: 5px 0 0; font-size: 24px; }
.btn.pri { background: #222; border-color: #222; color: #fff; }
.btn.pri:hover { background: #000; border-color: #000; }
.btn.sec { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn.sec:hover { background: #404040; border-color: #404040; }
.dt tbody tr:hover { background: var(--navy-050); box-shadow: inset 3px 0 0 var(--navy-700); }
.review-focus { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 0 0 24px; padding: 12px 14px; border: 1px solid #DADADA; border-left: 1px solid var(--navy-700); border-radius: 0; background: #fff; color: #222; cursor: pointer; text-align: left; font: 13px var(--ff); }
.review-focus:hover { background: var(--navy-050); }.review-focus > span:first-child, .review-focus-link { font-weight: 700; }.review-focus b { font: 600 18px var(--ff-mono); }.review-focus-copy { color: #666; }.review-focus-link { color: #A8500A; }
.cert-mobile { display: none; }.cert-mobile-row { width: 100%; padding: 12px; border: 0; border-bottom: 1px solid #DADADA; background: #fff; color: #222; text-align: left; cursor: pointer; font: 14px var(--ff); }.cert-mobile-row:hover { background: var(--navy-050); box-shadow: inset 3px 0 0 var(--navy-700); }.cert-mobile-title, .cert-mobile-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.cert-mobile-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.cert-mobile-title .mono { color: #666; font-size: 11px; white-space: nowrap; }.cert-mobile-state { justify-content: flex-start; margin-top: 7px; color: #666; font-size: 12px; }.cert-mobile-state .near { color: #D14124; font-weight: 700; }.evidence { margin-left: auto; color: #666; font: 500 11px var(--ff-mono); }.evidence.yes { color: #6B6A00; }

/* Repository overview --------------------------------------------------- */
.overview-asof { margin: 5px 0 0; color: #666; font: 500 13px var(--ff-mono); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr); gap: 32px; }
.overview-left, .overview-right { display: grid; align-content: start; gap: 28px; }
/* Keep the four operational cards in reading order: pipeline, coverage, map,
   then campaign batches. The wrappers are structural only on desktop. */
.overview-grid > .overview-left, .overview-grid > .overview-right { display: contents; }
.coverage-summary { padding: 15px 0 5px; }
.coverage-bar-wide { display: flex; height: 8px; overflow: hidden; background: #EDEDED; }
.coverage-live { background: var(--navy-700); } .coverage-lapsed { background: #D14124; }
.coverage-key { display: flex; gap: 18px; padding-top: 9px; color: #666; font-size: 12px; }
.coverage-key span { display: inline-flex; align-items: center; gap: 6px; }
.coverage-dot { width: 7px; height: 7px; } .coverage-dot.live { background: var(--navy-700); } .coverage-dot.lapsed { background: #D14124; }
.heatmap-legend { display: flex; align-items: center; gap: 6px; padding-top: 12px; color: #666; font: 500 11px var(--ff-mono); }.heatmap-legend > span:first-child { margin-right: 5px; color: #222; font-weight: 700; }.heatmap-legend i { width: 14px; height: 9px; border: 1px solid color-mix(in srgb, var(--navy-700) 45%, #FFFFFF); }.heatmap-legend i.zero { background: color-mix(in srgb, var(--navy-700) 14%, #FFFFFF); }.heatmap-legend i.single { background: var(--navy-700); }.heatmap-legend i.multiple { background: color-mix(in srgb, var(--navy-900) 85%, #000000); }.heatmap-legend i:not(:first-of-type) { margin-left: 7px; }
.state-heatmap { min-height: 260px; padding: 6px 0; color: #666; font-size: 12px; }.state-heatmap svg { display: block; width: 100%; height: auto; }
.state-coverage-note { margin: 10px 0; color: #595959; font-size: 12px; line-height: 1.45; }.state-coverage-list { display: grid; gap: 5px; max-height: 220px; overflow: auto; padding-right: 4px; }.state-coverage-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #E4E4E4; padding: 5px 0; color: #262626; }.state-coverage-row > span:last-child { color: #595959; }
.state-heatmap .heatmap-label { fill: #1A1A1A; font: 700 10px var(--ff-mono); pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.7); stroke-width: 2px; }.state-heatmap .heatmap-label.inverse { fill: #fff; stroke: rgba(0,0,0,.24); }
.last-batches { border-top: 1px solid #DADADA; }
.overview-grid .batches-card { margin-top: 0; }
.batch-row { display: grid; grid-template-columns: 90px auto minmax(60px,1fr); gap: 9px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid #DADADA; background: transparent; color: #222; text-align: left; cursor: pointer; }
.batch-row:hover { background: var(--navy-050); box-shadow: inset 3px 0 0 var(--navy-700); }.batch-date { font-size: 12px; }/* `overflow: hidden` and `min-width: 0` are the belt to the arithmetic's
   braces: a fill wider than its track is clipped at the track rather than
   drawn out through the card's border. `min-width: 0` because a grid item
   defaults to its content's min size and will not shrink below it. */
.batch-progress { align-self: center; height: 5px; min-width: 0; overflow: hidden; background: #EDEDED; }.batch-progress i { display: block; height: 100%; max-width: 100%; background: var(--navy-700); }.batch-caption { grid-column: 1 / -1; color: #666; font-size: 10px; }

/* Template list and dedicated detail ----------------------------------- */
.template-register { border-top: 1px solid #DADADA; }
.template-register-row { display: grid; grid-template-columns: minmax(190px, 1.1fr) minmax(130px,.7fr) minmax(220px,1fr) 80px; align-items: center; gap: 18px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid #DADADA; background: transparent; color: #222; text-align: left; cursor: pointer; font: 14px var(--ff); }
.template-register-row:hover { background: #F4F4F5; box-shadow: inset 3px 0 0 var(--navy-500); }.template-register-row > span:not(.badge) { color: #666; font-size: 13px; }.template-register-row .badge { justify-self: start; }
.template-edit-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; }.template-command { display: flex; align-items: center; gap: 12px; }.template-command .sp { flex: 1; }.preview-toggle { color: #666; font-size: 13px; }.preview-toggle input { accent-color: var(--navy-700); }.template-editor, .template-merged { box-sizing: border-box; width: 100%; min-height: 470px; margin: 0; padding: 16px; border: 1px solid #DADADA; border-top: 0; border-radius: 0; background: #fff; color: #222; font: 13px/1.55 var(--ff-mono); white-space: pre-wrap; }.template-editor:focus { outline: 2px solid #9A4A08; outline-offset: -2px; }.template-where dl { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid #DADADA; }.template-where dt { padding: 12px 0 2px; color: #666; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.template-where dd { margin: 0; padding: 0 0 12px; border-bottom: 1px solid #EDEDED; font-size: 13px; }
@media (max-width: 900px) { .overview-grid, .template-edit-grid { grid-template-columns: minmax(0,1fr); }.template-register-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.template-register-row .badge { grid-column: 1; }.state-heatmap { min-height: 220px; } }
@media (max-width: 520px) { .template-register-row { grid-template-columns: minmax(0,1fr); gap: 5px; }.overview-asof { margin: 0; }.batch-row { grid-template-columns: 80px auto minmax(45px,1fr); } }

/* Summary strips reflect the work on each page instead of treating every
   number as equally important. */
#v-status #st-tiles .tile:first-child,
#v-outbox #ob-tiles .tile:first-child,
#v-vertex #vx-tiles .tile:nth-child(3) { background: #F4F4F5; }

@media (min-width: 1180px) {
  #v-status #st-tiles,
  #v-vertex #vx-tiles { grid-template-columns: 1.35fr repeat(3, minmax(0,1fr)); }
  #v-status #st-tiles .tile:first-child { order: -1; }
  #v-vertex #vx-tiles .tile:nth-child(3) { order: -1; }
  #v-status #st-tiles .tile:first-child .tile-v,
  #v-vertex #vx-tiles .tile:nth-child(3) .tile-v { font-size: 31px; }

  #v-outbox #ob-tiles { grid-template-columns: 1.25fr repeat(2, minmax(0,1fr)); }
  #v-outbox #ob-tiles .tile:first-child .tile-v { font-size: 31px; }
}

/* ------------------------------------------------------------ filter bar */
.bar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) 0;
  background: transparent;
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.bar .inp, .bar .sel { height: 34px; font-size: 14px; }
/* Fields inherit width:100% from portal.css, which is right in a form grid and
   wrong in a flex toolbar -- each control claims the full row and the bar
   becomes a column. Size them to their content here instead. */
.bar > .sel { width: auto; min-width: 132px; flex: 0 0 auto; }
.bar .sp { flex: 1; }
.bar-find { position: relative; flex: 0 1 240px; min-width: 180px; }
.bar-find .inp { width: 100%; padding-left: 31px; }
.bar label { flex: 0 0 auto; white-space: nowrap; }
.bar-find svg { position: absolute; left: 10px; top: 10px; color: var(--slate-lt); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 26px; padding: 0 var(--s2) 0 var(--s3);
  border-radius: 999px; border: 1px solid #D6D6D6;
  background: var(--navy-100); color: var(--navy-700);
  font-size: 12px; font-weight: 500;
}
.chip button {
  border: 0; background: transparent; cursor: pointer; padding: 0 2px;
  color: inherit; opacity: .65; line-height: 1; font-size: 14px;
}
.chip button:hover { opacity: 1; }

/* ------------------------------------------------------------- data table */
.dt { width: 100%; border-collapse: collapse; font-size: 14px; }

/* A column contract. Left to the browser, the Vertex table gave CUSTOMER 120px
   -- so "Certificate 118" wrapped and those rows jumped 60px to 80px, visibly
   stuttering the rhythm -- while giving a column of em-dashes 288px. The
   certificates table gave a two-letter state code 115px. */
#cert-table, #vx-table { table-layout: fixed; }
/* These are POSITIONAL, and the table is `table-layout: fixed`, so inserting a
   column shifts every width onto the wrong one -- which is how the Certificate
   column first landed on State's 7% and drew straight through it. Nine columns
   now: Customer, Certificate, State, Form, Scope, Expires, Status, Evidence,
   In Vertex, the last taking the remaining 11%. Renumber all of them together
   or not at all. */
#cert-table th:nth-child(1) { width: 20%; }
#cert-table th:nth-child(2) { width: 13%; }
#cert-table th:nth-child(3) { width: 5%; }
#cert-table th:nth-child(4) { width: 7%; }
#cert-table th:nth-child(5) { width: 8%; }
#cert-table th:nth-child(6) { width: 12%; }
#cert-table th:nth-child(7) { width: 9%; }
#cert-table th:nth-child(8) { width: 9%; }
/* In Vertex takes the remaining 17%: its cell carries a badge over a full
   timestamp ("09/03/2026, 10:13 PM CDT"), which was clipping even before the
   Certificate column existed, when this column had no declared width at all. */
#vx-table th:nth-child(1) { width: 34%; }
#vx-table th:nth-child(2) { width: 7%; }
#vx-table th:nth-child(3) { width: 9%; }
#vx-table th:nth-child(4) { width: 32%; }
#vx-table th:nth-child(5) { width: 8%; }
#vx-table th:nth-child(6) { width: 10%; }
.dt th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--slate); background: #F4F4F5;
  padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line-str);
}
/* The sort affordance is gone rather than restyled. /api/console/certificates
   takes no sort parameter and rejects names it does not know, so the arrows
   could only ever have reordered the 25 rows on screen under a header that
   claims to order 201 -- a control that lies is worse than no control. */
.dt td { padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt tbody tr { cursor: pointer; }
/* --navy-050 on white is a ~3% step across a 60px row: in a hover capture no
   row was distinguishable from its neighbours. The inset rule gives the row a
   direction, so it reads as a target rather than as a stripe. */
.dt tbody tr:hover {
  background: var(--navy-100);
  box-shadow: inset 3px 0 0 var(--navy-500);
}
.dt tbody tr:active { background: var(--canvas-2); }
.dt tbody tr:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: -2px;
  background: var(--navy-050);
}
.dt tbody tr:last-child td { border-bottom: 0; }
.dt .num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
/* A second line under a mono identifier is still an identifier. */
.dt td.num .hint {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 12px;
}
/* Inside 90 days the countdown is the loud half of the cell. */
.dt td.num .hint.near { color: var(--stop); font-weight: 600; }
.dt .r { text-align: right; }
.dt .w { white-space: nowrap; }
.dt-wrap { overflow: auto; max-height: 62vh; }
/* Filters and paging refetch. Without this the table sat there looking
   answered while three requests were in flight. */
.dt-wrap.busy { opacity: .55; pointer-events: none; }

.cust { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cust b { font-weight: 600; }
.cust span {
  font-size: 12px; color: var(--slate);
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
}

.empty { padding: var(--s6) var(--s-gut); text-align: center; }
.empty-ic { color: var(--line-str); margin-bottom: var(--s3); }
.empty b { display: block; font-size: 15px; font-weight: 600; margin-bottom: var(--s1); }
.empty span { font-size: 14px; color: var(--slate); }

.pager {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) 0; border-top: 1px solid var(--line); background: transparent;
  border-radius: 0;
  font-size: 14px; color: var(--slate);
}
.pager .sp { flex: 1; }

.dt .hint.soon { color: var(--stop); font-weight: 600; }

/* --------------------------------------------------------- expiry ladder */
/* Ordered renewal register. Counts and cumulative exposure matter; decorative
  progress bars do not. */
.ladder { display: flex; flex-direction: column; }

.rung {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 72px minmax(210px,auto);
  align-items: center; gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s var(--ease);
}
.rung:last-child { border-bottom: 0; }
.rung:hover { background: var(--navy-050); }

.rung-k { display: flex; align-items: center; gap: var(--s3); font-size: 14px; font-weight: 600; }
.rung-sw { width: 3px; height: 18px; border-radius: 0; flex: 0 0 auto; }
.rung.b-60 .rung-sw, .rung.b-30 .rung-sw { width: 3px; }
.rung.b-expired .rung-sw {
  width: 3px;
  background: var(--stop) !important;
}
/* The lapsed band is not part of the 90-day total, so it is separated from
   the three that add up rather than listed as a fourth of them. */
.rung.b-expired { border-top: 2px solid var(--line-str); }
.rung.rung-aside {
  border-top: 2px solid var(--line-str);
  cursor: default;
}
.rung.rung-aside:hover { background: none; }
.rung-n {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-size: 18px; font-weight: 600; text-align: right;
}
.rung-bar { display: none; }
.rung-s { font-size: 12px; color: var(--slate); white-space: nowrap; text-align: right; }
.rung-s b { font-family: var(--ff-mono); font-weight: 600; color: var(--ink); }

/* Overview is already a summary; cumulative labels belong on the dedicated
  Expirations page and would collide with the adjacent attention register. */
#v-overview .rung { grid-template-columns: minmax(0,1fr) 64px; }
#v-overview .rung-s { display: none; }
#v-overview .rows li { justify-content: space-between; }
#v-overview .rows .k { flex: 1 1 auto; }
#v-overview .rows .v { flex: 0 0 auto; text-align: right; }

/* ---------------------------------------------------------- campaign view */
.campaign-planner {
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(250px,340px) auto;
  align-items: center;
  gap: var(--s5);
  margin: 0 0 var(--s6);
  padding: var(--s4) 0;
  border-top: 2px solid var(--navy-900);
  border-bottom: 1px solid var(--line-str);
}
.campaign-planner-copy h2, .section-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.campaign-planner-copy p {
  max-width: 58ch;
  margin: var(--s1) 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}
.section-kicker {
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s3);
}
.campaign-scope-wrap { margin-bottom: var(--s5); }
.campaign-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line-str);
}
#v-campaigns .campaign-scope .tile {
  display: grid;
  grid-template: "label value" auto "note value" auto / minmax(0,1fr) auto;
  gap: 2px var(--s4);
  min-height: 72px;
  padding: var(--s3) var(--s4);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
}
#v-campaigns .campaign-scope .tile:last-child { border-right: 0; }
#v-campaigns .campaign-scope .tile::before { display: none; }
#v-campaigns .campaign-scope .tile:hover {
  border-color: var(--line);
  background: var(--canvas);
  box-shadow: none;
  transform: none;
}
#v-campaigns .campaign-scope .tile-k {
  grid-area: label;
  align-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
#v-campaigns .campaign-scope .tile-v {
  grid-area: value;
  align-self: center;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}
#v-campaigns .campaign-scope .tile-s { grid-area: note; }

.campaign-gap {
  margin: calc(-1 * var(--s2)) 0 var(--s6);
  border-bottom: 1px solid var(--line-str);
}
.campaign-gap summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 44px;
  padding: var(--s2) 0;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.campaign-gap summary::-webkit-details-marker { display: none; }
.campaign-gap summary > span:first-child { display: flex; gap: var(--s2); }
.campaign-gap summary b { font-weight: 600; }
.campaign-gap summary #cp-gap-count { color: var(--slate); }
.campaign-gap-action { color: var(--navy-500); font-weight: 600; }
.campaign-gap-action::after { content: " +"; }
.campaign-gap[open] .campaign-gap-action::after { content: " -"; }
.campaign-gap-body { padding-bottom: var(--s4); }
.campaign-gap-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) 0;
}
.campaign-gap-command p { margin: 0; color: var(--slate); font-size: 13px; }

.campaign-register { margin-top: var(--s5); }
.campaign-ledger-head {
  display: grid;
  grid-template-columns: minmax(260px,1fr) 84px 84px 112px;
  gap: var(--s4);
  padding: var(--s2) 36px var(--s2) var(--s3);
  border-top: 1px solid var(--line-str);
  border-bottom: 1px solid var(--line-str);
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.campaign-ledger-head span:not(:first-child) { text-align: right; }
.campaign-empty { padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.campaign-history:empty { display: none; }

.mail {
  border: 1px solid var(--line-str);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}
.mail + .mail { margin-top: var(--s2); }
.mail-h {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  min-height: 38px; padding: var(--s2) var(--s3);
  background: var(--canvas); border-bottom: 1px solid var(--line);
}
.mail-to { font-size: 13px; font-weight: 600; min-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-h .sp { flex: 1; }
.mail-b { padding: var(--s3); }
.mail-subj { color: var(--navy-900); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.mail-body {
  font-size: 12px; color: var(--slate); line-height: 1.5;
  white-space: pre-wrap; font-family: var(--ff);
  margin: 0; max-height: 160px; overflow: auto;
}
.mail.sup { opacity: .68; border-style: dashed; }

/* --------------------------------------------------------- template view */
.templates-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.template-list { border-top: 1px solid var(--ink); }
.template-row {
  width: 100%; display: grid; gap: 3px;
  padding: var(--s3) 0;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left; cursor: pointer;
}
.template-row:hover,
.template-row.on {
  background: var(--navy-050);
  box-shadow: inset 3px 0 0 var(--arm-orange);
  padding-left: var(--s3);
}
.template-row-k {
  color: var(--slate); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.template-row b { font-size: 14px; font-weight: 700; }
.template-row span:last-child { color: var(--slate); font-size: 13px; }
.template-detail { border-top: 1px solid var(--ink); }
.template-detail-h {
  padding: var(--s3) 0 var(--s4);
  border-bottom: 1px solid var(--line);
}
.template-detail-h h2 {
  margin: var(--s1) 0;
  font-size: 22px; letter-spacing: -.015em;
}
.template-detail-h p { margin: 0; color: var(--slate); }
.template-preview {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.template-preview pre {
  margin: var(--s2) 0 0; padding: var(--s3);
  overflow: auto;
  border: 1px solid var(--line);
  background: #F4F4F5; color: var(--ink);
  font-family: var(--ff-mono); font-size: 13px; line-height: 1.55;
  white-space: pre-wrap;
}
.template-tones { padding: var(--s4) 0; }
.tone-row {
  display: grid; grid-template-columns: 90px minmax(0, 1fr);
  gap: var(--s4); padding: var(--s2) 0;
  border-bottom: 1px solid var(--line-faint);
}
.tone-row b { font-size: 13px; }
.tone-row span { color: var(--slate); font-size: 13px; }

.run {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: var(--s4);
  width: 100%; padding: var(--s3) 36px var(--s3) var(--s3);
  border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent;
  color: var(--ink); font: inherit; text-align: left;
  cursor: pointer;
  transition: background .13s var(--ease), border-color .13s var(--ease), box-shadow .13s var(--ease);
}
.run + .run { margin-top: 0; }
.run::after {
  content: ''; position: absolute; right: var(--s4); top: 50%; width: 7px; height: 7px;
  border-top: 2px solid var(--navy-500); border-right: 2px solid var(--navy-500);
  transform: translateY(-50%) rotate(45deg);
}
.run:hover { box-shadow: none; border-color: var(--line); background: var(--navy-050); }
.run:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.run-t b { font-size: 14px; font-weight: 600; }
.run-t div { font-size: 12px; color: var(--slate); margin-top: 2px; }
.run-m { display: grid; grid-template-columns: 84px 84px 112px; align-items: center; gap: var(--s4); }
.runs { max-width: none; }
.run-n { text-align: right; }
.run-n b {
  display: block; font-family: var(--ff-mono); font-size: 18px; font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.run-n span { font-size: 10px; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }

.campaign-command {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s4);
  background: var(--paper);
}
.command-filters, .command-actions { display: flex; align-items: center; gap: var(--s3); }
.command-actions { justify-content: flex-end; }
.campaign-command .acts-note {
  margin-right: var(--s2); color: var(--navy-700); font-weight: 600; white-space: nowrap;
}
.campaign-review > .card-b { background: transparent; }
.campaign-review .note.warn { margin-bottom: 10px !important; }

/* --------------------------------------------------------------- drawer */
.scrim {
  position: fixed; inset: 0; background: rgba(0,27,57,.42);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 70;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw);
  background: var(--paper); z-index: 71;
  box-shadow: -10px 0 40px rgba(16,23,32,.20);
  transform: translateX(100%);
  transition: transform .24s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-h {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s-gut); border-bottom: 1px solid var(--line);
}
.drawer-h h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.012em; }
.drawer-h p { margin: var(--s1) 0 0; font-size: 14px; color: var(--slate); }
.drawer-b { flex: 1; overflow-y: auto; padding: var(--s4) var(--s-gut); }
.drawer-f {
  display: flex; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s-gut); border-top: 1px solid var(--line); background: var(--canvas);
}
.drawer-f .sp { flex: 1; }

/* A tight definition grid, not a property dump. Fifteen rows on a 148px track
   with a 9px gutter ran from y=175 to y=750 and pushed the validation record --
   the artefact that makes any of this defensible in an audit -- below the
   fold. max-content sets the label column to the longest label and no wider. */
.kv {
  display: grid; grid-template-columns: max-content minmax(0,1fr);
  row-gap: var(--s1); column-gap: var(--s-gut);
  font-size: 14px; margin: 0;
}
.kv dt { color: var(--slate); font-size: 12px; line-height: 1.5; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; line-height: 1.5; }
/* Four named blocks, each with a rule above it. */
.kv + .sec-t {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.certificate-preview {
  height: 440px; border: 1px solid var(--line); background: var(--canvas);
}
.certificate-image {
  display: block; width: 100%; height: 100%; border: 0; object-fit: contain;
}
.certificate-canvas { display: block; max-width: 100%; max-height: calc(100% - 38px); margin: 12px auto; background: #fff; box-shadow: 0 1px 3px rgba(0,40,85,.16); }
/* Zoom control on the certificate viewer, so a reviewer can read a
   registration number the way the customer sees their own upload. */
.review-document-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.doc-zoom { display: flex; align-items: center; gap: 4px; }
.doc-zoom button {
  min-width: 26px; height: 24px; border: 1px solid var(--line-str);
  border-radius: 3px; background: #fff; color: #9A4A08;
  font: 700 13px/1 var(--ff); cursor: pointer;
}
.doc-zoom button:hover:not(:disabled) { background: var(--navy-050); }
.doc-zoom button:disabled { color: var(--slate); opacity: .45; cursor: default; }
.doc-zoom-fit { min-width: 34px !important; font-size: 11px !important; }
#rr-zoom-level {
  min-width: 40px; text-align: center; color: var(--slate);
  font: 600 11px var(--ff-mono);
}
/* The pane centres the page, which clips the left edge of anything wider than
   itself, so centring is dropped the moment the page is bigger than the pane. */
.review-document-body.zoomed { align-items: flex-start; justify-content: flex-start; }
/* ---------------------------------------------------------------- import */

.import-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px; margin-bottom: 18px;
}
.import-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; min-height: 216px; padding: 26px;
  border: 2px dashed var(--line-str); border-radius: var(--r);
  background: var(--surface); color: var(--slate);
  text-align: center; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.import-drop:hover, .import-drop.over { border-color: #9A4A08; background: #E9F3F4; }
.import-drop b { color: var(--ink); font-size: 15px; }
.import-drop > span { font-size: 12.5px; }
.import-drop svg { color: #9A4A08; }
.import-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.import-side {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.import-h { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.import-legend { display: grid; grid-template-columns: auto minmax(0, 1fr);
                 gap: 9px 12px; margin: 0; align-items: start; }
.import-legend dt { white-space: nowrap; }
.import-legend dd { margin: 0; color: var(--slate); font-size: 12.5px; line-height: 1.45; }
.import-note { margin: 14px 0 0; color: var(--slate); font-size: 12px; line-height: 1.5; }
.import-note a { color: #9A4A08; font-weight: 600; }

.import-status {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); font-size: 13px;
}
#v-import .import-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
#v-import .import-drop { min-height:180px; padding:24px; }
#v-import .import-side { padding:16px 22px; }
#v-import .import-side summary { cursor:pointer; margin:0; font-size:14px; }
#v-import .import-side[open] summary { margin-bottom:18px; }
.import-progress { padding:24px; margin-bottom:18px; border:1px solid var(--line-str); border-radius:12px; background:#fff; }
.import-progress-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.import-progress-heading h2 { margin:0; font:600 20px/1.4 var(--ff); }
.import-progress-heading b { font-size:14px; }
.import-progress progress { display:block; width:100%; height:14px; margin:18px 0 12px; accent-color:#007681; }
.import-progress p { font-size:14px; color:var(--slate); line-height:1.6; }
.import-progress-files { margin-top:16px; border-top:1px solid var(--line); }
.import-progress-files summary { padding-top:14px; font-weight:600; cursor:pointer; }
.import-progress-files ul { list-style:none; padding:0; margin:12px 0 0; max-height:300px; overflow:auto; }
.import-progress-files li { display:flex; justify-content:space-between; align-items:start; gap:20px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.import-progress-files li span { min-width:0; overflow-wrap:anywhere; }
.import-progress-files li b { flex-shrink:0; font-weight:500; }
.import-progress-files .is-retry { color:#923b32; }
.import-status progress { max-width:200px; accent-color:#007681; }
.import-status.validation-announcement { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:600px) { .import-progress { padding:16px; } .import-progress-heading h2 { font-size:18px; } }
.import-summary { margin-bottom: 14px; }
/* Outlines of optional fields stay out of the batch panel until "Other extracted values" opens. */
#imp-detail .field-box[hidden] { display: none; }
.import-tally { display: inline-flex; align-items: center; gap: 7px; }
.import-tally b { font-family: var(--ff-mono); font-size: 15px; }
.import-status-note { margin: 0 0 12px; }

/* The batch review queue: every certificate in the batch on the left, the selected one on the
   right. The filters are the Certificates screen's own work-queue tabs, so this screen filters
   the way the rest of the console already does. */
.import-filter-n { margin-left: 2px; color: var(--slate); font-family: var(--ff-mono); font-size: 12px; }
.import-filing { margin: 8px 0 0; color: var(--slate); font-size: 12px; }
.import-filing:empty { display: none; }
.import-review {
  display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.import-queue, .import-panel { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.import-queue-h {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.import-queue-h h2 { margin: 0; font: 600 14px var(--ff); }
.import-queue-h .hint { font-size: 11px; }
/* The list scrolls inside itself, so the panel beside it stays put while a long batch is read. */
.import-queue-scroll { max-height: calc(100vh - 210px); min-height: 160px; overflow: auto; }
.import-queue-table { width: 100%; table-layout: fixed; }
.import-queue-table thead th { position: sticky; top: 0; z-index: 1; }
.import-queue-table th:nth-child(2) { width: 46px; }
.import-queue-table th:nth-child(3) { width: 74px; }
.import-queue-table th:nth-child(4) { width: 124px; }
.import-queue-table td { vertical-align: top; overflow-wrap: anywhere; }
/* The columns are fixed, so what is written in them wraps rather than spilling past the list:
   a long form code, and the filing line under the badge ("Attach to a customer"). The badge
   itself stays on one line. */
.import-queue-table td.w { white-space: normal; }
.import-queue-table td.w .badge { white-space: nowrap; }
#imp-table tr[aria-selected="true"] td { background: #FFF4E6; }
#imp-table tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--navy-500); }
#imp-table tr:focus-visible { outline: 2px solid var(--navy-500); outline-offset: -2px; }
.import-queue-table tr.is-pending .import-file { color: var(--slate); }
.import-queue-customer { margin-top: 3px; font-size: 12px; }
.import-queue-outcome { margin-top: 5px; color: var(--slate); font-size: 11.5px; line-height: 1.35; }
.import-queue-problems { margin-top: 2px; color: var(--stop); font-size: 11.5px; font-weight: 600; }
.import-queue-table .badge .spin { width: 9px; height: 9px; border-width: 1.5px; }
.import-queue-empty { margin: 0; padding: 18px 14px; color: var(--slate); font-size: 13px; }

.import-panel {
  position: sticky; top: calc(var(--top-h, 56px) + 12px);
  max-height: calc(100vh - var(--top-h, 56px) - 24px); overflow: auto;
}
.import-panel:focus { outline: none; }
.import-panel-h {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.import-panel-t { flex: 1 1 260px; min-width: 0; }
.import-panel-t h2 { margin: 0; font: 600 15px/1.35 var(--ff); overflow-wrap: anywhere; }
.import-panel-t p { margin: 3px 0 0; color: var(--slate); font-size: 12px; overflow-wrap: anywhere; }
.import-panel-t p:empty { display: none; }
.import-panel-nav { display: flex; align-items: center; gap: 8px; }
.import-panel-nav span { min-width: 54px; color: var(--slate); font-size: 12px; text-align: center; }
.import-panel-summary { display: grid; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.import-panel-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.import-panel-sentence { flex: 1 1 240px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.import-official, .import-open-record { color: #9A4A08; font-size: 12px; font-weight: 600; }
.import-official { margin-left: 8px; }
.import-open-record { justify-self: start; font-size: 13px; }
.import-panel-actions {
  display: grid; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--navy-050);
}
.import-panel-actions > .btn { justify-self: start; }
.import-panel-problems { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.import-panel-problems .sec-t { margin: 0 0 10px; font: 600 13px var(--ff); }
.import-panel-problems h3 { margin: 14px 0 6px; color: var(--slate); font-size: 12px; font-weight: 600; }
.import-panel-problems h3:first-of-type { margin-top: 0; }
.import-panel-problems .import-problems { padding-left: 17px; color: var(--ink); font-size: 13px; }
.import-panel-problems .import-problems li { margin-bottom: 8px; line-height: 1.45; }
.import-panel-problems .import-problems li > * + * { margin-left: 6px; }
.import-panel-problems .import-problems b { color: var(--stop); }
.import-panel-problems .import-problems .hint { font-size: 11.5px; }
.import-panel-problems a { color: #9A4A08; font-size: 12px; font-weight: 600; }
.import-panel-early { padding: 0 18px; }
.import-panel-early .pdf-field-preview { margin-block: 14px; }
.import-panel-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.import-panel-fields, .import-panel-document { min-width: 0; }
.import-panel-document-h {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.import-panel-document-h span { color: var(--slate); font-size: 11px; }
.import-document-body { padding: 14px; overflow: auto; background: #F4F4F5; color: var(--slate); font-size: 13px; }
.import-pages { gap: 14px; }
.import-page { display: grid; justify-items: start; gap: 6px; margin: 0; }
.import-page-n { color: var(--slate); font-size: 11px; line-height: 1.2; }
.read-field-required {
  margin-left: 6px; padding: 0 5px; border: 1px solid var(--line-str); border-radius: 3px;
  color: var(--ink); font-size: 10px; font-weight: 600; vertical-align: 1px;
}
/* Wide enough for the record screen's arrangement: the field list beside the document. */
@media (min-width: 1500px) {
  .import-panel-body { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); align-items: start; }
  .import-panel-document { border-left: 1px solid var(--line); }
}
/* The demo import has no per-certificate detail: its rows take the whole width. */
.import-review.is-demo { grid-template-columns: minmax(0, 1fr); }
.import-review.is-demo .import-panel, .import-review.is-demo .import-queue-h .hint { display: none; }
.import-review.is-demo .import-queue-table td .import-detail { margin-top: 6px; }
/* Narrow: the list over the selected certificate, both in the page's own scroll. */
@media (max-width: 1100px) {
  .import-review { grid-template-columns: minmax(0, 1fr); }
  .import-queue-scroll { max-height: 360px; }
  .import-panel { position: static; max-height: none; overflow: visible; }
  .import-panel-h { position: static; }
}
@media (max-width: 520px) {
  /* Tighter cells, so the widest badge ("Action needed") still fits its column. */
  #imp-table th, #imp-table td { padding-inline: 6px; }
  .import-queue-table th:nth-child(2) { width: 34px; }
  .import-queue-table th:nth-child(3) { width: 58px; }
  .import-queue-table th:nth-child(4) { width: 116px; }
  .import-panel-h, .import-panel-summary, .import-panel-actions, .import-panel-problems { padding-inline: 14px; }
  .import-panel-nav { width: 100%; justify-content: space-between; }
}
.import-file { font-family: var(--ff-mono); font-size: 12.5px; word-break: break-all; }
.import-detail { display: grid; gap: 5px; font-size: 13px; line-height: 1.45; }
.import-problems { margin: 0; padding-left: 17px; color: var(--stop); font-size: 12.5px; }
.import-problems li { margin-bottom: 2px; }
.import-candidates { color: var(--slate); font-size: 12px; }
.import-assign { display: grid; gap: 4px; margin-top: 2px; }
.import-assign-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.import-assign-select { min-width: 0; max-width: 100%; flex: 1 1 220px; }
.import-ref { color: var(--slate); font-size: 11.5px; }

/* Review the split: one card per PDF, one list item per proposed certificate. A list and not a
   table, so it reads the same at phone width. */
.import-split { margin-bottom: 18px; }
.import-split .card-h, .import-split .card-b { padding-inline: var(--s-gut); }
.import-split .card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.import-split .card-h h2 { margin: 0; font-size: 14px; }
.split-file { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.split-file-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.split-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.split-piece { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
               display: grid; gap: 6px; min-width: 0; }
.split-piece-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.split-range { font-weight: 600; }
.split-reasons { margin: 0; padding-left: 17px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.split-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.split-actions select { max-width: 100%; }
.split-left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 4px 12px;
              color: var(--slate); font-size: 12.5px; font-style: italic; }
.split-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

@media (max-width: 520px) {
  .split-actions { flex-direction: column; align-items: stretch; }
  .split-actions .btn, .split-actions select { width: 100%; }
  .split-foot { flex-direction: column; }
  .split-foot .btn { width: 100%; }
}

@media (max-width: 900px) {
  .tenant-controls { grid-template-columns: minmax(0, 1fr); }
  .import-grid { grid-template-columns: minmax(0, 1fr); }
}

/* A Vertex id is a short number from O Series but a 36-character GUID from
   Certificate Center, so the cell is capped and clipped rather than allowed to
   set the column's width; the full value is on the element's title and on the
   record screen. */
.cert-ref { overflow: hidden; }
.cert-ref .num { font-size: 12px; }
.cert-ref .num, .cert-ref .hint {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.certificate-missing { margin: var(--s2) 0 0; color: var(--slate); font-size: 13px; }
.certificate-loading { margin: 0; padding: 16px; color: var(--slate); font-size: 13px; }
.certificate-open { display: inline-block; margin: 9px 12px; color: #9A4A08; font-size: 12px; font-weight: 700; text-decoration: none; }
.certificate-open:hover { text-decoration: underline; }
.review-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }.btn.deny { border-color: #D14124; background: #fff; color: #B5331E; }.btn.deny:hover { background: #FEF0ED; }
.review-row { cursor: pointer; }.review-row:hover { background: var(--navy-050); box-shadow: inset 3px 0 0 var(--navy-700); }
.review-record-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 20px;
}
.review-record-head > div:first-child { min-width: 0; }
.review-record-head .ptitle {
  margin: 4px 0 8px; font: 600 26px/1.25 var(--ff); overflow-wrap: anywhere;
}
.review-kicker { margin: 0; color: var(--slate); font: 600 12px var(--ff); }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.review-summary .pnote { margin: 0; }
.review-reference {
  margin: 8px 0 0; color: var(--slate); font: 11px/1.5 var(--ff-mono); overflow-wrap: anywhere;
}
.review-reference:empty { display: none; }
.review-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-split {
  display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start; border: 1px solid var(--line); background: var(--paper);
}
.review-info, .review-document { min-width: 0; background: var(--paper); }
.review-info-title { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); font: 600 14px var(--ff); }
.review-section { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.review-section:last-child { border-bottom: 0; }
.review-section h3 { margin: 0 0 12px; font: 600 13px var(--ff); }
.review-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.review-kv dt { color: var(--slate); font-size: 12px; }
.review-kv dd { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.review-info .certificate-audit { padding: 20px 22px; border-top: 1px solid var(--line); }
.review-info .certificate-audit h2 { margin: 0 0 12px; font: 600 13px var(--ff); }
.review-info .certificate-audit .audit li { grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.review-document { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.review-document-h {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.review-document-h b, .review-document-h span { display: block; }
.review-document-h b { font-size: 13px; }
.review-document-h span { margin-top: 2px; color: var(--slate); font-size: 11px; }
.review-document-h .review-document-tools { flex-wrap: wrap; min-width: 0; }
.review-document-h a { color: #9A4A08; font-size: 12px; font-weight: 600; }
.review-document-body {
  display: flex; align-items: flex-start; justify-content: center;
  min-height: 640px; overflow: auto; padding: 20px; background: #F4F4F5;
  color: var(--slate); font-size: 13px;
}
.review-document-body .certificate-canvas { max-height: none; margin: 0; }
@media (max-width: 1100px) {
  .review-split { grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); }
  .review-section, .review-info-title, .review-info .certificate-audit { padding: 16px; }
  .review-kv { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; }
}
@media (max-width: 760px) {
  .review-record-head { flex-direction: column; gap: 16px; }
  .review-record-head .ptitle { font-size: 22px; }
  .review-record-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .review-record-actions #rr-back { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .review-split { grid-template-columns: minmax(0, 1fr); }
  .review-document { grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .review-document-h { padding: 16px; }
  .review-document-body { min-height: 440px; padding: 12px; }
}
.review-reject-dialog { width: min(560px, calc(100vw - 32px)); border: 0; padding: 0; color: var(--ink); box-shadow: var(--sh-3); }.review-reject-dialog::backdrop { background: rgba(0, 40, 85, .48); }.review-reject-dialog form { display: grid; gap: 12px; padding: 28px; }.review-reject-dialog h2 { margin: 0; font-size: 20px; }.review-reject-dialog p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.5; }.review-reject-dialog label { font-size: 12px; font-weight: 700; }.review-reject-dialog textarea { min-height: 118px; resize: vertical; border: 1px solid var(--line-str); padding: 10px; font: 14px/1.45 var(--ff); }.review-reject-note { font-size: 12px !important; }.review-reject-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }

/* check list in the drawer */
.audit { list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.audit li {
  display: grid; grid-template-columns: 22px 26px minmax(0,1fr);
  gap: var(--s3); align-items: start;
  padding: var(--s2) var(--s3); font-size: 12px; border-top: 1px solid var(--line);
}
.audit li:first-child { border-top: 0; }
.audit .n { font-family: var(--ff-mono); color: var(--slate-lt); font-size: 12px; padding-top: 1px; }
.audit .s { padding-top: 1px; }
.audit li.pass .s { color: var(--ok); }
.audit li.fail .s { color: var(--stop); }
.audit li.na   .s { color: var(--slate-lt); }
.audit li.fail { background: #FEF8F7; }
.audit b { display: block; font-weight: 600; }
.audit span { display: block; color: var(--slate); margin-top: 2px; line-height: 1.45; }

.linky {
  border: 0; background: none; padding: 0;
  font: inherit; color: var(--navy-500); text-align: left;
  cursor: pointer; text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .12s var(--ease);
}
.linky:hover { text-decoration-color: currentColor; }

.chip-env {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s2);
  border-radius: 999px; border: 1px solid var(--line-str);
  background: var(--canvas-2); color: var(--slate);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.tone-pick {
  display: flex; flex-direction: column; gap: var(--s1);
  min-width: 0; max-width: none;
}
.tone-pick .sel { height: 34px; font-size: 14px; }
.tone-pick .hint { line-height: 1.35; }

/* --------------------------------------------------------------- toasts */
.toasts {
  position: fixed; right: var(--s4); bottom: var(--s4); z-index: 90;
  display: flex; flex-direction: column; gap: var(--s3); align-items: flex-end;
}
.toast {
  display: flex; align-items: flex-start; gap: var(--s3);
  min-width: 260px; max-width: 400px;
  padding: var(--s3) var(--s4);
  background: var(--navy-900); color: #fff;
  border-radius: var(--r); box-shadow: var(--sh-3);
  font-size: 14px; line-height: 1.45;
  animation: rise .22s var(--ease);
}
/* Four outcomes, four grounds. A green tick over "a campaign already exists"
   told the room an action had succeeded when nothing had happened. */
.toast.ok   { background: #4F5B0A; }
.toast.stop { background: #8E1D17; }
.toast.info { background: var(--navy-700); }
.toast.warn { background: #7A4E11; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------- misc */
/* .spin and its keyframe moved to portal.css: the portal needs them too, and
   the portal does not load this file. */

/* Where the data came from, stated once, in the top bar, in the register of a
   status chip. It used to be an amber card mid-page reading "Do not process
   this queue until that is resolved" -- a screen announcing that it is fake,
   in the middle of the argument for replacing Vertex. */
.env-chip {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 var(--s2);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  color: var(--slate);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}

.workspace-scope {
  display: grid;
  grid-template-columns: auto minmax(154px, 190px);
  align-items: center;
  gap: var(--s2);
  color: var(--slate);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.workspace-scope select {
  min-width: 0;
  height: 30px;
  border: 1px solid var(--line-str);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 600 12px var(--ff);
  letter-spacing: 0;
  text-transform: none;
}
.workspace-scope select:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

.as-of {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 14px; color: var(--slate);
}
.as-of .inp { height: 32px; width: 150px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .spin { animation-duration: 3s; }
  .tile:hover { transform: none; }
}

@media (max-width: 1100px) {
  .campaign-planner { grid-template-columns: minmax(0,1fr) minmax(220px,280px); }
  .campaign-planner > .btn { grid-column: 2; justify-self: start; }
}

@media (min-width: 1180px) {
  #v-certificates .bar {
    display: grid;
    grid-template-columns: minmax(190px,1fr) 132px 142px 184px 150px auto;
    gap: var(--s2);
  }
  #v-certificates .bar .bar-find { min-width: 0; }
  #v-certificates .bar > .sel { width: 100%; min-width: 0; }
  #v-certificates .bar .sp { display: none; }
  #v-certificates #clear-filters { justify-self: end; }
}

@media (max-width: 900px) {
  .production-register-fields { grid-template-columns: 1fr; }
  .production-campaign-fields { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
  .rung { grid-template-columns: minmax(160px,1fr) 52px; }
  .rung-s { display: none; }
  .drawer { width: 100vw; }
  .dt-wrap { max-height: none; }
  .top { gap: var(--s2); }
  .workspace-scope { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* Fixed column contracts are for a workspace that has the width for them. */
  #cert-table, #vx-table { table-layout: auto; }
  #cert-table th, #vx-table th { width: auto; }
  .campaign-command { grid-template-columns: minmax(0,1fr); }
  .command-actions { justify-content: flex-start; flex-wrap: wrap; }
  .command-actions .acts-note { flex: 1 1 100%; }
  .run { grid-template-columns: minmax(0,1fr); gap: var(--s3); }
  .run-m { justify-content: flex-start; }
  .run-n { text-align: left; }
  .campaign-ledger-head { display: none; }
  .templates-workbench { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

@media (max-width: 520px) {
  .workspace-scope { display: none; }
  #v-campaigns .phead, #v-campaign .phead { flex-direction: column; }
  #v-campaigns .phead .btn, #v-campaign .phead .btn { width: 100%; }
  .tone-pick { width: 100%; }
  .tone-pick .sel { width: 100%; }
  .campaign-planner { grid-template-columns: minmax(0,1fr); gap: var(--s4); }
  .campaign-planner > .btn { grid-column: auto; width: 100%; }
  .campaign-scope { grid-template-columns: minmax(0,1fr); }
  #v-campaigns .campaign-scope .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  #v-campaigns .campaign-scope .tile:last-child { border-bottom: 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: var(--s1); }
  .campaign-gap-command { align-items: flex-start; flex-direction: column; }
  .campaign-gap-command .btn { width: 100%; }
  .campaign-gap summary { align-items: flex-start; flex-direction: column; gap: var(--s1); }
  .campaign-gap summary > span:first-child { flex-wrap: wrap; }
  .command-filters { align-items: stretch; flex-direction: column; }
  .command-filters .sel { width: 100%; }
  .command-actions .btn { flex: 1 1 auto; }
  .mail-h .sp { display: none; }
  .mail-to { flex: 1 1 100%; }
  .tone-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}

@media (max-width: 700px) {
  /* The Certificates table reflows into stacked rows (certificates-design.css); it is not replaced by a separate card list. */
  .cert-mobile { display: block; }
  .dt-wrap { overflow: visible; }
  #tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-focus { grid-template-columns: auto auto; }
  .review-focus-copy { grid-column: 1 / -1; }
  .review-focus-link { grid-column: 1 / -1; }
}

/* Four rules that used to be style="" attributes on the markup.
 *
 * style-src is 'self' and a style attribute is inline style, so the policy refused all four
 * -- including the accent-color on #show-suppressed, which means that one checkbox was the
 * single control on the page still rendering in the browser's default blue while everything
 * around it wore the client's palette. The others were silently dropped spacing.
 *
 * Hashes do not help here: the CSP spec does not apply them to style attributes without
 * 'unsafe-hashes'. Moving the declarations into the stylesheet is the fix; widening the
 * policy to permit inline style would not be. */
.row.row-tight { gap: 7px; font-size: 13px; }
#show-suppressed { accent-color: var(--navy-700); }
.note.note-spaced { margin-bottom: 16px; }
.flex-fill { flex: 1; min-width: 0; }

/* Customers: the screen a client with no ERP uses to name who should be chased. */
.customer-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: end; margin-top: 14px; }
.customer-form .fld-l { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.customer-form-go { display: flex; align-items: flex-end; }
.customer-form-go .btn { width: 100%; }

/* A minted link is shown exactly once -- the API keeps only its digest -- so this has to be
   impossible to miss and easy to copy before it is dismissed. */
.link-card { border-left: 3px solid var(--navy-700); }
.link-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.link-out { flex: 1 1 320px; font-family: var(--ff-mono); font-size: 12px; }

/* Two ways to ask a customer, side by side in one cell: the product's own (email) first,
   the operator's (copy a link) second. They wrap rather than overflow at narrow widths. */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions .btn { white-space: nowrap; }

/* ==========================================================================
   The house template: a LIGHT rail, which is the structural half the colour
   pass missed.
   ==========================================================================

   Cooling the dark rail from brown to near-black fixed the temperature and left the shape
   alone, and the shape was the complaint -- "it's just black". The reference this is modelled
   on (Armanino's residency staff portal) puts the navigation on WHITE: near-black type, one
   orange accent, the content on a warm-neutral ground beside it. The dark slab was never the
   house style; it was inherited.

   Three things follow from the rail being light, and they are why this is one change:

   1. THE LOGO WORKS. armanino-primary-logo.png is a near-black wordmark with a coloured
      accent on ~11% of its pixels. On the dark rail it was invisible, and knocking it white
      with a filter would have flattened the accent -- which is why the rail rendered the word
      "armanino" as TYPE instead. On white it simply renders, so the real mark goes back.

   2. THE WARM GROUND STOPS FIGHTING. The earlier pass replaced #FCF4EC with a cool grey
      because warm cream under a near-black rail and an orange button is three temperatures
      arguing. That reasoning was right GIVEN A DARK RAIL. Remove the slab and a warm-neutral
      ground is what makes the orange look chosen rather than loud, which is what the
      reference does. Changing the rail changes the answer, so the ground changes back -- to
      #F7F6F3, a neutral with a trace of warmth, not the old cream.

   3. ONLY THE UNBRANDED CONSOLE CHANGES. Everything here is scoped to
      :not([data-tenant-branded]). A client with a branding row keeps their own dark rail,
      because tenant-branding.js sets the tokens as an inline style and an inline style beats
      any selector. Ryerson stays the one customised portal; every other client gets this. */

html:not([data-tenant-branded]) .rail {
  background: #FFFFFF;
  border-right: 1px solid #E5E3DF;
}
html:not([data-tenant-branded]) .rail-head { border-bottom: 1px solid #EFEDE9; }

/* The real mark, not the word set in a sans. Hidden until now because it could not be seen
   on a dark ground; the text stays in the accessibility tree as the accessible name, since
   the image is decorative (alt=""). */
html:not([data-tenant-branded]) .rail-head .tenant-logo {
  display: block;
  width: 132px;
  height: auto;
}
html:not([data-tenant-branded]) .rail .rail-head [data-tenant-name] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html:not([data-tenant-branded]) .rail-wordmark::after { display: none; }

html:not([data-tenant-branded]) .rail-product { color: var(--ink); margin-top: 14px; }
html:not([data-tenant-branded]) .rail-app,
html:not([data-tenant-branded]) .rail-cap { color: #6B6B6B; }
html:not([data-tenant-branded]) .rail-foot {
  border-top: 1px solid #EFEDE9;
  color: #6B6B6B;
}
html:not([data-tenant-branded]) .rail-foot b { color: var(--ink); }
html:not([data-tenant-branded]) .rail-foot a { color: #B05A0A; }

/* Active is a solid near-black pill, the way the reference marks its current section. Inverse
   of everything round it, so it reads at a glance without a second colour. */
html:not([data-tenant-branded]) .nav a { color: #404040; }
html:not([data-tenant-branded]) .nav a:hover { background: #F2F0EC; color: var(--ink); }
html:not([data-tenant-branded]) .nav a[aria-current="page"] {
  background: #1A1A1A;
  color: #FFFFFF;
}
html:not([data-tenant-branded]) .nav-ic { color: #8A8A8A; }
html:not([data-tenant-branded]) .nav a[aria-current="page"] .nav-ic { color: #FFFFFF; }
html:not([data-tenant-branded]) .nav-n { background: #F2F0EC; color: #4A4A4A; }
html:not([data-tenant-branded]) .nav a[aria-current="page"] .nav-n {
  background: rgba(255,255,255,.22);
  color: #FFFFFF;
}
/* Section names with nothing behind them yet. #767676 on white is 4.6:1 -- legible, and
   plainly quieter than the #404040 live items. */
html:not([data-tenant-branded]) .nav-inert { color: #767676; }

/* The ground, and the cards on it. */
html:not([data-tenant-branded]) .work { background: #F7F6F3; }
html:not([data-tenant-branded]) .top { background: #FFFFFF; box-shadow: inset 0 -1px 0 #E5E3DF; }

/* One accent, and the two values it needs.
   #DA720F carries bars, underlines and dots, where 3:1 is the bar and it clears it at 3.28:1.
   Anything bearing text or a check mark takes #B05A0A instead, which is 4.87:1 against white
   -- the same orange read at a glance, and the difference between a button you can read and
   one you cannot. */
html:not([data-tenant-branded]) .btn.pri {
  background: #B05A0A;
  border-color: #B05A0A;
  color: #FFFFFF;
}
html:not([data-tenant-branded]) .btn.pri:hover {
  background: #9A4A08;
  border-color: #9A4A08;
}

/* The product lockup, where there is no client branding to defer to.
   It carries the Armanino logo, the Cert IQ wordmark and the certificate glyph together, so
   the separately typed wordmark and product name are hidden behind it rather than repeated.
   Both stay in the DOM: the typed name is the accessible name when the image fails to load,
   and alt text on the image covers the case where it does. */
.product-lockup { display: none; }
html:not([data-tenant-branded]) .product-lockup {
  display: block;
  width: 168px;
  height: auto;
  margin-bottom: 2px;
}
html:not([data-tenant-branded]) .product-lockup ~ .rail-product,
html:not([data-tenant-branded]) .rail-head .tenant-logo { display: none; }

/* Desktop certificate workbench: queues above the inventory, evidence beside the record. */
#v-certificates .ptitle { font: 600 26px/1.25 var(--ff); }
#v-certificates .phead { margin-bottom: 20px; }
.certificate-views { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.certificate-views button {
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  padding: 12px 18px; font: 500 13px var(--ff); color: var(--slate); cursor: pointer;
}
.certificate-views button:first-child { padding-left: 0; }
.certificate-views button[aria-pressed="true"] { border-bottom-color: #B05A0A; color: var(--ink); font-weight: 600; }
.certificate-views button:hover { color: var(--ink); background: var(--navy-050); }
.certificate-view-note { margin: 12px 0 18px; color: var(--slate); font-size: 12px; }
#v-certificates .bar { gap: 10px; padding: 14px 0; }
#v-certificates .bar-find { flex: 1 1 300px; }
#v-certificates .bar .inp, #v-certificates .bar .sel { font-size: 12px; height: 36px; }
#v-certificates .bar > .sel { min-width: 100px; max-width: 165px; }
#cert-table { font-size: 12px; }
#cert-table th, #cert-table td { padding: 12px 10px; }
#cert-table th { font-size: 10px; letter-spacing: .03em; }
#cert-table .badge { font-size: 10px; }
#cert-table .certificate-link {
  display: block; border: 0; background: none; padding: 0; text-align: left;
  color: var(--ink); font: 600 12px/1.5 var(--ff); cursor: pointer; overflow-wrap: anywhere;
}
#cert-table .certificate-link:hover { color: #9A4A08; text-decoration: underline; }
#cert-table .cust span { font-size: 11px; }
#cert-table .cert-ref .num { font-size: 10px; overflow-wrap: anywhere; white-space: normal; }
.record-navigation { display: flex; align-items: center; gap: 8px; flex-basis: 100%; justify-content: flex-end; }
.record-navigation span { color: var(--slate); font-size: 11px; }
.review-record-actions { max-width: 470px; justify-content: flex-end; }
.review-attention { padding: 16px 22px; border-bottom: 1px solid var(--line); background: #FFF8EE; }
.review-attention h3 { margin: 0 0 8px; font: 600 13px var(--ff); color: #8A4B0A; }
.review-attention ul { padding-left: 16px; margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink); }

#cert-table th:nth-child(1) { width: 20%; }
#cert-table th:nth-child(2) { width: 12%; }
#cert-table th:nth-child(3) { width: 5%; }
#cert-table th:nth-child(4) { width: 8%; }
#cert-table th:nth-child(5) { width: 6%; }
#cert-table th:nth-child(6) { width: 12%; }
#cert-table th:nth-child(7) { width: 12%; }
#cert-table th:nth-child(8) { width: 8%; }
#cert-table th:nth-child(9) { width: 17%; }

/* Customer progress (#246): Requested, Emailed, Opened, Uploaded, Validated. */
.cprog { min-width: 180px; }
.cprog > summary { display: grid; gap: 6px; cursor: pointer; list-style: none; padding: 2px 0; }
.cprog > summary::-webkit-details-marker { display: none; }
.cprog > summary:focus-visible { outline: 2px solid var(--navy-500, #DA720F); outline-offset: 3px; border-radius: 4px; }
.cprog-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 160px; max-width: 100%; }
.cprog-seg { height: 6px; border-radius: 3px; background: #E5E3DF; }
.cprog-seg[data-state="done"] { background: #DA720F; }
.cprog-seg[data-state="skipped"] { background: repeating-linear-gradient(90deg, #DA720F 0 4px, #F4D9BF 4px 7px); }
.cprog-seg[data-state="warn"] { background: #B7791F; }
.cprog-seg[data-state="current"] { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #DA720F; }
.cprog-text { font-size: 12px; font-weight: 600; color: #404040; }
.cprog-text[data-tone="ok"] { color: #2F6B3A; }
.cprog-text[data-tone="warn"] { color: #8A5A10; }
.cprog-text[data-tone="stop"] { color: #A8231C; }
.cprog-steps { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 6px; }
.cprog-steps li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 12px; align-items: baseline; }
.cprog-steps li[data-state="todo"] b, .cprog-steps li[data-state="current"] b { color: #8A8A8A; font-weight: 600; }
.cprog-steps li[data-state="warn"] b { color: #8A5A10; }
@media (prefers-reduced-motion: no-preference) { .cprog-seg { transition: background .15s ease; } }
/* Team access (#247): every client's team, for Armanino operators. */
.team-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.team-list > * { min-width: 0; }
.team-filter label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.team-filter select { min-width: 220px; }
.team-queue { display: grid; gap: 12px; margin-top: 12px; }
.team-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 28px;
  align-items: start; padding: 14px 16px; border: 1px solid var(--line, #E5E3DF); border-radius: 8px; background: #FFFFFF; }
.team-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team-who .mono { overflow-wrap: anywhere; }
.team-step { display: grid; gap: 8px; justify-items: start; }
.team-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; width: 100%; }
.team-record label, .team-domains label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.team-record input { font-family: var(--mono, ui-monospace, monospace); min-width: 0; }
.team-record .row-actions { grid-column: 1 / -1; }
.team-domains { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 8px; }
.team-domains label { flex: 1 1 280px; }
.team-table { overflow-x: auto; }
@media (max-width: 760px) {
  .team-item { grid-template-columns: minmax(0, 1fr); }
  .team-record { grid-template-columns: minmax(0, 1fr); }
  .team-filter select { min-width: 0; width: 100%; }
  .team-filter label { display: grid; }
}
.team-list .card-b { padding: 14px 16px 16px; }
.team-list .card-b > .hint { margin: 0; }

/* A client switch in progress: the previous client's content is held back until the new
   client's data is in. The heading stays; only the content below it waits. */
.view.is-switching > :not(.phead):not(.switching-note) { visibility: hidden; }
.switching-note:empty { display: none; }

/* Fields read off the certificate, listed and outlined on the page. */
/* The record is a document followed by a full-width review, never a narrow rail.
   The ID specificity intentionally overrides the older mockup two-column rules. */
#v-review-record .review-split { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; background:transparent; border:0; }
#v-review-record .review-document { grid-column:1; grid-row:1; width:100%; border:1px solid var(--line-str); border-radius:12px; overflow:hidden; }
#v-review-record .review-info { grid-column:1; grid-row:2; width:100%; border:1px solid var(--line-str); border-radius:12px; overflow:hidden; }
#v-review-record .review-document-body { min-height:0; padding:24px; background:#e8e6df; }
#v-review-record .review-info-title { font-size:20px; }
#v-review-record .required-field-context { margin-bottom:20px; line-height:1.6; }
#v-review-record .required-field-list,
#v-review-record .read-field-more .read-field-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px 24px; }
#v-review-record .read-field-list li { border:1px solid var(--line); border-radius:6px; min-width:0; }
#v-review-record .read-field { min-height:80px; padding:14px; font-size:15px; }
#v-review-record .read-field-label { font-size:13px; }
#v-review-record .read-field-status { font-size:12px; }
#v-review-record .review-metadata { padding:20px 22px; border-top:1px solid var(--line); }
#v-review-record .review-metadata summary,
#v-review-record .read-field-more summary { padding:12px 0; font-size:14px; font-weight:600; cursor:pointer; }
#v-review-record .review-metadata .review-section { padding-inline:0; }
#v-review-record .read-field-more .hint { margin-bottom:16px; }
#v-review-record .read-fields { padding:24px; }
#v-review-record .read-fields .sec-t { font-size:20px; }
#v-review-record .field-box[hidden] { display:none; }
@media(max-width:760px) {
  #v-review-record .review-document-body { padding:12px; }
  #v-review-record .read-fields { padding:16px; }
  #v-review-record .review-document-tools { gap:10px; }
}
.read-fields { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.read-fields .sec-t { margin: 0 0 10px; font: 600 13px var(--ff); }
.read-fields-summary { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--warn); }
.read-field-list { list-style: none; margin: 0; padding: 0; }
.read-field-list li { border-top: 1px solid var(--line); }
.read-field-list li:first-child { border-top: 0; }
.read-field {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%;
  padding: 8px 6px; border: 0; border-left: 3px solid transparent; background: transparent;
  text-align: left; font: 13px/1.4 var(--ff); color: var(--ink); cursor: pointer;
}
.read-field:hover { background: var(--navy-050); }
.read-field.is-selected { background: #FFF4E6; border-left-color: var(--navy-500); }
.read-field:focus-visible { outline: 2px solid var(--navy-500); outline-offset: -2px; }
.read-field-label { flex: 0 0 100%; color: var(--slate); font-size: 11px; }
.read-field-value { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.read-field-value.is-none { color: var(--slate); font-weight: 400; font-style: italic; }
.read-field-status { flex: 0 0 auto; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-str); }
.read-field-status.is-read { color: #3F5F2A; border-color: #8DAE72; background: #F1F7EC; }
.read-field-status.is-missing { color: #8A3F00; border-color: #E58A2B; background: #FFF1DF; }
.read-field-status.is-problem { color: #A12A12; border-color: #D14124; background: #FDEDE9; }
.read-field-status.is-empty { color: var(--slate); border-style: dotted; background: #F4F4F5; }
.read-field-problem { flex: 0 0 100%; color: #A12A12; font-size: 12px; }
.read-field-page { flex: 0 0 100%; color: var(--slate); font-size: 11px; }
.read-field-more { margin-top: 8px; border-top: 1px solid var(--line); }
.read-field-more summary { padding: 8px 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--slate); }
.field-viewer { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: max-content; max-width: none; min-width: 0; margin: 0 auto; }
.field-none { margin: 0 0 8px; }
.field-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; box-sizing: border-box;
  width: 0; min-width: 100%; margin: 0 0 10px; font-size: 11px; color: var(--slate);
}
.field-legend-items { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.field-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.field-swatch { display: inline-block; width: 14px; height: 10px; border: 2px solid; border-radius: 2px; box-sizing: border-box; }
.field-stage { position: relative; width: fit-content; margin: 0 auto; line-height: 0; }
.field-stage .certificate-canvas { margin: 0; }
.field-overlay { position: absolute; inset: 0; pointer-events: none; }
.field-box {
  position: absolute; pointer-events: auto; box-sizing: border-box; padding: 0; margin: 0;
  border: 2px solid; background: transparent; cursor: pointer; min-width: 6px; min-height: 6px;
}
.field-box.is-read, .field-swatch.is-read { border-color: #6E9A4F; border-width: 1px; }
.field-box.is-missing, .field-swatch.is-missing { border-color: #E58A2B; background: rgba(229, 138, 43, .22); }
.field-box.is-problem, .field-swatch.is-problem { border-color: #D14124; border-style: dashed; }
.field-box.is-empty, .field-swatch.is-empty { border-color: #8A8A8A; border-style: dotted; }
.field-box.is-selected, .field-box:focus-visible {
  border-width: 3px; outline: 2px solid #fff; box-shadow: 0 0 0 4px rgba(218, 114, 15, .55); z-index: 2;
}
.field-box:hover::after, .field-box:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 3;
  width: max-content; max-width: 240px; padding: 5px 8px; border-radius: 3px;
  background: #262626; color: #fff; font: 12px/1.35 var(--ff); text-align: left; white-space: normal;
  pointer-events: none;
}
@media (max-width: 760px) {
  .read-fields { padding: 16px; }
  #rr-fields { min-width: 0; overflow-x: hidden; }
  .field-box:hover::after, .field-box:focus-visible::after { max-width: 180px; }
}

/* Connectors gallery: the approved design (web/design-demos/tax-team/connectors-preview.js,
   connector-setup-preview.js) on the live screen. NetSuite is the one live tile. */
.connector-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #FFF; border: 1px solid var(--line-str); border-left: 4px solid #DA720F;
  border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.connector-banner p { font-size: 13px; color: #666; margin: 6px 0 0; }
.connector-banner .badge { flex: none; }
@media (max-width: 480px) { .connector-banner { flex-direction: column; align-items: flex-start; gap: 10px; } }
.split-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.connector-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.connector-toolbar #connector-search { flex: 0 1 320px; width: 320px; min-width: 200px; }
.connector-toolbar #connector-category { flex: 0 0 200px; width: 200px; }
.connector-toolbar .hint { margin: 0; }
.connector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1200px) { .connector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .connector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .connector-grid { grid-template-columns: minmax(0, 1fr); } }
.connector-tile { display: flex; flex-direction: column; border: 1px solid var(--line-str); border-radius: 10px;
  background: #FFF; padding: 18px; min-width: 0; }
.connector-tile:hover { border-color: #666; }
.connector-tile .connector-logo { height: 60px; margin: 0 0 15px; display: flex; align-items: center; }
.connector-tile .connector-logo img { max-width: 175px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.connector-tile h2 { font-size: 14px; line-height: 1.4; min-height: 39px; margin: 0 0 12px; font-weight: 500; }
.connector-tile .connector-state { font-size: 12px; color: #444; margin: 0 0 8px; line-height: 1.5; }
.connector-tile .connector-sync { font-size: 11px; color: #666; margin: 0 0 12px; line-height: 1.5; }
.connector-tile-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid #E5E5E5; }
.connector-tile-footer > span:first-child { font-size: 11px; color: #666; }
.connector-tile-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.connector-tile.is-planned { background: #FAFAFA; }
.connector-tile.is-planned:hover { border-color: var(--line-str); }
.connector-tile.is-planned .connector-logo img { opacity: .75; }
.connector-tile.is-live { border-color: #DA720F; }
.connector-tile.connector-is-connected { border-color: var(--line-str); border-top: 3px solid #007681; padding-top: 16px; }

/* Who is signed in, and the way out, at the right of the top bar. */
.account { order: 99; display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
.account-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  background: #222222; color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.account-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-name { font-size: 12.5px; font-weight: 600; color: var(--ink); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-email { font-size: 11px; color: var(--slate); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-email:empty { display: none; }
.account-signout { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-str); background: #FFFFFF; color: var(--ink); font: 600 12.5px var(--ff, inherit); cursor: pointer; }
.account-signout:hover:not(:disabled) { border-color: #DA720F; color: #B45A06; background: #FFF6EC; }
.account-signout:focus-visible { outline: 3px solid #222222; outline-offset: 2px; }
.account-signout:disabled { opacity: .6; cursor: progress; }


/* Platform administration is a workbench: select one client, then change its
   controls. Showing every client as a full settings form made it unclear where a
   change would apply and made the page needlessly long. */
.administration-list { display: grid; gap: var(--s4); }
.administration-directory { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.administration-picker-label { display: grid; gap: 5px; min-width: min(440px, 100%); }
.administration-directory .eyebrow, .administration-detail-head .eyebrow { display: block; color: var(--slate); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.administration-client-select { width: 100%; min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line-str); border-radius: 4px; background: var(--paper); color: var(--ink); font: 600 13px/1.2 var(--ff); }
.tenant-control-card { min-width: 0; }
.tenant-control-card .card-b { display: grid; gap: var(--s5); }
.administration-detail-head { align-items: flex-start; }
.administration-detail-head h2 { margin: 3px 0 0; font-size: 21px; overflow-wrap: anywhere; }
.administration-detail-head .hint { margin: 0; }
.administration-detail-body { padding-top: var(--s4); }
.settings-section, .tenant-connectors { display: grid; gap: 0; }
.settings-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); }
.settings-section-head h3, .tenant-connectors h3 { margin: 0; font-size: 14px; }
.settings-section-head .hint { margin: 3px 0 0; }
.tenant-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); border-top: 1px solid var(--line); }
.feature-switch, .connector-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 76px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feature-switch b, .connector-switch b { display: block; color: var(--ink); font-size: 13px; }
.feature-switch small, .connector-switch small { display: block; max-width: 48ch; margin-top: 3px; color: var(--slate); font-size: 12px; line-height: 1.35; }
.feature-switch input, .connector-switch input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #9A4A08; }
.connector-empty { margin: 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--slate); font-size: 13px; }
.tenant-control-actions { display: flex; justify-content: flex-end; padding-top: var(--s1); }


#v-administration .administration-directory { padding:20px 24px; border:1px solid var(--line-str); border-radius:10px; }
#v-administration .administration-client-select { min-height:44px; font-size:16px; }
#v-administration .administration-picker-label { width:min(560px,100%); min-width:0; }
#v-administration .administration-list { gap:24px; }
#v-administration .client-team-start { padding:20px; border:1px solid var(--line); border-radius:8px; }
#v-administration .client-team-start p { max-width:75ch; font-size:14px; line-height:1.6; margin:10px 0 16px; }
#onboard-form [hidden] { display:none!important; }
#onboard-form { border:1px solid var(--line-str); border-radius:12px; padding:24px; margin-bottom:24px; background:#fff; }
#onboard-form h3 { margin-bottom:14px; }
#onboard-form .production-campaign-actions { gap:10px; flex-wrap:wrap; }
#onboard-review { margin-block:18px; }
#onboard-review dd { white-space:pre-line; }
.client-setup-note { padding:16px 20px; border-left:4px solid #007681; background:#f1f7f7; font-size:14px; line-height:1.6; }
.team-invite-form { display:grid; grid-template-columns:2fr 1fr 1.5fr; gap:16px; margin-top:20px; }
.team-invite-form label { display:grid; gap:8px; font-size:13px; min-width:0; }
.team-invite-form button { justify-self:start; }
.team-invite-form [role=status] { grid-column:1/-1; }
.team-role-guide { margin-top:16px; font-size:14px; line-height:1.6; }
.team-role-guide summary { cursor:pointer; font-weight:600; }
.team-role-guide ul { margin:12px 0; padding-left:24px; }
@media(max-width:760px) {
  .team-invite-form { grid-template-columns:minmax(0,1fr); }
  #v-administration .administration-directory { flex-direction:column; align-items:stretch; padding:16px; }
  #v-administration .tenant-controls { grid-template-columns:minmax(0,1fr); }
  #onboard-form { padding:16px; }
}

#v-administration .administration-detail-body { padding:24px; gap:24px; }
#v-administration .tenant-control-card { border:1px solid var(--line-str); border-radius:12px; box-shadow:none; }
#v-administration .administration-detail-head h2 { font-size:24px; color:var(--ink); }

html.certificate-workbench #v-administration .card-b.administration-detail-body { padding:24px; gap:24px; }
html.certificate-workbench #v-administration .tenant-control-card .administration-detail-head h2 { font-size:24px; color:var(--ink); }
@media(max-width:760px) { html.certificate-workbench #v-administration .card-b.administration-detail-body { padding:16px; } }
/* Create a customer from a held certificate (2026-11-08). */
.import-new-customer { display: grid; gap: 8px; margin-top: 6px; padding: 10px 12px; border: 1px solid #DADADA; border-radius: 6px; background: #FAFAF8; }
.import-new-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 700px) { .import-new-fields { grid-template-columns: minmax(0, 1fr); } }
.import-new-field { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: #444; }
.import-new-field .inp { font-weight: 400; min-width: 0; }
.import-new-error { margin: 0; color: #B3261E; font-size: 13px; }

/* One uploaded certificate filed once per covered state. */
.import-state-choices { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.import-state-choices legend { padding: 0; font-size: 12px; color: var(--slate); }
.import-state-choice { display: inline-flex; align-items: center; gap: 4px; }
#imp-rows tr[data-group] > td:first-child { border-left: 3px solid var(--slate); }
.review-siblings { margin: 0; padding-left: 18px; line-height: 1.6; }

/* ---------------------------------------------------- shell: focus, toasts */
/* Focus is moved to the heading (or the page body) on navigation and on the skip link, for
   screen readers; those are not controls, so they do not carry a focus ring. */
#work:focus, #work h1[tabindex="-1"]:focus, .view h1[tabindex="-1"]:focus, .rail:focus { outline: none; }
.toast .toast-msg { flex: 1 1 auto; min-width: 0; }
/* A message that stays must not also lock the controls it sits over: it lets pointer input
   through to the page and keeps only its Dismiss button clickable. */
.toasts, .toast { pointer-events: none; }
.toast-x { pointer-events: auto; }
.toast-x {
  flex: 0 0 auto; margin: -4px -8px -4px 0; padding: 2px 8px;
  background: transparent; border: 0; border-radius: var(--r);
  color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .85;
}
.toast-x:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
.toast-x:focus-visible { outline: 2px solid #fff; outline-offset: 1px; opacity: 1; }

.ux-customer-more { display: block; margin: 14px auto; }
