/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * macrostructure: Workbench · nav: N6 Masthead · theme: studied-DNA (Claude Design export)
 * audience: Ryerson customers · use: submit exemption certificates · tone: editorial-utilitarian
 * contrast: pass · responsive: desktop and mobile verified after implementation
 */
/* ==========================================================================
   Ryerson exemption certificate portal
   --------------------------------------------------------------------------
   Design brief: this replaces Vertex's Exemption Certificate Wizard for
   Ryerson's customers. The reference is Vertex Certificate Center itself --
   navy rail, white workspace, split screen with the document beside the form,
   dense labelled controls, real buttons. Enhanced, not imitated: Ryerson's own
   navy (#002E5F, sampled from the wordmark), a type pairing chosen for the
   subject, and the states grid as the one place any visual weight is spent.

   Two earlier attempts were rejected as "AI slop" and "bare bones". Both
   failed the same way: they were art direction wearing a form's clothes --
   conversational headings, editorial display type, decorative SVG, and very
   few visible controls. A person who received this link is doing an errand for
   their AP department. Every pixel here is a control, a label, or the document
   they are handing over. There is no hero and no prose.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* No photograph until a client supplies one. This was a hardcoded image of one client's
     steel cut-to-length line on the masthead and the footer of every page the product
     serves, so a client who sells something else handed their customers a picture of a
     competitor's factory. tenant-branding.js sets this from the branding row. */
  --masthead: none;
  /* The product's own colours, and deliberately not any client's.

     These were Ryerson's navy, which meant a tenant who had chosen nothing -- a brand
     new client, or one whose branding row had not been written yet -- was silently
     dressed as a different customer of ours. The --navy-* names are kept because the
     whole stylesheet is built on them and renaming them would touch every rule;
     tenant-branding.js overwrites all seven from primary_color, primary_dark_color and
     primary_light_color, so what a customer actually sees is their supplier's palette
     and this is only what shows before it arrives. */
  /* The house brand, and the third place "the product's own colours" was written down.
     #178 corrected PRODUCT_DEFAULT_COLORS in branding.py and the :root in console.css,
     and said two defaults disagreed. There were three. This file still held the teal --
     #0F5257 exactly, the value that commit retired -- so the one surface a customer
     outside both organisations ever opens was the one still wearing it. */
  --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;

  /* True neutrals. They used to be biased toward the navy "so they read as chosen",
     which was right when the brand was a navy -- a pure grey beside it looks borrowed.
     The house brand IS a neutral, so biasing the greys toward it means biasing them
     toward nothing, and what the bias actually did was tint every surface blue.
     --canvas keeps a trace of warmth so the orange reads as chosen rather than loud. */
  --ink:      #262626;
  --slate:    #595959;
  /* Real text -- every input placeholder, the word "Optional", the drawer's check
     indices -- so it has to clear AA rather than merely look light. #6B6B6B is 5.33:1
     on --paper and 4.93:1 on --canvas, and stays clearly above --slate, so the
     three-tier ramp holds. The value it replaces, #617087, was measured the same way. */
  --slate-lt: #6B6B6B;
  --line:     #DADADA;
  --line-str: #BBBBBB;
  --paper:    #FFFFFF;
  --canvas:   #F7F6F3;
  --canvas-2: #EFEDE9;

  /* Semantic colours are deliberately outside the brand hue. Status has to read as
     status, not as decoration. Matched to the console's set so one product does not
     answer "is this all right" in two colour languages. Each clears 4.5:1 on white
     and on its own tint. */
  --ok:      #6B6A00;  --ok-bg:   #EFEFD9;  --ok-line:   #D8D8A8;
  --warn:    #A8500A;  --warn-bg: #FBEFE2;  --warn-line: #E8C9A6;
  --stop:    #AF3318;  --stop-bg: #FBE7E3;  --stop-line: #EEB4AE;

  --rail-w: 244px;
  --top-h: 60px;
  /* The accepted direction is "the document beside the form". At 392 the
     US-Letter page rendered at ~0.55 scale, which puts the state form's 9pt
     body copy at roughly 5px -- decoration, not a document. 468 takes it to
     ~0.66 and still leaves the form column ~660px, which the 2-up field grid
     fills with room to spare. */
  --pane-w: 468px;

  /* --r-sm was 3px. Against --r's 5px that is a rounding step the eye cannot
     resolve, so it read as an inconsistency rather than a distinction.
     Aliased rather than deleted: every consumer keeps working, the idiom
     disappears. Control / card / pill remain three real steps. */
  --r-sm: var(--r);
  --r:    5px;
  --r-lg: 8px;

  /* Spacing scale. Gaps used to land on every integer from 5 to 14, and four
     different values all meant "the gap between sections". These six steps
     are the only ones now, so the next change inherits the rhythm instead of
     re-breaking it. --s-gut is the card gutter: deliberately off the scale
     and deliberately one number, because card head, card body, states bar and
     action bar all have to share a left edge. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s-gut: 20px;

  /* The page measure, shared by the nav, the stepper, the content and the
     footer's inner padding so all four keep one left edge. It was 1280px in
     eight separate declarations, which on a 1920px screen inset the content
     320px while the header logo and footer brand sat 24px from the window
     edge -- the content read as misaligned with the chrome framing it rather
     than merely roomy. One token now, and wide enough that the state map,
     which is the control this step is built around, gets the room it wants. */
  --measure: 1480px;

  --sh-1: 0 1px 2px rgba(16,23,32,.06), 0 1px 3px rgba(16,23,32,.04);
  --sh-2: 0 2px 4px rgba(16,23,32,.06), 0 4px 12px rgba(16,23,32,.07);
  --sh-3: 0 8px 24px rgba(16,23,32,.12), 0 2px 6px rgba(16,23,32,.08);

  --ff: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* This portal is a single committed visual world -- a lit white workspace
   against a navy rail, the way the enterprise applications it sits beside
   look. It does not follow the OS into dark mode, because a half-inverted
   form is worse than a form that simply stays itself. Every colour is
   painted explicitly so it holds on any host ground. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }

:where(a) { color: var(--navy-500); }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Every keyboard journey through either front end starts in the rail, and
   --navy-500 on --navy-900 is 2.48:1 -- under the 3:1 minimum for a non-text
   indicator. #D4D4D4 gives 11.7:1 on the same ground.

   It was #D4D4D4, a light blue, chosen when the palette was navy and measured at 8.4:1.
   The house brand has no blue in it, and a neutral of the same lightness clears the bar by
   more, so the accessibility reason the override exists is unchanged and the colour is no
   longer from a palette the product stopped using. */
.rail :focus-visible {
  outline-color: #D4D4D4;
  outline-offset: 1px;
}

.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-700); color: #fff; padding: var(--s2) var(--s4);
  border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ----------------------------------------------------------------- shell */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ------------------------------------------------------------------ rail */
.rail {
  background: var(--navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  /* The rail is the only surface carrying any texture: a very low-contrast
     brushed vertical grain, which is what rolled steel actually looks like.
     It is the single nod to what Ryerson sells and it stays below the
     threshold where it would compete with the nav labels. */
  background-image:
    linear-gradient(180deg, rgba(18,89,163,.20), rgba(0,0,0,0) 42%),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.022) 0 1px,
      rgba(255,255,255,0) 1px 3px);
}

.rail-head {
  padding: var(--s5) var(--s-gut) var(--s4);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.rail-mark { display: block; width: 132px; height: auto; }
.rail-home { display: inline-flex; flex: 0 0 auto; align-items: center;
  background: #ffffff; color: #222222; padding: 6px 10px; border-radius: 6px; }
.rail-home:focus-visible { outline-offset: 4px; }

/* The client's name lives inside the home link so the link always has an accessible
   name. While a logo is showing, saying it twice is noise for a screen reader and
   clutter on screen, so the text is taken out of the visual layout and left readable.
   A client may have a home page and no approved logo -- the second seeded tenant is
   exactly that -- and then this becomes the visible content of the link rather than
   an empty target. */
.rail-home-name {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rail-mark[hidden] + .rail-home-name {
  position: static;
  width: auto; height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: #fff;
}
.rail-app {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ABABAB;
}

.rail-nav { padding: var(--s4) var(--s3); flex: 1; overflow-y: auto; }
.rail-cap {
  margin: 0 0 8px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #878787;
}

.steps { list-style: none; margin: 0; padding: 0; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--r);
  color: #D4D4D4;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: default;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.step + .step { margin-top: 1px; }

/* The connector between the markers. Drawn on the item rather than as a
   pseudo-element on the list so it stops correctly at the last step. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px; top: 34px; bottom: -2px;
  width: 1.5px;
  background: rgba(255,255,255,.13);
}
.step.done:not(:last-child)::after { background: rgba(93,190,140,.5); }

.step-mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.26);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-mono);
  color: #BDBDBD;
  background: rgba(255,255,255,.03);
  transition: all .18s var(--ease);
}
.step-label { min-width: 0; }
.step-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #949494;
  margin-top: 1px;
}

.step[aria-current="step"] { background: rgba(18,89,163,.30); color: #fff; }
.step[aria-current="step"] .step-mark {
  background: #fff; color: var(--navy-800);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(18,89,163,.28);
}
.step[aria-current="step"] .step-sub { color: var(--navy-100); }

.step.done { color: var(--navy-100); }
.step.done .step-mark {
  background: var(--ok); border-color: var(--ok); color: #fff;
}
.step.done .step-mark::before { content: "\2713"; font-size: 14px; }
.step.done .step-mark span { display: none; }

.step.can { cursor: pointer; }
.step.can:hover { background: rgba(255,255,255,.07); }

.rail-foot {
  padding: var(--s4) var(--s-gut) var(--s5);
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: #ABABAB;
}
.rail-foot b { display: block; color: #E5E5E5; font-weight: 600; margin-bottom: var(--s1); font-size: 12px; }
.rail-foot a { color: #D4D4D4; text-decoration: none; }
.rail-foot a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- topbar */
.main { display: flex; flex-direction: column; min-width: 0; }

.top {
  height: var(--top-h);
  flex: 0 0 var(--top-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 0 var(--s5);
  position: sticky; top: 0; z-index: 20;
}

.crumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 14px; color: var(--slate);
  /* The console's breadcrumb sits beside Refresh in a 60px bar. Left free to
     wrap, it slid under that button at 390. It truncates instead. */
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crumb b { color: var(--ink); font-weight: 600;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb .sep { color: var(--line-str); }

.top-sp { flex: 1; }

.acct {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s1) var(--s3) var(--s1) var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font-size: 14px;
  max-width: 340px;
}
.acct-ini {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  flex: 0 0 auto;
}
.acct-txt { min-width: 0; line-height: 1.25; }
.acct-nm {
  display: block; font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-id { display: block; font-size: 11px; color: var(--slate); }

.tbtn {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 32px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--slate);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .13s var(--ease);
}
.tbtn:hover { border-color: var(--line-str); color: var(--ink); background: var(--canvas); }

/* ------------------------------------------------------------- workspace */
.work { flex: 1; padding: var(--s5) var(--s5) var(--s6); min-width: 0; }
.wrap { max-width: var(--measure); margin: 0 auto; }

.phead { margin: 0 0 var(--s4); display: flex; align-items: flex-start; gap: var(--s5); }
.phead-t { min-width: 0; flex: 1; }
.ptitle {
  margin: 0; font-size: 28px; line-height: 1.16; font-weight: 700;
  letter-spacing: -.017em; color: var(--ink); text-wrap: balance;
}
.pnote { margin: var(--s1) 0 0; font-size: 14px; color: var(--slate); max-width: 68ch; }

.pcount {
  flex: 0 0 auto;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 500;
  color: var(--slate); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s1) var(--s3);
}

/* The split. Form left, document/status right. Below 1120 the pane drops
   under the form rather than shrinking into uselessness. */
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--pane-w);
  gap: var(--s5);
  align-items: start;
}
.split.solo { grid-template-columns: minmax(0,1fr); }
#v-upload .upload-split { grid-template-columns: minmax(0,1fr); }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card + .card { margin-top: var(--s4); }

.card-h {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s-gut);
  border-bottom: 1px solid var(--line);
}
/* A card title one step above its own content, not level with it. At 15px it
   was the same size as the body text underneath and outranked nothing. */
.card-h h2, .card-h h3 {
  margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.008em;
}
.card-h .sp { flex: 1; }
.card-b { padding: var(--s-gut); }
.card-b.tight { padding: var(--s4) var(--s-gut); }

/* ---------------------------------------------------------------- fields */
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(12, 1fr); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; }
.c6  { grid-column: span 6; }  .c4 { grid-column: span 4; }
.c3  { grid-column: span 3; }

.f { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }

.sap-status { margin: var(--s4) 0 0; color: var(--slate); font-size: 12px; }
.sap-value {
  min-height: 38px;
  margin: 0;
  padding: var(--s2) 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--navy-050);
  color: var(--ink);
  font-style: normal;
  overflow-wrap: anywhere;
}

.f > label, .lbl {
  font-size: 12px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: var(--s2);
}
.req { color: var(--stop); font-weight: 600; }
.opt { color: var(--slate-lt); font-weight: 400; font-size: 12px; }

.inp, .sel, .ta {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-str);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .13s var(--ease), box-shadow .13s var(--ease);
}
.ta { height: auto; min-height: 76px; padding: var(--s2) 11px; resize: vertical; line-height: 1.45; }

.inp:hover, .sel:hover, .ta:hover { border-color: #B4B4B4; }
.inp:focus, .sel:focus, .ta:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(18,89,163,.16);
}
.inp::placeholder, .ta::placeholder { color: var(--slate-lt); }

.sel {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%2355647A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.hint { font-size: 12px; color: var(--slate); line-height: 1.4; }

.f.bad .inp, .f.bad .sel, .f.bad .ta { border-color: var(--stop); background: #FEF8F7; }
.f.bad .inp:focus, .f.bad .sel:focus, .f.bad .ta:focus { box-shadow: 0 0 0 3px rgba(168,35,28,.15); }
.err {
  display: flex; align-items: flex-start; gap: var(--s1);
  font-size: 12px; color: var(--stop); font-weight: 500;
}
/* The error used to render after the hint, 48-60px below the control, which
   reads as a floating remark rather than as belonging to the field. Ordering
   it rather than moving the markup keeps every id where the JS expects it. */
.f.bad .err { order: -1; margin-bottom: var(--s1); }
.err svg { flex: 0 0 auto; margin-top: 1px; }

.inp.mono, .ta.mono { font-family: var(--ff-mono); letter-spacing: .01em; }

/* radio + checkbox rows */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.row { flex-direction: row; flex-wrap: wrap; gap: var(--s3); }

.opt-c {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line-str);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--paper);
  transition: all .13s var(--ease);
}
.opt-c:hover { border-color: #B4B4B4; background: var(--navy-050); }
.opt-c input { margin: 1px 0 0; accent-color: var(--navy-700); width: 16px; height: 16px; flex: 0 0 auto; }
.opt-c:has(input:checked) {
  border-color: var(--navy-700);
  background: var(--navy-050);
  box-shadow: inset 0 0 0 1px var(--navy-700);
}
.opt-c span { min-width: 0; }
.opt-c b { display: block; font-size: 14px; font-weight: 600; }
.opt-c i {
  display: block; font-style: normal; font-size: 12px;
  color: var(--slate); margin-top: 2px; line-height: 1.4;
}

/* ---------------------------------------------------------------- states */
/* The one place any visual weight is spent. Picking your states is the only
   moment in this errand that is genuinely a decision rather than a
   transcription, and the grid encodes something true: the list of
   obligations the customer is about to take on, filling in as they build it. */
.states-bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s-gut);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: sticky; top: var(--top-h); z-index: 10;
}
.states-search { position: relative; flex: 1; max-width: 300px; }
.states-search .inp { height: 34px; padding-left: 32px; font-size: 14px; }
.states-search svg { position: absolute; left: 10px; top: 9px; color: var(--slate-lt); }

.picked {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 500;
  color: var(--navy-700);
  background: var(--navy-100); border: 1px solid #D6D6D6;
  padding: var(--s1) var(--s3); border-radius: 999px;
}

.states {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: var(--s2);
  padding: var(--s4) var(--s-gut);
}

.st {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s1);
  min-height: 72px;
  padding: var(--s2);
  border: 1px solid var(--line-str);
  border-radius: var(--r);
  background: var(--paper);
  cursor: pointer;
  transition: transform .12s var(--ease), border-color .12s var(--ease),
              background .12s var(--ease), box-shadow .12s var(--ease);
}
.st:hover { border-color: var(--navy-500); background: var(--navy-050); transform: translateY(-1px); }
.st:active { transform: translateY(0); }

.st-ab {
  font-family: var(--ff-mono); font-size: 15px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.st-nm {
  font-size: 11px; color: var(--slate); text-align: center; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.st[aria-pressed="true"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  box-shadow: var(--sh-2);
}
.st[aria-pressed="true"] .st-ab { color: #fff; }
.st[aria-pressed="true"] .st-nm { color: var(--navy-100); }
.st[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute; top: 4px; right: 6px;
  font-size: 11px; color: var(--ok); font-weight: 700;
}

/* A state with no sales tax cannot issue an exemption certificate, so its
   tile is inert rather than merely styled as disabled. */
.st:disabled {
  opacity: 1;
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--canvas);
}
.st:disabled .st-ab, .st:disabled .st-nm { color: var(--slate-lt); }
.st:disabled:hover { border-color: var(--line-str); background: var(--canvas); transform: none; }

.states-empty { padding: var(--s6) var(--s-gut); text-align: center; color: var(--slate); font-size: 14px; }

/* ------------------------------------------------------- per-state cards */
.certs { display: flex; flex-direction: column; gap: var(--s3); }

/* The action bar is sticky, so the scroll container needs a gutter or the last
   card spends its life underneath it. */
.card-b:has(.certs) { padding-bottom: var(--s2); }

.cert {
  border: 1px solid var(--line-str);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .13s var(--ease), box-shadow .13s var(--ease);
}
.cert:hover { box-shadow: var(--sh-2); }
.cert.ready { border-color: var(--ok-line); }
.cert.att   { border-color: var(--warn-line); }

.cert-h {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
}
.cert-fl {
  display: grid; place-items: center;
  width: 42px; height: 32px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--navy-700); color: #fff;
  font-family: var(--ff-mono); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
.cert.ready .cert-fl { background: var(--ok); }
.cert-t { flex: 1; min-width: 0; }
.cert-nm { font-size: 14px; font-weight: 600; }
.cert-fm { font-size: 12px; color: var(--slate); margin-top: 1px; }
.cert-fm code {
  font-family: var(--ff-mono); font-size: 12px;
  background: var(--canvas); border: 1px solid var(--line);
  padding: 0 4px; border-radius: 3px; color: var(--ink);
}

.cert-b { padding: 0 var(--s4) var(--s4); }

/* The two paths. Presented as equal, tangible choices -- the whole point of
   replacing ECW is that "I don't have a certificate" stops being a dead end. */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.paths.one { grid-template-columns: 1fr; }

.path {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line-str);
  border-radius: var(--r);
  background: var(--canvas);
  cursor: pointer;
  text-align: left;
  transition: all .13s var(--ease);
}
.path:hover {
  border-color: var(--navy-700); background: var(--navy-050);
  box-shadow: var(--sh-1); transform: translateY(-1px);
}
.path-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line-str);
  color: var(--navy-700);
}
.path:hover .path-ic { border-color: var(--navy-500); background: #fff; }
.path-t { min-width: 0; }
.path-t b { display: block; font-size: 14px; font-weight: 600; }
.path-t span { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; line-height: 1.35; }

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 var(--s2);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
/* --ok and --warn desaturate to ~40% and ~39% lightness, so on greyscale or
   to a deuteranope the ACTIVE and WITHIN-90-DAYS marks are the same mark.
   Circle / diamond / square gives each state a silhouette. */
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok   .dot { border-radius: 50%; }
.badge.warn .dot { border-radius: 0; transform: rotate(45deg); }
.badge.stop .dot { border-radius: 0; }
.badge.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.stop { background: var(--stop-bg); color: var(--stop); border-color: var(--stop-line); }
.badge.mute { background: var(--canvas);  color: var(--slate); border-color: var(--line-str); }
.badge.navy { background: var(--navy-100); color: var(--navy-700); border-color: #D6D6D6; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 38px; padding: 0 var(--s4);
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -.003em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .13s var(--ease), border-color .13s var(--ease),
              box-shadow .13s var(--ease), transform .08s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }

/* opacity:.45 over a navy fill is a browser default wearing a design's
   clothes: it produces a muddy blue nobody chose and it dims the label past
   legibility. A blocked control is drawn, not faded. The [aria-disabled]
   twin matters because the primary action on each step stays focusable --
   see portal.js -- so a keyboard user can reach it and be told why. */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 1;
  background: var(--canvas-2);
  color: var(--slate-lt);
  border-color: var(--line-str);
  box-shadow: none;
  cursor: not-allowed;
}
.btn[aria-disabled="true"]:hover { background: var(--canvas-2); }

.btn.pri {
  background: var(--navy-700); color: #fff; border-color: var(--navy-700);
  box-shadow: var(--sh-1);
}
.btn.pri:hover:not(:disabled) { background: var(--navy-600); border-color: var(--navy-600); box-shadow: var(--sh-2); }

.btn.sec { background: var(--paper); color: var(--ink); border-color: var(--line-str); }
.btn.sec:hover:not(:disabled) { background: var(--canvas); border-color: #B4B4B4; }

.btn.ghost { background: transparent; color: var(--slate); border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--canvas); color: var(--ink); }

.btn.danger { background: var(--paper); color: var(--stop); border-color: var(--stop-line); }
.btn.danger:hover:not(:disabled) { background: var(--stop-bg); }

.btn.sm { height: 31px; padding: 0 var(--s3); font-size: 14px; }
.btn.lg { height: 44px; padding: 0 var(--s5); font-size: 15px; }
.btn.wide { width: 100%; }

/* action bar -- always visible, because "no buttons" was the complaint */
.acts {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s-gut);
  border-top: 1px solid var(--line);
  background: var(--canvas);
  /* Square while pinned. Rounded bottom corners floating over live content
     read as a card that has been laid on top of the page, which is exactly
     what it looked like slicing the last state's upload box in half. */
  border-radius: 0;
  position: sticky; bottom: 0; z-index: 8;
  box-shadow: 0 -1px 0 var(--line), 0 -8px 16px -12px color-mix(in srgb, var(--navy-900) 18%, transparent);
}
#v-account .acts { position: static; box-shadow: none; }
/* Height is published so a scroll container can reserve a gutter for it. */
:root { --acts-h: 62px; }
.pad-acts { padding-bottom: calc(var(--acts-h) + var(--s5)); }
.acts .sp { flex: 1; }
.acts-note { font-size: 12px; color: var(--slate); }

/* ------------------------------------------------------------ side pane */
.pane { position: sticky; top: calc(var(--top-h) + var(--s5)); display: flex; flex-direction: column; gap: var(--s4); }

.drop {
  position: relative;
  border: 1.5px dashed var(--line-str);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: var(--s6) var(--s5);
  text-align: center;
  cursor: pointer;
  transition: all .14s var(--ease);
}
.drop:hover { border-color: var(--navy-500); background: var(--navy-050); }
.drop.over {
  border-color: var(--navy-700); background: var(--navy-100);
  box-shadow: inset 0 0 0 2px rgba(0,46,95,.10);
}
.drop-ic { color: var(--navy-600); margin-bottom: var(--s3); }
.drop b { display: block; font-size: 14px; font-weight: 600; margin-bottom: var(--s1); }
.drop span { display: block; font-size: 12px; color: var(--slate); line-height: 1.45; }
.drop .types {
  margin-top: var(--s3); font-size: 12px; color: var(--slate-lt);
  font-family: var(--ff-mono);
}
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.doc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.doc-h {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--canvas);
}
.doc-h b { font-size: 14px; font-weight: 600; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-h .sz { font-family: var(--ff-mono); font-size: 12px; color: var(--slate); }
.doc-open {
  display: inline-flex; align-items: center; gap: var(--s1);
  color: var(--navy); font-size: 12px; font-weight: 650; text-underline-offset: 3px;
  white-space: nowrap; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.doc-open:hover { color: var(--blue); }
.doc-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.doc-v {
  background: var(--canvas-2);
  padding: var(--s4);
  display: grid; place-items: center;
  min-height: 300px;
  max-height: 460px;
  overflow: auto;
}
.doc-v img, .doc-v canvas, .doc-v embed, .doc-v iframe {
  max-width: 100%; display: block;
  box-shadow: var(--sh-3); border-radius: 2px; background: #fff;
}
.doc-v img, .doc-v canvas { height: auto; }
.doc-v.zoomed { place-items: start; }
.doc-v.zoomed img { width: 765px; max-width: none; }
.doc-v .ph { text-align: center; color: var(--slate-lt); font-size: 14px; }
#v-upload .doc-v { min-height: 500px; max-height: 720px; }
#v-upload .doc-v.zoomed { place-items: start center; }
#v-upload .doc-v.zoomed img { width: 1100px; max-width: none; }

/* live check readout */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s2) var(--s4);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.checks li:first-child { border-top: 0; }
.chk-ic { flex: 0 0 auto; margin-top: 1px; }
.chk-t { min-width: 0; flex: 1; }
.chk-t b { display: block; font-weight: 500; color: var(--ink); }
.chk-t span { display: block; font-size: 12px; color: var(--slate); margin-top: 1px; line-height: 1.4; }
.checks li.pass .chk-ic { color: var(--ok); }
.checks li.fail .chk-ic { color: var(--stop); }
.checks li.fail .chk-t b { color: var(--stop); }
.checks li.wait .chk-ic { color: var(--slate-lt); }
.checks li.wait .chk-t b { color: var(--slate-lt); font-weight: 400; }

/* summary rows in the pane */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; align-items: baseline; gap: var(--s3);
  padding: var(--s2) var(--s4); font-size: 14px;
  border-top: 1px solid var(--line);
}
.rows li:first-child { border-top: 0; }
.rows .k { flex: 0 0 116px; color: var(--slate); font-size: 12px; }
.rows .v { flex: 1; min-width: 0; font-weight: 500; word-break: break-word; }

/* ------------------------------------------------------------ signature */
.sig-wrap { border: 1px solid var(--line-str); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.sig-bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3); background: var(--canvas); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--slate);
}
.sig-bar .sp { flex: 1; }
.sig-pad {
  position: relative;
  background: #fff;
  /* ruled like a signature line on a paper form, because that is exactly
     what this control stands in for */
  background-image: linear-gradient(180deg, transparent calc(100% - 34px), var(--line-str) calc(100% - 34px), var(--line-str) calc(100% - 33px), transparent calc(100% - 33px));
  touch-action: none;
  cursor: crosshair;
}
.sig-pad canvas { display: block; width: 100%; height: 168px; }
.sig-pad canvas:focus-visible { outline: none; }
/* The pad is the moment the whole customer flow exists to reach, so it gets a
   hover and a focus state of its own rather than inheriting the page's. */
.sig-pad:hover { background-color: #FCFDFE; }
.sig-pad:hover .sig-ph { color: var(--navy-500); }
.sig-pad:focus-within { box-shadow: inset 0 0 0 2px var(--navy-500); }
/* The rule is painted at calc(100% - 34px). The mark has to sit ON it, the
   way it does on a paper form; at 19px/bottom:26px it hung clear of the line
   and read as a stray character. */
.sig-x {
  position: absolute; left: 14px; bottom: 36px;
  font-size: 15px; color: var(--slate-lt); pointer-events: none; user-select: none;
  font-family: var(--ff-mono);
}
.sig-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--slate-lt); font-size: 14px; pointer-events: none;
}
.sig-pad.inked .sig-ph { display: none; }

.hint.attempts {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--warn);
}

/* ---------------------------------------------------------------- notes */
.note {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line-str);
  border-left: 3px solid var(--navy-700);
  border-radius: var(--r);
  background: var(--navy-050);
  font-size: 14px; line-height: 1.5;
}
.note.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-bg); }
.note.stop { border-color: var(--stop-line); border-left-color: var(--stop); background: var(--stop-bg); }
.note.ok   { border-color: var(--ok-line);   border-left-color: var(--ok);   background: var(--ok-bg); }
.note svg { flex: 0 0 auto; margin-top: 1px; }

/* An advisory is one line of quiet type under the thing it qualifies. It was
   a card with an icon and an accent bar, and that same card shape appeared on
   six of eleven screens recoloured navy or amber -- so the shape stopped
   meaning anything. Only a warning keeps the bar and the triangle. */
.note.flat {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.45;
}
.note.flat b { display: inline; font-weight: 600; color: var(--ink); margin: 0; }
.note.flat b::after { content: " "; }
.note b { display: block; font-weight: 600; margin-bottom: var(--s1); }
.note-t { min-width: 0; }

/* ---------------------------------------------------------------- table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--slate);
  padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line-str);
  background: var(--canvas); white-space: nowrap;
}
.tbl td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--navy-050); }
.tbl .num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.tbl .r { text-align: right; }
.tbl-wrap { overflow-x: auto; }

/* --------------------------------------------------------------- result */
.res-hero {
  display: flex; align-items: flex-start; gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.res-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; }
.res-ic.ok   { background: var(--ok-bg);   color: var(--ok); }
.res-ic.warn { background: var(--warn-bg); color: var(--warn); }
.res-ic.stop { background: var(--stop-bg); color: var(--stop); }
.res-t { min-width: 0; flex: 1; }
.res-t h2 { margin: 0 0 var(--s1); font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.res-t p { margin: 0; font-size: 14px; color: var(--slate); max-width: 66ch; line-height: 1.5; }
.res-ref {
  margin-top: var(--s3); display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--ff-mono); font-size: 14px;
  background: var(--canvas); border: 1px solid var(--line-str);
  padding: var(--s2) var(--s3); border-radius: var(--r);
}

/* ------------------------------------------------------------- spinner */
.certificate-reading-body { padding: var(--s4); }
.certificate-reading-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; }
.certificate-reading-field { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); }
.certificate-reading-field dt { color: var(--slate); font-size: 12px; margin-bottom: var(--s1); }
.certificate-reading-field dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.certificate-reading-field.missing dd { color: var(--slate); }
@media (max-width: 600px) { .certificate-reading-fields { grid-template-columns: minmax(0, 1fr); } }

/* Moved out of console.css: the portal's live preview needs it too, and a
   keyframe defined in the stylesheet that loads second is not available to
   the page that loads only the first. */
.spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line-str); border-top-color: var(--navy-700);
  animation: spin .7s linear infinite; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The live preview's only busy signal was 12px of lowercase mono 500px away
   from where the customer is typing. The document itself now says it. */
.pv-body { position: relative; transition: opacity .15s var(--ease); }
.pv-body.stale { opacity: .5; }
.pv-body.stale::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid var(--line-str); border-top-color: var(--navy-700);
  animation: spin .7s linear infinite;
}

/* ------------------------------------------------------------- utilities */
.stack { display: flex; flex-direction: column; }
.stack.g8  { gap: var(--s2); }  .stack.g12 { gap: var(--s3); }
.stack.g16 { gap: var(--s4); } .stack.g20 { gap: var(--s5); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row.wrap { flex-wrap: wrap; }
.row .sp { flex: 1; }
[hidden] { display: none !important; }
.sec-t {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 var(--s3);
}
.divider { height: 1px; background: var(--line); margin: 4px 0; }

/* ------------------------------------------------ customer guided shell */
/* The customer arrives from a campaign link with an account already resolved.
   Progress therefore reads horizontally like one short guided task; the
   persistent left rail remains reserved for the tax team's daily console. */
.portal { overflow-x: clip; background: #E4EAF1; }
.portal .app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}
.portal .main { flex: 1 0 auto; }
.portal-footer {
  display: grid; grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center; gap: var(--s6);
  flex: 0 0 80px; min-height: 80px;
  padding: var(--s3) max(var(--s5), calc((100% - var(--measure)) / 2 + var(--s5)));
  background: var(--navy-900); color: #D6D6D6; font-size: 12px;
}
.portal-footer-brand, .portal-footer-support, .portal-footer-utility {
  display: flex; align-items: center; min-width: 0;
}
.portal-footer-brand { gap: var(--s4); }
.portal-footer-brand strong { color: var(--paper); font-size: 15px; letter-spacing: .12em; }
.portal-footer-brand span { white-space: nowrap; }
.portal-footer-support { gap: var(--s2); }
.portal-footer-support svg { flex: 0 0 auto; color: #B0B0B0; }
.portal-footer-support-copy { display: grid; gap: 2px; }
.portal-footer-support-copy span { color: var(--paper); font-weight: 600; }
.portal-footer a { color: #D7E4F1; text-underline-offset: 3px; }
.portal-footer-utility { justify-content: flex-end; gap: var(--s4); white-space: nowrap; }
.portal-footer-secure { display: inline-flex; align-items: center; gap: 6px; color: #C3C3C3; }
.portal-footer-secure svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .portal-footer {
    grid-template-columns: 1fr auto; min-height: 104px; height: auto;
    gap: var(--s3) var(--s5); padding-block: var(--s4);
  }
  .portal-footer-support { grid-column: 1; grid-row: 2; }
  .portal-footer-utility { grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; max-width: 220px; }
}

@media (max-width: 640px) {
  .portal-footer {
    display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start;
    min-height: 0; padding: var(--s4);
  }
  .portal-footer-brand { flex-wrap: wrap; gap: var(--s2) var(--s3); }
  .portal-footer-brand span { white-space: normal; }
  .portal-footer-utility { justify-content: flex-start; max-width: none; }
}

@media (min-width: 901px) {
  .portal[data-view="states"] .portal-footer { flex-grow: 0; }
  .portal[data-view="states"] .work { display: flex; flex-direction: column; min-height: 0; }
  .portal[data-view="states"] .work > .wrap {
    display: flex; flex: 1; flex-direction: column; width: 100%; max-width: var(--measure); min-height: 0;
  }
  .portal[data-view="states"] #v-states {
    display: flex; flex: 1; flex-direction: column; min-height: 0;
  }
  .portal[data-view="states"] .landing-workbench {
    flex: 1; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; min-height: 0;
  }
  .portal[data-view="states"] .state-map-panel {
    display: flex; flex-direction: column; min-height: 0;
  }
  .portal[data-view="states"] .state-map,
  .portal[data-view="states"] #mapholder { flex: 1; min-height: 0; }
  .portal[data-view="states"] #mapholder { height: 100%; }
  /* `min-height: auto` is the default for a flex/grid item, and for an SVG with
     a viewBox that floor is the height its aspect ratio implies from its width.
     That beat `height: 100%` and left the map 83px taller than the box holding
     it, so it painted across the footer. Zeroing the floor lets it size to the
     box; preserveAspectRatio then letterboxes the map inside it. */
  .portal[data-view="states"] .usmap {
    width: 100%; height: 100%; min-height: 0; min-width: 0;
  }
  .portal[data-view="states"] .landing-side,
  .portal[data-view="states"] .selection-summary { min-height: 0; height: 100%; }
  .portal[data-view="states"] .selection-summary { display: flex; flex-direction: column; }
  .portal[data-view="states"] .selected-states { flex: 1; max-height: none; }
  .portal[data-view="states"] .selection-actions { margin-top: auto; }
}

/* The states step is one guided task, so where the viewport can hold it we
   size it to the viewport and keep the footer in view: the map absorbs the
   shrink and the state list scrolls inside itself. Below 840px of height the
   account card, selection summary and state list cannot all be usable at
   once, so the lock is released and the page scrolls as it did before. */
@media (min-width: 901px) and (min-height: 840px) {
  .portal[data-view="states"] .app { height: 100dvh; min-height: 0; overflow: hidden; }
  .portal[data-view="states"] .main { flex: 1 1 auto; min-height: 0; }
}
.portal .rail {
  position: sticky; top: 0; z-index: 40; width: 100%; height: auto;
  display: block; color: var(--ink); background: rgba(255,255,255,.97);
  background-image: none; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16,23,32,.03);
}
.portal .rail-head {
  height: 64px; max-width: var(--measure); margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; gap: var(--s4); border-bottom: 1px solid var(--line);
}
.portal .rail-mark { width: 142px; }
.portal .rail-app {
  margin: 0; padding-left: var(--s4); border-left: 1px solid var(--line);
  color: var(--slate); font-size: 13px; letter-spacing: 0; text-transform: none;
}
.portal .rail-nav { max-width: var(--measure); margin: 0 auto; padding: 0 var(--s5); overflow: visible; }
.portal .rail-cap, .portal .rail-foot { display: none; }
.portal .steps { display: flex; }
.portal .step {
  grid-template-columns: 24px minmax(0,1fr); flex: 1 1 0; min-width: 0;
  gap: var(--s2); padding: var(--s3) var(--s4) var(--s3) 0;
  border-radius: 0; border-bottom: 3px solid transparent;
  color: var(--slate); font-size: 13px; cursor: default;
}
.portal .step + .step { margin: 0; }
.portal .step:not(:last-child)::after { display: none; }
.portal .step-mark {
  width: 24px; height: 24px; border-color: var(--line-str); color: var(--slate);
  background: var(--paper); box-shadow: none;
}
.portal .step-sub { display: none; }
.portal .step[aria-current="step"] {
  color: var(--navy-700); background: transparent; border-bottom-color: var(--navy-700);
}
.portal .step[aria-current="step"] .step-mark {
  color: var(--paper); background: var(--navy-700); border-color: var(--navy-700); box-shadow: none;
}
.portal .step.done { color: var(--ink); border-bottom-color: var(--ok); }
.portal .step.done .step-mark { background: var(--ok); border-color: var(--ok); }
.portal .step.can:hover { background: var(--navy-050); }
.portal .rail :focus-visible { outline-color: var(--navy-500); outline-offset: -2px; }
.portal .top { position: static; max-width: var(--measure); width: 100%; margin: 0 auto; border-bottom: 0; }
.portal .work { padding-top: var(--s4); }

.portal #v-account .split { grid-template-columns: minmax(0,1fr) 360px; }
.portal #v-account .card { box-shadow: none; }
.portal #v-account .card-b { padding-block: var(--s4); }
.portal #v-account .grid { row-gap: var(--s4); }
.portal #v-account .f { gap: var(--s1); }
.portal #v-account .inp[readonly] {
  height: auto; min-height: 24px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font-weight: 600;
  pointer-events: none;
}
.portal #v-account .sap-value {
  min-height: 0; padding: 0; border: 0; background: transparent; font-weight: 600;
}
.portal #v-account .hint { margin-top: 0; }
.portal #v-account .sap-status {
  display: inline-flex; align-items: center; min-height: 28px;
  margin-top: var(--s4); padding: var(--s1) var(--s3);
  border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 600;
}
.account-summary { overflow: hidden; }
.account-summary .sap-origin, .account-summary label .opt { display: none; }
.account-loading {
  display: flex; align-items: center; gap: var(--s3); min-height: 176px;
  padding: var(--s5) var(--s-gut); background: var(--canvas); color: var(--slate);
}
.account-loading[hidden] { display: none; }
.account-loading > span:last-child { display: grid; gap: 3px; font-size: 13px; }
.account-loading b { color: var(--ink); font-size: 15px; }
.account-loading-mark {
  width: 24px; height: 24px; flex: 0 0 auto; border: 3px solid var(--line-str);
  border-top-color: var(--navy-600); border-radius: 50%; animation: account-spin .8s linear infinite;
}
.account-loading.error { background: var(--stop-bg); color: var(--stop); }
.account-loading.error .account-loading-mark {
  border: 0; border-radius: 50%; background: var(--stop); animation: none;
}
.account-identity { background: linear-gradient(120deg, var(--navy-050), var(--paper) 68%); }
.account-summary .f > label, .account-summary .lbl {
  color: var(--slate); font-size: 10px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase;
}
.account-summary #cust-name {
  color: var(--navy-900); font-size: 20px; font-weight: 700; line-height: 1.25;
}
.account-summary #sold-to { color: var(--navy-700); font-size: 14px; }
.account-summary #entity, .account-summary #ship-state { font-size: 14px; }
.account-summary #sap-address { font-size: 14px; line-height: 1.5; }
.account-summary .card-h + .card-b { border-top: 0; }
.account-summary .card-h h2 { font-size: 15px; }
.account-summary .acts { background: var(--canvas); }
@keyframes account-spin { to { transform: rotate(360deg); } }
.account-mismatch {
  border: 0; padding: var(--s1) 0; background: transparent; color: var(--navy-600);
  font: 600 12px/1.4 var(--ff); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; white-space: nowrap;
}
.account-mismatch:hover { color: var(--navy-900); }
.account-mismatch:active { color: var(--ink); }
.account-mismatch:disabled { color: var(--slate-lt); cursor: not-allowed; }

/* ------------------------------------------------ task-first landing */
.portal #v-states { padding-top: var(--s4); }
.portal[data-view="states"] .top { display: none; }
.portal[data-view="states"] .work { padding-top: var(--s6); }
.portal #v-states .landing-head { max-width: 760px; margin-bottom: var(--s6); }
.landing-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4);
  color: var(--navy-700); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
}
.landing-eyebrow::before { content: ''; width: 40px; height: 3px; background: var(--navy-700); }
.portal #v-states .ptitle {
  max-width: 720px; color: var(--ink); font-size: 40px; line-height: 1.08;
  letter-spacing: 0; overflow-wrap: anywhere;
}
.portal #v-states .pnote { max-width: 700px; margin-top: var(--s4); font-size: 16px; line-height: 1.65; }
.landing-workbench {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start;
  gap: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid var(--line);
}
.state-map-panel { min-width: 0; }
.state-map-panel .states-bar {
  position: static; padding: 0 0 var(--s3); background: transparent; border: 0; border-radius: 0;
}
.state-map-panel .states-search { max-width: 260px; }
.state-map { position: relative; min-height: 360px; }
#mapholder { min-height: 360px; display: grid; place-items: center; }
.usmap { width: 100%; height: auto; display: block; overflow: visible; }
.usmap path.st {
  fill: #EDEFF2; stroke: var(--paper); stroke-width: .9; cursor: pointer;
  transition: fill .12s var(--ease);
}
.usmap path.st:hover { fill: #AEBCCF; }
.usmap path.st[data-selected="true"] { fill: var(--navy-700); }
.usmap path.st[data-selected="true"]:hover { fill: var(--navy-900); }
.usmap path.st[aria-disabled="true"] { fill: #F5F5F5; cursor: not-allowed; }
/* A state keeps a black rectangle around it after being clicked, and this is why.
   
   The rule below handles :focus-visible and turns the outline off, replacing it with an
   orange stroke that follows the state's own shape. A mouse click gives :focus WITHOUT
   :focus-visible, so that rule never matched and the browser's default outline was left in
   place -- drawn as a rectangle round the path's bounding box, sitting over three or four
   neighbouring states, and staying there until something else took focus.
   
   Clearing it on :focus alone is safe because the keyboard indicator is the stroke, not the
   outline: a keyboard user still gets :focus-visible and still sees the orange edge. */
.usmap path.st:focus { outline: none; }
.usmap path.st:focus-visible { outline: none; stroke: #DA720F; stroke-width: 2.4; }
.usmap path.usoutline {
  fill: none; stroke: #9AA5B3; stroke-width: 1.4; stroke-linejoin: round; pointer-events: none;
}
.usmap text.ab {
  font-family: var(--ff); font-size: 8.2px; font-weight: 800; fill: var(--slate);
  paint-order: stroke; stroke: rgba(255,255,255,.82); stroke-width: 2.6px;
  text-anchor: middle; pointer-events: none; opacity: .98; transition: fill .12s var(--ease), opacity .12s var(--ease), stroke .12s var(--ease);
}
.usmap text.ab[data-selected="true"] { fill: #fff; stroke: color-mix(in srgb, var(--navy-900) 28%, transparent); opacity: 1; }
.map-error {
  margin: 0; padding: 48px 24px; border: 1px dashed var(--line-str); border-radius: var(--r-lg);
  color: var(--slate); text-align: center;
}
.state-legend {
  display: flex; align-items: center; gap: var(--s5);
  padding: 0 0 var(--s4); color: var(--slate); font-size: 12px;
}
/* Below the map, at the bottom left beside Alaska, which is where a map legend
   belongs. This only works now the SVG contains its own ink: the projection
   used to be drawn 5% larger than its viewBox, and the surplus printed straight
   over a legend sitting here. Absolute positioning inside the panel was tried
   and is worse -- Alaska's Aleutian chain reaches the map's left edge, so there
   is no clear space beside it to occupy. */
.portal .state-map-panel .state-legend { padding: var(--s3) 0 0; }
.state-legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.state-legend i { width: 12px; height: 12px; border: 1px solid var(--line-str); border-radius: 2px; background: #EDEFF2; }
.state-legend i.chosen { background: var(--navy-700); border-color: var(--navy-700); }
.state-legend i.no-tax { background: #F5F5F5; border-color: var(--line); }
.states-fallback { display: none; margin-top: var(--s5); }
.states-fallback.is-visible { display: block; }
.states-fallback-title { margin: 0 0 var(--s3); color: var(--ink); font-weight: 600; }
.landing-side { min-width: 0; }
.selection-summary { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.selection-summary { overflow: hidden; }
.selection-count { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s4) var(--s-gut); border-bottom: 1px solid var(--line); background: var(--canvas); }
.selection-count strong {
  font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums;
}
.selection-count span {
  color: var(--slate); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.selected-states { max-height: 330px; overflow: auto; }
.selected-empty { margin: 0; padding: 34px var(--s-gut); color: var(--slate); font-size: 14px; line-height: 1.5; text-align: center; }
.selected-state { display: flex; align-items: center; gap: var(--s3); padding: 11px var(--s-gut); }
.selected-state + .selected-state { border-top: 1px solid var(--line); }
.selected-name { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-path { color: var(--slate); font-size: 12px; white-space: nowrap; }
.selected-state button { border: 0; border-radius: var(--r); padding: var(--s1); background: transparent; color: var(--slate); line-height: 0; cursor: pointer; }
.selected-state button:hover { color: var(--stop); }
.selection-actions { padding: var(--s4) var(--s-gut); border-top: 1px solid var(--line); }
.selection-actions p { margin: 0 0 var(--s3); color: var(--slate); font-size: 13px; }
.selection-actions .btn { width: 100%; }
.landing-account {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5);
  padding: var(--s3) var(--s-gut); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas);
}
.landing-account-head { display: flex; flex: 1 0 100%; align-items: center; gap: var(--s2); }
.landing-account #account-source { display: none; }
.landing-account-head .account-mismatch { margin-left: auto; }
.landing-account-head > span:first-child, .landing-account-label, .landing-account-facts dt {
  color: var(--slate); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.landing-account-group { display: grid; gap: 1px; min-width: 0; }
.account-business { flex: 1 1 240px; }
.account-address { flex: 1 1 220px; }
.landing-account strong { color: var(--ink); font-size: 14px; }
.landing-account .mono { color: var(--slate); font-size: 12px; }
.landing-account address { margin: 0; color: var(--ink); font-size: 13px; font-style: normal; line-height: 1.4; }
.landing-account-facts { display: flex; flex: 1 1 320px; gap: var(--s5); margin: 0; }
.landing-account-facts div { display: grid; gap: 1px; }
.landing-account-facts dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
#landing-contact { white-space: pre-line; }
.landing-email-correction { flex: 1 0 100%; display: grid; grid-template-columns: 150px minmax(200px,420px) minmax(0,1fr); align-items: center; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--warn-line); }
.landing-email-correction > label { font-size: 12px; font-weight: 600; }
.landing-email-correction .inp { height: 38px; }
.landing-email-correction .hint, .landing-email-correction .err { margin: 0; order: initial; }

@media (max-width: 900px) {
  .portal .rail {
    position: sticky; inset: auto; width: 100%; height: auto; visibility: visible;
    transform: none; box-shadow: 0 1px 0 rgba(16,23,32,.03);
  }
  .portal .rail-scrim, .portal .menu-btn { display: none !important; }
  .portal .rail-head { height: 56px; padding-inline: var(--s4); }
  .portal .rail-mark { width: 126px; }
  .portal .rail-app { font-size: 12px; }
  .portal .rail-nav { padding-inline: var(--s4); overflow-x: auto; scrollbar-width: none; }
  .portal .rail-nav::-webkit-scrollbar { display: none; }
  .portal .steps { min-width: 390px; }
  .portal .step { padding-right: var(--s3); }
  .portal .step-label { white-space: nowrap; }
  .portal .top { padding-inline: var(--s4); }
  .portal #v-account .split { grid-template-columns: minmax(0,1fr); }
  .portal #v-states { padding-top: 0; }
  .portal #v-states .landing-head { margin-bottom: var(--s5); }
  .portal #v-states .ptitle { font-size: 32px; }
  .landing-workbench { grid-template-columns: minmax(0,1fr); }
  .landing-side { display: contents; }
  .landing-account { grid-row: 1; }
  .state-map-panel { grid-row: 2; }
  .selection-summary { grid-row: 3; }
}

@media (max-width: 420px) {
  .portal .rail-app { display: none; }
  .portal .step { grid-template-columns: 22px minmax(0,1fr); font-size: 12px; }
  .portal .step-mark { width: 22px; height: 22px; font-size: 11px; }
  .portal #v-account .card-h { align-items: flex-start; }
  .portal #v-states .ptitle { font-size: 28px; }
  .portal #v-states .pnote { font-size: 14px; }
  .landing-workbench { gap: var(--s5); }
  .state-map { min-height: auto; border: 0; }
  .state-map-shape, .state-legend { display: none; }
  .state-map .states {
    position: static; display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    grid-template-rows: none; gap: var(--s2); padding: var(--s3) 0;
  }
  .state-map .st {
    grid-column: auto; grid-row: auto; height: 54px; display: flex; box-shadow: none;
  }
  .state-map .st-ab { font-size: 14px; }
  .state-map-panel .states-bar { align-items: stretch; flex-wrap: wrap; }
  .state-map-panel .states-search { flex-basis: 100%; max-width: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .split, #v-upload .upload-split { grid-template-columns: minmax(0,1fr); }
  .pane { position: static; }
  .doc-v { max-height: 380px; }
  #v-upload .doc-v { min-height: 420px; max-height: 620px; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; --top-h: 56px; }
  .app { grid-template-columns: minmax(0,1fr); }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 60;
    transform: translateX(-100%); transition: transform .22s var(--ease);
    box-shadow: var(--sh-3);
  }
  .rail.open { transform: none; }
  .rail-scrim {
    position: fixed; inset: 0; background: color-mix(in srgb, var(--navy-900) 50%, transparent); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
  }
  .rail-scrim.on { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex !important; }
  .work { padding: var(--s4) var(--s3) var(--s6); }
  .top { padding: 0 var(--s3); gap: var(--s2); }
  .acct-txt { display: none; }
  .acct { padding: var(--s1); border: 0; background: transparent; }
  /* At 390 the crumb is the page name and nothing else; the trail and the
     word on the portal button are the first things to go. */
  .crumb .sep, .crumb > span:first-child { display: none; }
  .top .tbtn-l { display: none; }
  .rail { visibility: hidden; }
  .rail.open { visibility: visible; }
  .grid { gap: var(--s3); }
  .c8, .c6, .c4, .c3 { grid-column: span 12; }
  .paths { grid-template-columns: 1fr; }
  .ptitle { font-size: 21px; }
  .states { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); padding: var(--s3); }
  .states-bar { padding: var(--s3); position: static; }
  .card-b { padding: var(--s4); }
  /* The create step's bar carries three buttons plus its status note. Sharing
     one row between them pushed the primary action 99px past the right edge of
     a 390px screen -- the one control the whole step exists to reach. Wrap it,
     put the note on its own line, and let the primary keep full width. */
  .acts {
    padding: var(--s3) var(--s4);
    flex-wrap: wrap;
    row-gap: var(--s2);
  }
  .acts .btn { flex: 1 1 auto; min-width: 0; }
  .acts .btn.pri { flex-basis: 100%; order: 3; }
  .acts-note { flex: 1 1 100%; order: 2; }
  .acts .sp { display: none; }
  .res-hero { flex-direction: column; padding: var(--s4); gap: var(--s3); }
}

.menu-btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .path:hover, .st:hover { transform: none; }
}

@media print {
  .rail, .top, .acts, .pane { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .card { box-shadow: none; border-color: #999; }
}

/* Claude Design shell: a quiet masthead with horizontal task progress. */
.portal .app { display: flex; flex-direction: column; }
.portal .rail {
  position: sticky; top: 0; z-index: 40; width: 100%; height: auto; display: block;
  color: var(--ink); background: rgba(255,255,255,.96); background-image: none;
  border-bottom: 1px solid var(--line); box-shadow: none; transform: none; visibility: visible;
}
.portal .rail-head {
  max-width: var(--measure); height: 64px; margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; gap: var(--s4); border: 0;
}
.portal .rail-mark { width: 132px; }
.portal .rail-divider { width: 1px; height: 20px; background: var(--line); }
.portal .rail-app { margin: 0; color: var(--slate); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.portal .rail-head .acct { margin-left: auto; }
.portal .rail-nav { padding: 0; overflow: visible; border-top: 1px solid var(--line); }
.portal .rail-cap, .portal .rail-foot { display: none; }
.portal .steps { max-width: var(--measure); margin: 0 auto; padding: 0 var(--s5); display: flex; overflow-x: auto; scrollbar-width: none; }
.portal .steps::-webkit-scrollbar { display: none; }
.portal .steps > li { flex: 1 1 0; min-width: 132px; }
.portal .step {
  display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 var(--s4) 0 0;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--slate);
}
.portal .step::after { display: none; }
.portal .step-mark {
  display: block; width: auto; height: auto; border: 0; border-radius: 0; background: transparent;
  color: var(--slate); font: 700 11px/1 var(--ff-mono); letter-spacing: .1em;
}
.portal .step-mark span::before { content: "0"; }
.portal .step-label { color: var(--slate); font-size: 14px; font-weight: 500; white-space: nowrap; }
.portal .step-sub { display: none; }
.portal .step[aria-current="step"] { background: transparent; border-bottom-color: var(--navy-700); }
.portal .step[aria-current="step"] .step-mark, .portal .step[aria-current="step"] .step-label { color: var(--navy-700); font-weight: 700; }
.portal .step.done { color: var(--ink); border-bottom-color: var(--ok); }
.portal .step.done .step-mark { background: transparent; border: 0; color: var(--ok); }
.portal .step.done .step-mark::before { display: none; }
.portal .step.done .step-mark span { display: block; }
.portal .top { display: none; }
.portal .work { padding: var(--s5) var(--s5) var(--s6); }
.portal .wrap { max-width: 1180px; }

@media (max-width: 900px) {
  .portal .rail { inset: auto; }
  .portal .rail-head { height: 56px; padding-inline: var(--s4); }
  .portal .rail-mark { width: 126px; }
  .portal .steps { min-width: 0; padding-inline: var(--s4); }
  .portal .steps > li { min-width: 108px; }
  .portal .step { padding-right: var(--s3); }
  .portal .landing-workbench { grid-template-columns: minmax(0,1fr); }
  .portal .landing-side { display: block; padding-top: 0; }
  .portal .landing-account { grid-row: auto; }
  .portal .landing-email-correction { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portal .rail-app, .portal .rail-divider, .portal .acct-txt { display: none; }
  .portal .rail-head .acct { border: 0; background: transparent; padding: 0; }
  .portal .steps > li { min-width: 64px; }
  .portal .step { min-height: 44px; padding-right: var(--s3); }
  .portal .step-label { display: none; }
  .portal .step-mark { font-size: 12px; }
  .portal .work { padding-inline: var(--s4); }
  .portal #v-states .ptitle { font-size: 30px; }
  .portal #v-states .pnote { font-size: 15px; }
  .portal .state-map, .portal .state-legend { display: none; }
  .portal .states-fallback { display: block; margin-top: 0; }
  .portal .states-fallback .states { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portal .landing-workbench { gap: var(--s5); }
  .portal .landing-account { align-items: flex-start; }
  .portal .landing-account-head { flex: 1 0 100%; }
  .portal .landing-account-facts { flex-direction: column; gap: var(--s3); }
}

@media print {
  .portal .rail { display: none !important; }
}

/* Selected customer portal direction: Mockup 3 / Photo masthead. */
/* The masthead wash follows the tenant's own dark colour rather than a literal.
   It was rgba(0,27,57,...) written out three times, which is Ryerson's navy: every
   other client got their palette everywhere on the page except the one band they
   actually look at. color-mix reaches the same colour from --navy-900, which
   tenant-branding.js sets from primary_dark_color. The plain rgba() line below it
   is the fallback for a browser without color-mix, and is deliberately the
   product's own dark rather than any client's. */
.portal.concept-process .rail-head {
  max-width: none;
  height: 64px;
  background-image:
    linear-gradient(90deg, rgba(10,58,62,.96) 0%, rgba(10,58,62,.86) 50%, rgba(10,58,62,.68) 100%),
    var(--masthead, none);
  background-image:
    linear-gradient(90deg,
      color-mix(in srgb, var(--navy-900) 96%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 86%, transparent) 50%,
      color-mix(in srgb, var(--navy-900) 68%, transparent) 100%),
    var(--masthead, none);
  background-repeat: no-repeat;
  background-position: center, center 68%;
  background-size: cover;
}
/* The footer carries the masthead photo too, so the page is bracketed by the
   same image rather than opening on a photograph and closing on flat navy.
   Identical gradient and framing to .rail-head above; if that image or its
   overlay changes, both need changing together. The image is served from
   web/assets/ rather than hotlinked from ryerson.com, which Chrome refused
   cross-origin (ERR_BLOCKED_BY_ORB) and which would break the masthead if the
   URL moved or the portal ran without a connection. */
.portal.concept-process .portal-footer {
  background-image:
    linear-gradient(90deg, rgba(10,58,62,.96) 0%, rgba(10,58,62,.86) 50%, rgba(10,58,62,.68) 100%),
    var(--masthead, none);
  background-image:
    linear-gradient(90deg,
      color-mix(in srgb, var(--navy-900) 96%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 86%, transparent) 50%,
      color-mix(in srgb, var(--navy-900) 68%, transparent) 100%),
    var(--masthead, none);
  background-repeat: no-repeat;
  background-position: center, center 68%;
  background-size: cover;
}
/* There was a `content:` rule here naming Ryerson's reversed logo image directly. The
   path is described rather than quoted because assemble_static_site follows every CSS
   reference in this file and cannot tell a comment from a rule -- spelling it out here
   would make this comment a dangling reference the moment the file is renamed. It was a leak
   rather than a style: CSS content wins over the src attribute, so the masthead painted
   Ryerson's mark over whatever logo the branding payload had set. A client with their own
   approved logo would have shipped with another client's wordmark above their customer's
   certificate form. The logo is set from data in tenant-branding.js and nowhere else.

   The asset a tenant names must suit this dark band -- Ryerson's row points at the
   reversed mark for exactly that reason. One logo_path cannot serve both a dark masthead
   and a light console, which is a real limit worth carrying a variant for later. */
.portal.concept-process .rail-divider { background: rgba(255,255,255,.34); }
.portal.concept-process .rail-app { color: #D7E4F1; }
.portal.concept-process .rail-head .acct {
  border-color: rgba(255,255,255,.36);
  background: color-mix(in srgb, var(--navy-900) 66%, transparent);
  color: var(--paper);
}
.portal.concept-process .rail-head .acct-ini { background: var(--paper); color: var(--navy-900); }
.portal.concept-process .rail-head .acct-nm { color: var(--paper); }
.portal.concept-process .rail-head .acct-id { color: #D6D6D6; }
.portal.concept-process .portal-footer { padding-inline: var(--s5); }
.portal.concept-process[data-view="states"] .work {
  padding-top: var(--s2);
  padding-bottom: 0;
}
.portal.concept-process #v-states { padding-top: 0; }
.portal.concept-process #v-states .landing-head {
  max-width: 980px;
  margin-bottom: var(--s2);
}
.portal.concept-process #v-states .landing-head .ptitle { font-size: 32px; }
.portal.concept-process #v-states .landing-head .pnote {
  max-width: 940px;
  margin-top: var(--s1);
  font-size: 14px;
  line-height: 1.5;
}
.portal.concept-process .landing-workbench {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto auto;
  /* Column gap is deliberately wider than the spacing scale: the map is a
     full-bleed graphic rather than a bounded card, so at 24px its eastern
     states read as touching the account and selection cards. */
  gap: var(--s4) 56px;
  padding-bottom: 0;
}
.portal.concept-process .state-map-panel {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.portal.concept-process .landing-account {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-items: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}
.portal.concept-process .landing-side {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: var(--s3);
}
.portal.concept-process .landing-account-head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.portal.concept-process .landing-account-group { padding: 9px 14px 0; }
.portal.concept-process .account-business { flex: none; }
.portal.concept-process .landing-account-facts {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: var(--s3);
  margin: 10px 14px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.portal.concept-process .landing-account-facts > div { align-content: start; }
.portal.concept-process .landing-account-facts dd {
  font-size: 11px;
  line-height: 1.35;
}
/* The email-correction row is shown and hidden by portal.js, and nothing else may decide.
 *
 * This rule used to read `.landing-email-correction { display: none !important }`, which beat
 * the JS unconditionally -- so every customer whose SAP record has no usable email was told "a
 * new email is required" above a field that could not be rendered, and "Continue to states"
 * then validated an invisible input, marked it bad where nobody could see it, and focused an
 * element with no layout box. The button looked broken and the journey could not start.
 *
 * The row belongs to the one branch in showSapAccount that runs when record.email_valid is
 * false. That branch is the entire reason the field exists. */
.portal.concept-process .states-fallback {
  display: block;
  margin-top: 0;
  padding: var(--s3) var(--s-gut);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.portal.concept-process .states-fallback-title {
  margin-bottom: var(--s2);
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.portal.concept-process .states-fallback .states-bar {
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  gap: var(--s2);
}
.portal.concept-process .states-fallback .states-search { flex: 1 1 100%; max-width: none; }
.portal.concept-process .states-fallback .picked {
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--slate);
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.portal.concept-process .states-fallback .states {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 132px;
  overflow: auto;
  margin-top: var(--s2);
  padding: 0;
  border-top: 1px solid var(--line);
}
.portal.concept-process .states-fallback .st {
  min-height: 32px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  justify-items: start;
  gap: var(--s2);
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.portal.concept-process .states-fallback .st:hover {
  transform: none;
  box-shadow: inset 3px 0 0 var(--navy-500);
}
.portal.concept-process .states-fallback .st-ab {
  font-size: 12px;
  align-self: center;
}
.portal.concept-process .states-fallback .st-nm {
  align-self: center;
  font-size: 12px;
  text-align: left;
}
.portal.concept-process .states-fallback .st[aria-pressed="true"] {
  background: var(--navy-700);
  box-shadow: inset 3px 0 0 var(--ok);
}

@media (min-width: 901px) {
  .portal.concept-process[data-view="states"] .landing-workbench {
    grid-template-rows: 245px minmax(0, 1fr);
  }
  .portal.concept-process[data-view="states"] .landing-side,
  .portal.concept-process[data-view="states"] .selection-summary { height: auto; }
  .portal.concept-process[data-view="states"] .landing-side { align-self: start; }
  .portal.concept-process[data-view="states"] .selected-states { flex: 0 1 auto; }
}

/* Matches the viewport lock above. The right column must live inside its grid
   track or it runs under the footer; the selection summary keeps its natural
   height and the state list takes what is left, never collapsing below three
   visible rows. */
@media (min-width: 901px) and (min-height: 840px) {
  /* The three cards need more height than a 340px column has once the view is
     sized to the viewport, and they cannot move under the map because the map
     SVG draws outside its own box (see `overflow: visible` on .usmap), so
     anything placed beneath it collides with Alaska, Hawaii and the legend.
     The column therefore scrolls as a unit: every card keeps its full height
     and nothing is clipped, at the cost of an inner scrollbar. The page itself
     still does not scroll, so the footer stays in view. */
  .portal.concept-process[data-view="states"] .landing-workbench {
    grid-template-rows: 225px minmax(0, 1fr);
  }
  .portal.concept-process[data-view="states"] .landing-side {
    display: flex; flex-direction: column; gap: var(--s3);
    height: 100%; min-height: 0; align-self: stretch;
    overflow-y: auto; overscroll-behavior: contain;
    padding-right: 4px;
  }
  /* Cards must keep their natural height. A grid track will happily shrink a
     card below its content, which clipped the primary action; flex children
     that cannot shrink push the overflow into the column's scrollbar instead. */
  .portal.concept-process[data-view="states"] .landing-side > * { flex: 0 0 auto; }
}

@media (max-width: 900px) {
  .portal.concept-process[data-view="states"] .work { padding-bottom: var(--s4); }
  .portal.concept-process .landing-workbench {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: var(--s4);
  }
  .portal.concept-process .landing-account { grid-column: 1; grid-row: 1; }
  .portal.concept-process .state-map-panel { grid-column: 1; grid-row: 2; }
  .portal.concept-process .landing-side { grid-column: 1; grid-row: 3; }
}

@media (max-width: 640px) {
  .portal.concept-process .rail-head {
    background-image: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  }
  .portal.concept-process .portal-footer { padding-inline: var(--s4); }
}

/* Declarations that used to be style="" attributes on portal.html.
 *
 * style-src is 'self', which refuses a style attribute outright -- and the spec does not
 * apply hashes to them without 'unsafe-hashes', so there is no policy that keeps both. All
 * five were silently dropped on the live page: a card drawn with the wrong border, a
 * signature hint with no space under it, an ungapped grid, and "Reference" rendering in
 * body black rather than slate. */
.card-h.card-h-continued { border-top: 1px solid var(--line); border-bottom: 0; }
.hint.hint-lead { margin: 0 0 10px; }
.grid.grid-spaced { margin-top: 16px; }
.muted { color: var(--slate); }

/* What the purchaser buys, asked once above the certificate cards.
   Radios rather than a <select> on purpose: thirteen options is few enough to read at a
   glance, and a dropdown hides the escape hatch behind an interaction. A customer who cannot
   see "Something else" assumes the list is closed and picks the nearest wrong answer. */
.purchase-card { margin-bottom: 20px; }
.purchase-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px 20px; margin-top: 12px; }
.purchase-option { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 14px; cursor: pointer; }
.purchase-option input { accent-color: var(--tenant-primary, var(--navy-700)); flex: none; }
.purchase-option:hover { color: var(--tenant-primary, var(--navy-700)); }

/* Armanino standard customer portal. The Ryerson submission layout is retained;
   these scoped rules provide the product identity for the uncustomized offering. */
@font-face { font-family: 'Armanino Roboto'; src: url('vendor/fonts/armanino-roboto-var.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Armanino Playfair'; src: url('vendor/fonts/armanino-playfair-var.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
html[data-portal-brand="customer-standard"] {
  --tenant-primary: #007681; --tenant-primary-dark: #222222; --tenant-primary-light: #F9F9F9;
  --navy-900: #222222; --navy-800: #222222; --navy-700: #007681;
  --navy-600: #005B64; --navy-500: #007681; --navy-100: #DADADA; --navy-050: #F9F9F9;
  --masthead: none;
}
html[data-portal-brand="customer-standard"] .portal { font-family: 'Armanino Roboto', Arial, sans-serif; background: #F9F9F9; color: #222222; }
html[data-portal-brand="customer-standard"] .portal :is(input, button, select, textarea) { font-family: inherit; }
html[data-portal-brand="customer-standard"] .portal.concept-process .rail-head {
  height: 56px; background: #ffffff; color: #222222; border-bottom: 2px solid #222222;
}
html[data-portal-brand="customer-standard"] .rail-mark { width: 170px; }
html[data-portal-brand="customer-standard"] .rail-divider { background: #DADADA; }
html[data-portal-brand="customer-standard"] .portal.concept-process .rail-app { color: #222222; font-size: 16px; }
html[data-portal-brand="customer-standard"] .portal-client-label { display: inline-block; margin-top: 5px; color: #666666; font-size: 13px; font-weight: 400; }
html[data-portal-brand="customer-standard"] .portal.concept-process .rail-head .acct { background: #F9F9F9; color: #222222; border: 1px solid #BBBBBB; }
html[data-portal-brand="customer-standard"] .portal.concept-process .rail-head .acct-nm { color: #222222; }
html[data-portal-brand="customer-standard"] .portal.concept-process .rail-head .acct-id { color: #666666; }
html[data-portal-brand="customer-standard"] .portal.concept-process .portal-footer { background: #ffffff; color: #222222; border-top: 2px solid #222222; }
html[data-portal-brand="customer-standard"] .portal-footer :is(a, .portal-footer-support-copy, .portal-footer-secure, .portal-footer-brand span) { color: #666666; }
html[data-portal-brand="customer-standard"] .portal-footer :is(.portal-footer-brand strong, .portal-footer-support-copy span) { color: #222222; }
html[data-portal-brand="customer-standard"] .portal :is(.ptitle, .landing-title) { font-family: 'Armanino Playfair', Georgia, serif; color: #222222; }
html[data-portal-brand="customer-standard"] .portal :is(.card, .res-hero) { border: 2px solid #222222; border-radius: 16px; box-shadow: 4px 4px 0 #EAE8E5; overflow: hidden; }
html[data-portal-brand="customer-standard"] .portal .card-h { border-bottom: 2px solid #222222; }
html[data-portal-brand="customer-standard"] .portal .account-identity { background: #F9F9F9; }
html[data-portal-brand="customer-standard"] .portal .btn.pri { background: #007681; border-color: #007681; color: #FFFFFF; }
html[data-portal-brand="customer-standard"] .portal .btn.pri:hover:not(:disabled) { background: #005B64; border-color: #005B64; }
html[data-portal-brand="customer-standard"] .portal .btn.pri:disabled { background: #EAEAEA; border-color: #DADADA; color: #666666; box-shadow: none; opacity: 1; cursor: not-allowed; }
html[data-portal-brand="customer-standard"] .portal .badge.ok { color: #6B6B00; background: #F4F4E4; border-color: #949300; }
html[data-portal-brand="customer-standard"] .portal .badge.warn { color: #8A4604; background: #FFF6EC; border-color: #DA720F; }
/* Fit the complete map in the space below the heading, including the legend. */
html[data-portal-brand="customer-standard"] .portal.concept-process .landing-workbench { grid-template-rows: auto auto; gap: 20px 32px; }
html[data-portal-brand="customer-standard"] .portal.concept-process .state-map { min-height: 0; }
html[data-portal-brand="customer-standard"] .portal.concept-process .state-map-panel { align-self: start; display: block; }
html[data-portal-brand="customer-standard"] .portal.concept-process #mapholder { height: var(--map-available-height, calc(100dvh - 290px)); min-height: 0; flex: none; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap { height: 100%; width: 100%; min-height: 0; overflow: hidden; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap path.st:hover:not([aria-disabled="true"]) { fill: #DCEFF0; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap path.st[data-selected="true"] { fill: #DCEFF0; stroke: #007681; stroke-width: 1.4; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap path.st[data-selected="true"]:hover { fill: #DCEFF0; stroke: #005B64; stroke-width: 1.8; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap text.ab[data-selected="true"] { fill: #222222; stroke: none; }
html[data-portal-brand="customer-standard"] .portal.concept-process .usmap path.st:focus-visible { stroke: #005B64; stroke-width: 2.4; }
html[data-portal-brand="customer-standard"] .portal.concept-process .state-legend i.chosen { background: #DCEFF0; border-color: #007681; }
html[data-portal-brand="customer-standard"] .portal.concept-process .landing-side { height: auto; overflow: visible; }
html[data-portal-brand="customer-standard"] .portal.concept-process .work > .wrap { max-width: var(--measure); }
html[data-portal-brand="customer-standard"] .portal.concept-process[data-view="states"] .app { height: auto; min-height: 100dvh; overflow: visible; }
html[data-portal-brand="customer-standard"] .portal.concept-process .step { min-height: 38px; }
html[data-portal-brand="customer-standard"] .portal.concept-process[data-view="states"] .work { padding-top: 6px; }
html[data-portal-brand="customer-standard"] .portal.concept-process #v-states .landing-head { margin-bottom: 6px; }
html[data-portal-brand="customer-standard"] .portal.concept-process #v-states .landing-head .ptitle { line-height: 1.15; }
html[data-portal-brand="customer-standard"] .portal.concept-process #v-states .landing-head .pnote { margin-top: 2px; line-height: 1.35; }
@media (min-width: 901px) {
  html[data-portal-brand="customer-standard"] .portal.concept-process .rail-app br { display: none; }
  html[data-portal-brand="customer-standard"] .portal.concept-process .portal-client-label { margin-top: 0; margin-left: 16px; }
  html[data-portal-brand="customer-standard"] .portal.concept-process #v-states .landing-head { max-width: calc(100% - 372px); }
  html[data-portal-brand="customer-standard"] .portal.concept-process .landing-account { margin-top: calc(-1 * var(--state-heading-offset, 60px)); }
}
.purchase-detail { display: block; margin-top: 14px; }
.purchase-detail .fld-l { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .purchase-list { grid-template-columns: 1fr; } }

/* A heading is focused (not styled as focused) when the page changes; see focusHeading in portal.js. */
h1[tabindex="-1"]:focus { outline: none; }
