:root {
  color-scheme: light;
  --bg: #fff4df;
  --surface: #ffffff;
  --surface-strong: #fff0cf;
  --ink: #334155;
  --muted: #667085;
  --line: #f0c38a;
  --brand: #c83219;
  --brand-strong: #8f1f12;
  --accent: #ffd36a;
  --blue: #74c7ff;
  --red: #d93b1f;
  --placeholder: #67bfff;
  --shadow: 0 18px 50px rgba(177, 69, 16, .18);
  --content-width: 880px;
  --font-body: "Aptos", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Aptos Display", "Aptos", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
}

body {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 183, 70, .36), rgba(255, 245, 214, .74) 52%, rgba(255, 255, 255, .96)),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 236, 201, .18), rgba(255, 255, 255, .5)),
    url("assets/hero-diagonal-orange.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(1500px, 112vw) auto;
  opacity: .32;
  mix-blend-mode: multiply;
}

body.home-page::before {
  display: none;
}

body.account-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
.brand strong {
  font-family: var(--font-heading);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  margin: 0;
}

button,
img,
svg {
  display: block;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

strong,
b {
  font-weight: 580;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 10px clamp(12px, 1.8vw, 26px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.region-control {
  position: relative;
  display: block;
}

.country-dropdown {
  position: relative;
}

.country-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 52px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fffaf0, #fff0cf);
  color: var(--ink);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 620;
  list-style: none;
}

.country-dropdown summary::-webkit-details-marker {
  display: none;
}

.country-dropdown summary::after {
  content: "v";
  color: var(--brand-strong);
  font-size: .62rem;
  font-weight: 760;
}

.country-dropdown[open] summary::after {
  content: "^";
}

.country-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 90;
  display: grid;
  width: min(142px, calc(100vw - 24px));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(93, 39, 16, .2);
}

.country-menu button {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .74rem;
  text-align: left;
}

.country-menu button:hover,
.country-menu button:focus-visible {
  background: #fff0cf;
  color: var(--brand-strong);
}

.country-menu button:disabled {
  color: #a59086;
  cursor: not-allowed;
  opacity: .55;
}

.profile-control {
  position: relative;
}

.profile-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 7px 16px rgba(143, 31, 18, .1);
}

.profile-icon-btn.is-authenticated {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff0cf, #ffd36a);
}

.profile-icon-btn:focus-visible,
.country-dropdown summary:focus-visible {
  outline: 3px solid rgba(116, 199, 255, .65);
  outline-offset: 2px;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(340px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 48px rgba(93, 39, 16, .24);
}

.profile-popover[hidden] {
  display: none;
}

.profile-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.profile-popover-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-popover-head strong,
.profile-popover-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-popover-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff8a23);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-details {
  display: grid;
  gap: 0;
  margin: 10px 0 14px;
}

.profile-details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f6dfb9;
}

.profile-details dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 620;
}

.profile-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 620;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 214px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #ff8a23);
  color: #fff;
  font-weight: 660;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: .7rem;
  line-height: 1.2;
}

.brand small span {
  display: block;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-weight: 560;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  box-sizing: border-box;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(240, 195, 138, .72);
  border-radius: 8px;
  background: rgba(255, 250, 240, .76);
  color: #68473a;
  opacity: 1;
  cursor: pointer;
  font-size: .78rem;
  line-height: 1;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.main-nav a[hidden] {
  display: none !important;
}

.main-nav a:hover {
  border-color: #e89a45;
  background: linear-gradient(90deg, #fff3d4, #ffe0a0);
  color: var(--brand-strong);
  box-shadow: 0 6px 14px rgba(143, 31, 18, .12);
  transform: translateY(-1px);
}

.main-nav a:focus-visible {
  outline: 3px solid rgba(116, 199, 255, .65);
  outline-offset: 2px;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #fff4d7, #ffd577);
  border-color: #d96a29;
  color: var(--brand-strong);
  opacity: 1;
  box-shadow: inset 0 -3px 0 var(--brand), 0 8px 18px rgba(143, 31, 18, .13);
}

.icon-btn,
.text-btn,
.primary-btn,
.secondary-btn,
.view-tabs button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff2d4, #ffd682);
  color: var(--brand-strong);
  font-size: 20px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 620;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(90deg, var(--brand), #ff8a23);
  color: #fff;
}

.primary-btn.auth-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: .72rem;
}

.secondary-btn {
  background: linear-gradient(90deg, #fff7e6, #ffe2a3);
  color: var(--brand-strong);
  border: 1px solid var(--line);
}

.text-btn {
  background: transparent;
  color: var(--brand-strong);
  font-weight: 620;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.06);
}

.hero-molecule {
  position: absolute;
  right: clamp(12px, 5vw, 72px);
  top: 50%;
  z-index: 2;
  width: min(36vw, 430px);
  max-height: 88%;
  object-fit: contain;
  opacity: .86;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 34px rgba(255, 213, 36, .28));
  pointer-events: none;
}

.hero-molecule-diagonal {
  inset: 0;
  right: auto;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: .72;
  transform: none;
  filter: drop-shadow(0 22px 38px rgba(255, 227, 42, .3));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(197, 43, 18, .86), rgba(255, 139, 35, .58) 44%, rgba(255, 213, 98, .2)),
    radial-gradient(circle at 20% 20%, rgba(255, 214, 116, .42), transparent 28%),
    linear-gradient(0deg, rgba(92, 26, 10, .42), transparent 42%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(255, 221, 139, .34) 23%, transparent 31% 64%, rgba(255, 184, 80, .24) 70%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(255, 236, 180, .12) 0 1px, transparent 1px 118px);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 520px;
  padding: 18px clamp(18px, 5vw, 64px) 24px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe08a;
  text-shadow: 0 1px 2px rgba(71, 21, 6, .5);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.9rem, 1.2vw, 1rem);
  line-height: 1.45;
}

.search-panel {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
  gap: 12px;
  width: min(var(--content-width), 100%);
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 244, 219, .24);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-workspace {
  position: relative;
  z-index: 6;
  width: min(var(--content-width), 100%);
  min-width: 0;
}

.hero-main-column {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.hero-main-column .search-panel,
.hero-main-column .insight-carousel {
  width: 100%;
}

.hero-main-column .search-panel {
  height: 90px;
}

.hero-main-column .insight-carousel {
  height: 286px;
}

.hero-side-column {
  position: absolute;
  top: 50%;
  right: calc(100% + 26px);
  display: grid;
  grid-template-rows: 90px 286px;
  gap: 16px;
  width: 190px;
  transform: translateY(-50%);
}

.hero-side-column::after {
  content: "";
  position: absolute;
  top: 0;
  right: -13px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 244, 205, .72) 12% 88%, transparent);
  box-shadow: 0 0 10px rgba(255, 220, 115, .34);
}

.digital-transformation-section,
.digital-page-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 248, 222, .4);
  border-radius: 8px;
  background: rgba(255, 224, 138, .2);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.digital-transformation-section {
  height: 90px;
  padding: 8px;
}

.digital-transformation-trigger {
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.digital-transformation-trigger:hover,
.digital-transformation-trigger:focus-visible {
  border-color: #ffe36f;
  background: rgba(255, 211, 106, .38);
  box-shadow: 0 0 0 3px rgba(255, 227, 111, .3), var(--shadow);
  transform: translateY(-2px);
  outline: none;
}

.digital-page-panel {
  justify-items: stretch;
  height: 286px;
  padding: 10px;
}

.digital-transformation-label {
  width: 100%;
  margin: 0;
  color: #fff8df;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 620;
  line-height: 1.1;
  text-align: center;
}

.digital-page-links {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.digital-page-panel a {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  height: 100%;
  min-height: 0;
  padding: 6px 8px;
  border-color: rgba(255, 248, 222, .4);
  font-size: .74rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.digital-page-links a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 244, 219, .24);
  color: #fff;
  font-size: .74rem;
  font-weight: 620;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.digital-page-links a:hover,
.digital-page-links a:focus-visible {
  border-color: #ffe36f;
  background: rgba(255, 211, 106, .38);
  transform: translateY(-2px);
  outline: none;
}

.digital-access-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 31, 45, .54);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.digital-access-backdrop[hidden] {
  display: none;
}

.digital-access-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(237, 90, 40, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 26px 70px rgba(16, 33, 57, .3);
}

.digital-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.digital-access-heading h2 {
  margin: 3px 0 0;
  color: #173e7a;
  font-size: 1.25rem;
}

.digital-access-heading .eyebrow {
  margin: 0;
}

.digital-access-close {
  flex: 0 0 38px;
  color: #9a2f18;
  background: #fff3ed;
}

.digital-access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.digital-access-form input,
.digital-access-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 10px;
  color: #102c59;
  background: #fff;
  font: inherit;
}

.digital-access-form input:focus,
.digital-access-form textarea:focus {
  border-color: #ed5a28;
  outline: 3px solid rgba(237, 90, 40, .14);
}

.digital-access-form textarea {
  min-height: 96px;
  resize: vertical;
}

.digital-access-full {
  grid-column: 1 / -1;
}

.digital-access-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.digital-access-open {
  overflow: hidden;
}

.recovery-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-help-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.recovery-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #173e7a;
  font-size: .78rem;
  font-weight: 750;
}

.recovery-choice label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  color: #173e7a;
  background: #f8fbff;
  font-size: .77rem;
  cursor: pointer;
}

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

.recovery-choice label::before {
  content: "\00D7";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 4px;
  color: #8c3b2d;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.recovery-choice label:has(input:checked) {
  border-color: #ed5a28;
  background: #fff5e9;
}

.recovery-choice label:has(input:checked)::before {
  content: "\2713";
  border-color: #ed5a28;
  color: #fff;
  background: #ed5a28;
}

.recovery-choice label:focus-within {
  outline: 3px solid rgba(237, 90, 40, .15);
  outline-offset: 2px;
}

.chemical-algebra-host {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chemical-algebra-host .topbar {
  flex: 0 0 auto;
}

.chemical-algebra-main {
  min-height: 0;
  flex: 1 1 auto;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff7fc;
}

.chemical-algebra-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff7fc;
}

.chemical-algebra-host .site-footer {
  min-height: 34px;
  flex: 0 0 34px;
  margin: 0;
  padding: 7px 18px;
}

.information-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 44px;
}

.information-title {
  width: 100%;
  margin-inline: 0;
}

.information-band {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 42px;
  padding: 28px 0;
  border-top: 1px solid rgba(25, 66, 139, .18);
  border-bottom: 1px solid rgba(25, 66, 139, .18);
}

.information-band h2,
.information-columns h2 {
  margin: 4px 0 0;
  color: #173e7a;
  font-size: 1.16rem;
}

.information-band > p,
.information-columns p {
  margin: 0;
  color: #53657f;
  line-height: 1.65;
}

.information-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 34px 0;
}

.information-columns article {
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid rgba(25, 66, 139, .18);
}

.information-columns article:first-child {
  padding-left: 0;
}

.information-columns article:last-child {
  padding-right: 0;
  border-right: 0;
}

.information-index {
  display: block;
  margin-bottom: 16px;
  color: #ed5a28;
  font-weight: 800;
}

.information-columns p {
  margin-top: 10px;
}

.faq-list {
  border-top: 1px solid rgba(25, 66, 139, .2);
}

.faq-list details {
  border-bottom: 1px solid rgba(25, 66, 139, .2);
  background: rgba(255, 255, 255, .72);
}

.faq-list summary {
  position: relative;
  padding: 18px 48px 18px 4px;
  color: #173e7a;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(25, 66, 139, .24);
  border-radius: 50%;
  color: #d84719;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 850px;
  margin: 0;
  padding: 0 48px 20px 4px;
  color: #53657f;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .information-band,
  .information-columns {
    grid-template-columns: 1fr;
  }

  .information-band {
    gap: 16px;
  }

  .information-columns article,
  .information-columns article:first-child,
  .information-columns article:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 66, 139, .18);
  }
}

.superuser-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.superuser-gate {
  max-width: 560px;
  margin: 12vh auto 0;
  padding: 28px;
  border: 1px solid rgba(25, 66, 139, .2);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.superuser-gate h1 {
  margin: 0 0 10px;
  color: #173e7a;
  font-size: 1.35rem;
}

.superuser-gate p {
  margin: 0 0 20px;
  color: #53657f;
}

.superuser-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.superuser-heading h1 {
  margin: 4px 0 5px;
  color: #173e7a;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 650;
}

.superuser-heading .eyebrow,
.superuser-heading .catalogue-note {
  margin: 0;
}

.superuser-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #60708a;
  font-size: .84rem;
}

.superuser-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  margin-bottom: 20px;
  padding: 4px;
  border-bottom: 1px solid rgba(25, 66, 139, .2);
}

.superuser-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #60708a;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.superuser-tabs button:hover,
.superuser-tabs button:focus-visible,
.superuser-tabs button.active {
  border-bottom-color: #ed5a28;
  color: #173e7a;
  background: #fff5e9;
  outline: none;
}

.superuser-panel[hidden] {
  display: none;
}

.superuser-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.superuser-kpi-grid label {
  min-width: 0;
  min-height: 108px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(25, 66, 139, .17);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 79, 163, .06);
}

.user-kpi-filter {
  min-width: 0;
  min-height: 108px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(25, 66, 139, .17);
  border-radius: 8px;
  color: #173e7a;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 79, 163, .06);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-kpi-filter span {
  color: #52657f;
  font-size: .82rem;
  font-weight: 700;
}

.user-kpi-filter strong {
  font-size: 1.65rem;
  font-weight: 750;
}

.trial-request-alert {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: #c43d18;
  font-size: .67rem;
  font-style: normal;
  font-weight: 750;
}

.trial-request-alert[hidden] {
  display: none;
}

.user-kpi-filter:hover,
.user-kpi-filter:focus-visible,
.user-kpi-filter.active {
  border-color: #ed5a28;
  background: #fff8ef;
  outline: 3px solid rgba(237, 90, 40, .12);
}

.superuser-kpi-grid label span {
  color: #60708a;
  font-size: .82rem;
  font-weight: 700;
}

.superuser-kpi-grid input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #173e7a;
  background: transparent;
  font: inherit;
  font-size: 1.65rem;
  font-weight: 750;
}

.superuser-summary-band {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(25, 66, 139, .18);
  border-bottom: 1px solid rgba(25, 66, 139, .18);
}

.superuser-summary-band h2 {
  margin: 4px 0 0;
  color: #173e7a;
  font-size: 1.1rem;
}

.superuser-summary-band dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(25, 66, 139, .16);
}

.superuser-summary-band dl div {
  padding: 12px;
  background: #f8fbff;
}

.superuser-summary-band dt {
  color: #60708a;
  font-size: .75rem;
  font-weight: 700;
}

.superuser-summary-band dd {
  margin: 5px 0 0;
  color: #173e7a;
  font-weight: 760;
}

.transaction-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.user-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.user-category-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: #53657f;
  font-size: .8rem;
  font-weight: 700;
}

.trial-access-section {
  margin-top: 18px;
  border-color: rgba(196, 61, 24, .36);
  background: #fffaf5;
}

.pending-request-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #923c0b;
  background: #ffe8c5;
  font-size: .76rem;
  font-weight: 750;
}

.trial-request-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.request-secondary {
  display: block;
  margin-top: 3px;
  color: #687992;
  font-size: .7rem;
}

.request-justification-row td {
  padding-top: 6px;
  color: #53657f;
  background: #fffdf9;
  white-space: normal;
}

.request-decision-note {
  color: #75849a;
  font-size: .72rem;
}

.compact-action {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #dc9a8c;
  border-radius: 6px;
  color: #9a2f18;
  background: #fff4f0;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.user-status-badge.request-approved {
  border-color: #8bd2a8;
  color: #17633b;
  background: #dff6e8;
}

.user-status-badge.request-pending {
  border-color: #efbd79;
  color: #923c0b;
  background: #fff0d8;
}

.user-status-badge.request-rejected,
.user-status-badge.request-revoked,
.user-status-badge.request-expired {
  border-color: #dc9a8c;
  color: #9a2f18;
  background: #fff0ec;
}

.digital-trial-banner {
  width: min(100% - 32px, 1180px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  box-sizing: border-box;
  margin: 18px auto 0;
  padding: 9px 14px;
  border: 1px solid #efbd79;
  border-radius: 7px;
  color: #68401a;
  background: #fff6df;
  font-size: .8rem;
}

.digital-trial-banner strong {
  color: #963d12;
}

.digital-trial-banner.is-admin {
  border-color: #9ebced;
  color: #173e7a;
  background: #edf4ff;
  font-weight: 700;
}

.digital-access-state {
  width: min(100% - 32px, 680px);
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  box-sizing: border-box;
  margin: 34px auto;
  padding: 34px;
  border: 1px solid rgba(237, 90, 40, .35);
  border-radius: 8px;
  color: #405473;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 66, 139, .1);
  text-align: center;
}

.digital-access-state h1,
.digital-access-state p {
  margin: 0;
}

.digital-access-state h1 {
  color: #173e7a;
}

.digital-access-state-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ed5a28;
  font-weight: 800;
}

.user-category-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.user-category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7b8ba3;
}

.user-category-dot.category-paid,
.user-category-badge.category-paid {
  color: #17633b;
  background: #dff6e8;
  border-color: #8bd2a8;
}

.user-category-dot.category-free,
.user-category-badge.category-free {
  color: #1c4fa3;
  background: #e5efff;
  border-color: #9ebced;
}

.user-category-dot.category-subscription,
.user-category-badge.category-subscription {
  color: #923c0b;
  background: #fff0d8;
  border-color: #efbd79;
}

.user-category-dot.category-trial,
.user-category-badge.category-trial {
  color: #6a3f91;
  background: #f1e8fa;
  border-color: #c4a4df;
}

.user-category-dot.category-paid,
.user-category-dot.category-free,
.user-category-dot.category-subscription,
.user-category-dot.category-trial {
  color: transparent;
}

.superuser-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  margin-top: 20px;
}

.transaction-detail-grid {
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr);
}

.superuser-data-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(25, 66, 139, .17);
  border-radius: 8px;
  background: #fff;
}

.superuser-data-section .panel-header {
  margin-bottom: 12px;
}

.superuser-data-section h2 {
  margin: 0;
  color: #173e7a;
  font-size: 1rem;
}

.region-filter-header,
.user-register-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.region-filter-header label {
  min-width: 190px;
  color: #53657f;
  font-size: .76rem;
  font-weight: 700;
}

.region-filter-header select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 7px 34px 7px 9px;
  color: #173e7a;
  background: #fff;
  font: inherit;
}

.user-register-section {
  margin-top: 18px;
}

.user-register-toolbar {
  margin-bottom: 10px;
}

.user-register-tools {
  display: flex;
  align-items: end;
  gap: 10px;
}

.user-search-field {
  min-width: min(320px, 42vw);
  display: grid;
  gap: 4px;
  color: #52657f;
  font-size: .72rem;
  font-weight: 750;
}

.user-search-field input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 8px 11px;
  color: #173e7a;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
}

.user-search-field input:focus {
  border-color: #ed5a28;
  outline: 3px solid rgba(237, 90, 40, .12);
}

.user-register-toolbar .eyebrow,
.user-register-toolbar h2 {
  margin: 0;
}

.user-filter-status {
  margin: 0 0 10px;
  color: #52657f;
  font-size: .82rem;
}

.user-register-toolbar h2 {
  margin-top: 3px;
}

.user-register-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(25, 66, 139, .12);
}

.user-register-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.user-register-table td {
  white-space: nowrap;
}

.user-category-badge,
.user-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  border: 1px solid #b8c4d6;
  border-radius: 999px;
  color: #405473;
  background: #f1f5fa;
  font-size: .72rem;
  font-weight: 750;
}

.user-status-badge.is-suspended {
  border-color: #dc9a8c;
  color: #9a2f18;
  background: #fff0ec;
}

.user-row-actions {
  display: flex;
  gap: 6px;
}

.user-row-actions button {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #9eb1ce;
  border-radius: 6px;
  color: #173e7a;
  background: #f6f9ff;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.user-row-actions button:hover,
.user-row-actions button:focus-visible {
  border-color: #ed5a28;
  outline: 2px solid rgba(237, 90, 40, .13);
}

.user-row-actions button.danger-action {
  border-color: #dc9a8c;
  color: #9a2f18;
  background: #fff4f0;
}

.user-row-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.user-identity-link {
  max-width: 220px;
  padding: 0;
  border: 0;
  color: #174f9f;
  background: transparent;
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(23, 79, 159, .32);
  text-underline-offset: 3px;
  cursor: pointer;
}

.user-identity-link:hover,
.user-identity-link:focus-visible {
  color: #bd3d13;
  outline: none;
}

.admin-user-backdrop {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 31, 45, .56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.admin-user-backdrop[hidden] {
  display: none;
}

.admin-user-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(237, 90, 40, .4);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(16, 33, 57, .3);
}

.admin-user-modal h2 {
  margin: 3px 0 0;
  color: #173e7a;
  font-size: 1.22rem;
}

.user-details-modal {
  width: min(980px, 100%);
}

.user-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.user-details-grid label {
  min-width: 0;
}

.user-details-grid span {
  display: block;
  margin-bottom: 4px;
  color: #52657f;
  font-size: .72rem;
  font-weight: 750;
}

.user-details-grid input {
  width: 100%;
  min-height: 39px;
  box-sizing: border-box;
  border: 1px solid #b7c5d9;
  border-radius: 6px;
  padding: 8px 9px;
  color: #173e7a;
  background: #f7faff;
  font: inherit;
  font-size: .8rem;
}

.user-transaction-history {
  margin-top: 20px;
}

.user-transaction-history h3 {
  margin: 0 0 9px;
  color: #173e7a;
  font-size: 1rem;
}

.user-details-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.danger-btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #ce755f;
  border-radius: 7px;
  color: #8f2814;
  background: #fff1ed;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.danger-btn:disabled,
.user-details-actions button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-sizing: border-box;
  margin-top: 32px;
  padding: 14px 24px;
  border-top: 1px solid rgba(25, 66, 139, .16);
  color: #53657f;
  background: rgba(248, 251, 255, .94);
  font-size: .78rem;
  text-align: center;
}

.contact-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 10px;
}

.contact-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(25, 66, 139, .17);
}

.contact-page-title .eyebrow,
.contact-page-title h1 {
  width: 100%;
  margin: 0;
}

.contact-primary-email {
  color: #174f9f;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.contact-primary-email:hover,
.contact-primary-email:focus-visible {
  color: #bd3d13;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-department {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 66, 139, .07);
}

.contact-department-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ed5a28;
  font-size: .75rem;
  font-weight: 800;
}

.contact-department:nth-child(2) .contact-department-mark {
  background: #184f9f;
}

.contact-department:nth-child(3) .contact-department-mark {
  background: #24724a;
}

.contact-department h2,
.contact-department p {
  margin: 0;
}

.contact-department h2 {
  color: #173e7a;
  font-size: 1.02rem;
}

.contact-department p {
  color: #53657f;
  font-size: .86rem;
  line-height: 1.6;
}

.contact-department .secondary-btn {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.contact-response-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(25, 66, 139, .17);
  border-bottom: 1px solid rgba(25, 66, 139, .17);
}

.contact-response-band h2,
.contact-response-band .eyebrow {
  margin: 0;
}

@media (max-width: 820px) {
  .contact-department-grid {
    grid-template-columns: 1fr;
  }

  .contact-department {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .contact-response-band {
    align-items: stretch;
    flex-direction: column;
  }
}

.account-page .site-footer {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 38px;
  margin-top: 0;
  padding: 8px 20px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.admin-field-full,
.admin-field-pair {
  grid-column: 1 / -1;
}

.admin-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.rights-group-fieldset {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 139, 35, .36);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 248, 223, .7);
}

.rights-group-fieldset legend {
  padding: 0 8px;
  color: #173f8f;
  font-weight: 700;
}

.rights-group-fieldset label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px 7px 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  color: #183d7a;
  cursor: pointer;
}

.rights-group-fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rights-group-fieldset label::before {
  content: "\2715";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid #b7c2d8;
  border-radius: 5px;
  background: #ffffff;
  color: #9d2430;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.rights-group-fieldset label:has(input:checked) {
  border-color: rgba(223, 75, 31, .36);
  background: rgba(255, 237, 205, .88);
}

.rights-group-fieldset label:has(input:checked)::before {
  content: "\2713";
  border-color: #df4b1f;
  background: #df4b1f;
  color: #ffffff;
}

.admin-user-form input,
.admin-user-form select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 8px 10px;
  color: #102c59;
  background: #fff;
  font: inherit;
}

.admin-user-form .rights-group-fieldset input {
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
}

.admin-user-form-status,
.admin-user-form-actions {
  grid-column: 1 / -1;
}

.admin-user-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.admin-user-modal-open {
  overflow: hidden;
}

.superuser-table {
  width: 100%;
  border-collapse: collapse;
}

.superuser-table th,
.superuser-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(25, 66, 139, .12);
  color: #405473;
  text-align: left;
  font-size: .82rem;
}

.superuser-table th {
  color: #173e7a;
  background: #f2f7ff;
  font-weight: 750;
}

.superuser-status-list {
  display: grid;
  gap: 8px;
}

.superuser-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(25, 66, 139, .12);
  color: #53657f;
}

.superuser-status-list strong {
  color: #173e7a;
}

@media (max-width: 980px) {
  .superuser-kpi-grid,
  .transaction-kpis,
  .superuser-summary-band dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .superuser-summary-band,
  .superuser-two-column,
  .transaction-detail-grid {
    grid-template-columns: 1fr;
  }

  .user-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .superuser-main {
    width: min(100% - 20px, 1240px);
    padding-top: 14px;
  }

  .superuser-heading,
  .superuser-heading-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .superuser-tabs {
    overflow-x: auto;
  }

  .superuser-kpi-grid,
  .transaction-kpis,
  .superuser-summary-band dl {
    grid-template-columns: 1fr;
  }

  .region-filter-header,
  .user-register-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .region-filter-header label {
    min-width: 0;
  }

  .user-register-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .user-search-field {
    min-width: 0;
  }

  .user-details-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-form {
    grid-template-columns: 1fr;
  }

  .admin-user-form-status,
  .admin-user-form-actions {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .digital-access-form {
    grid-template-columns: 1fr;
  }

  .digital-access-full {
    grid-column: 1;
  }
}

.transformation-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.transformation-intro {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.transformation-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.transformation-card h2 {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 1.08rem;
}

.transformation-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1279px) {
  .hero-workspace {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-side-column {
    position: relative;
    top: auto;
    width: 100%;
    grid-template-rows: 90px 286px;
    transform: none;
  }

  .hero-side-column::after {
    right: -7px;
  }
}

.insight-carousel {
  position: relative;
  z-index: 6;
  width: min(var(--content-width), 100%);
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 239, 198, .18);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.carousel-top .eyebrow {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls .icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 212, 117, .28);
  color: #fff;
}

.carousel-window {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  contain: layout paint;
}

.carousel-track {
  display: flex;
  min-width: 0;
  gap: 12px;
  transition: transform .35s ease;
  will-change: transform;
}

.insight-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 24px) / 3);
  height: 218px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(112, 28, 10, .5);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.insight-card + .insight-card {
  margin-left: 0;
}

.insight-card:hover,
.insight-card:focus-visible {
  z-index: 2;
  border-color: #ffe36f;
  background: rgba(145, 36, 12, .68);
  box-shadow: 0 0 0 3px rgba(255, 227, 111, .42), 0 18px 34px rgba(95, 21, 4, .34);
  filter: saturate(1.12) contrast(1.04);
  transform: translateY(-3px);
  outline: none;
}

.insight-card img {
  width: 100%;
  height: 100%;
  flex: none;
  object-fit: cover;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .1);
  padding: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: #ffffff;
  }

  .search-panel {
    background: rgba(255, 237, 198, .94);
  }

  .insight-carousel {
    background: rgba(255, 232, 176, .94);
  }
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 620;
}

.search-panel label {
  color: rgba(255, 255, 255, .78);
  min-width: 0;
}

input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-panel input,
.search-panel select,
.search-panel .primary-btn {
  height: 42px;
  min-height: 42px;
}

.search-panel .primary-btn {
  align-self: end;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

select:invalid {
  color: var(--placeholder);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 50, 25, .18);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: linear-gradient(90deg, #c83219, #ffbe45);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 24px clamp(18px, 4vw, 48px);
  background: linear-gradient(90deg, #fff5dd, #ffffff);
}

.stats-band strong {
  display: block;
  color: var(--brand-strong);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 600;
}

.page-title {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: clamp(22px, 4vw, 42px) clamp(22px, 4vw, 52px) clamp(14px, 2vw, 24px);
  text-align: left;
}

.page-title .eyebrow {
  margin: 0;
}

.page-title h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.1vw, 2.05rem);
  font-weight: 620;
  line-height: 1.08;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 24px;
  padding: clamp(22px, 4vw, 52px);
}

.category-workspace {
  display: grid;
  padding: clamp(22px, 4vw, 52px);
}

.filters,
.results-section,
.supplier-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  overflow: visible;
  padding: clamp(10px, 1.6vw, 18px);
  background:
    linear-gradient(90deg, rgba(255, 151, 34, .38), rgba(255, 217, 116, .28) 48%, rgba(255, 255, 255, .84)),
    var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(620px, 1fr);
  gap: 12px;
  width: min(1360px, 100%);
  height: min(700px, calc(100vh - 92px));
  height: min(700px, calc(100dvh - 92px));
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.account-art-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(255, 244, 210, .12), rgba(255, 255, 255, .38) 42%, rgba(255, 179, 76, .22)),
    linear-gradient(90deg, rgba(185, 43, 18, .96), rgba(255, 135, 35, .72) 54%, rgba(255, 216, 112, .46));
}

.account-art-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .66;
  mix-blend-mode: screen;
}

.account-art-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .36), transparent 24%, rgba(255, 255, 255, .2) 48%, transparent 66%),
    radial-gradient(circle at 30% 18%, rgba(255, 244, 184, .45), transparent 26%),
    radial-gradient(circle at 75% 78%, rgba(255, 255, 255, .26), transparent 30%);
  backdrop-filter: blur(1px);
}

.account-art-panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  pointer-events: none;
}

.account-brand-loader {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(78, 22, 6, .36);
  animation: heartbeat 1.35s ease-in-out infinite;
}

.account-brand-loader .brand-mark {
  width: 54px;
  height: 54px;
  font-size: 1.05rem;
  box-shadow: 0 16px 36px rgba(95, 21, 4, .28);
}

.account-brand-loader strong {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 680;
}

.loading-text {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  font-weight: 680;
}

.loading-dots::after {
  content: "";
  animation: loadingDots 1.2s steps(4, end) infinite;
}

.account-formulas {
  position: absolute;
  inset: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, .72);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(1.05rem, 2.1vw, 2rem);
  font-weight: 700;
}

.account-formulas span:nth-child(even) {
  align-self: end;
  text-align: right;
}

.account-form-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(12px, 1.7vw, 18px);
  min-height: 0;
  overflow: visible;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 250, 236, .96), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: 0 12px 34px rgba(177, 69, 16, .12);
}

@keyframes heartbeat {
  0%, 40%, 100% {
    transform: scale(1);
  }
  16% {
    transform: scale(1.045);
  }
  26% {
    transform: scale(.985);
  }
}

@keyframes loadingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.auth-tabs button {
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 680;
}

.auth-tabs button.active {
  background: linear-gradient(90deg, var(--brand), #ff8a23);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  min-height: 0;
}

#loginPanel {
  max-width: none;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe5ad, #fff6de);
  color: var(--brand-strong);
  font-size: .8rem;
  font-weight: 680;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 18px;
}

.customer-form,
.signin-form {
  display: grid;
  gap: 9px;
  min-height: 0;
}

.account-page .signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 5px;
}

.account-page .signup-form label {
  gap: 2px;
  color: #234aa3;
  font-size: .69rem;
  font-weight: 680;
  line-height: 1.15;
}

.account-page .signup-form .form-grid {
  grid-column: 1 / -1;
  gap: 8px;
}

.account-page .signup-form input,
.account-page .signup-form select {
  min-height: 30px;
  padding: 4px 8px;
  color: #234aa3;
  font-size: .74rem;
  font-weight: 600;
}

.account-page .signup-form select {
  padding-right: 28px;
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  text-overflow: clip;
  white-space: nowrap;
}

.account-page .signup-form select option {
  color: #234aa3;
  font-weight: 600;
}

.account-page .signup-form input::placeholder {
  color: #426bb0;
  opacity: .82;
}

.account-form-panel h2,
.account-form-panel .eyebrow,
.account-form-panel .mandatory-note,
.account-form-panel .form-note {
  color: #234aa3;
}

.account-page .signup-form .scroll-select {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #234aa3 #e8efff;
}

.account-page .signup-location-row label {
  position: relative;
}

.account-page .signup-location-row label:focus-within {
  z-index: 60;
}

.account-page .signup-form .scroll-select.is-open {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  height: auto;
  max-height: 126px;
  overflow-y: scroll;
  border-color: #234aa3;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 74, 163, .22);
}

.account-page .signup-form .scroll-select::-webkit-scrollbar {
  width: 8px;
}

.account-page .signup-form .scroll-select::-webkit-scrollbar-track {
  background: #e8efff;
}

.account-page .signup-form .scroll-select::-webkit-scrollbar-thumb {
  border: 2px solid #e8efff;
  border-radius: 8px;
  background: #234aa3;
}

.account-page .signup-form input:focus::placeholder {
  color: transparent;
  opacity: 0;
}

.account-page .signup-form .captcha-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px;
}

.account-page .signup-form .captcha-code {
  width: 104px;
  height: 30px;
}

.account-page .signup-form .captcha-reset {
  min-height: 30px;
}

.account-page .signup-form .mandatory-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .68rem;
  line-height: 1.1;
}

.account-page .signup-form .form-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.signup-form .form-actions .primary-btn,
.signup-form .form-actions .secondary-btn {
  min-height: 34px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: .76rem;
}

.form-grid {
  display: grid;
  gap: 9px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.captcha-field {
  display: grid;
  gap: 8px;
}

.captcha-field label {
  display: grid;
  gap: 7px;
}

.captcha-challenge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-code {
  width: 132px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7dd;
  user-select: none;
}

.captcha-reset {
  min-width: 70px;
  padding-left: 10px;
  padding-right: 10px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
  font-weight: 560;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--brand-strong);
  font-weight: 620;
}

.mandatory-note {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 620;
}

.account-page input,
.account-page select,
.account-page textarea {
  min-height: 38px;
  padding-block: 8px;
}

.account-page .primary-btn,
.account-page .secondary-btn {
  min-height: 38px;
}

.customer-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff0cf, #fff7df);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, #ffd36a 30%, var(--surface))),
    var(--surface-strong);
}

.customer-panel h3 {
  margin: 0;
}

.verification-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.verification-list span {
  color: var(--muted);
  font-weight: 560;
}

.filters {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  max-height: calc(100vh - 112px);
  padding: 18px;
  overflow: hidden;
}

.panel-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading > div {
  min-width: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

fieldset {
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

fieldset label {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
  font-weight: 560;
}

fieldset input {
  min-height: auto;
  width: auto;
}

.checkbox-panel legend {
  padding: 0 6px;
  color: var(--brand-strong);
  font-weight: 680;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.checkbox-grid .check-row {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff6df, #ffffff);
  font-size: .9rem;
}

.catalog {
  min-width: 0;
}

.section-heading {
  margin-bottom: 18px;
}

.view-tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 620;
}

.view-tabs .active {
  background: linear-gradient(90deg, var(--brand), #ff8a23);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 245px;
  padding: 18px;
  background: linear-gradient(90deg, #ffe6ad, #ffffff);
  background:
    linear-gradient(90deg, color-mix(in srgb, #ffe0a3 56%, var(--surface)), color-mix(in srgb, var(--surface) 86%, transparent)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--category-bg);
  background-position: right -6px bottom -10px;
  background-repeat: no-repeat;
  background-size: min(82%, 300px) auto;
  opacity: .34;
  pointer-events: none;
}

.category-card::after {
  content: attr(data-formula);
  position: absolute;
  right: 16px;
  top: 68px;
  z-index: 0;
  max-width: 170px;
  color: rgba(143, 31, 18, .66);
  color: color-mix(in srgb, var(--brand-strong) 66%, transparent);
  font-size: 1.1rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: right;
  opacity: .58;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #df7f58;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow);
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fbe4d8;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand-strong);
  font-size: 22px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.formula-line {
  width: max-content;
  max-width: 100%;
  margin: -6px 0 0;
  padding: 5px 9px;
  border: 1px solid #efc29b;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 999px;
  background: #fff5df;
  background: color-mix(in srgb, var(--surface) 86%, #fff2c5);
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 680;
}

.count-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe0a6, #fff7dd);
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 660;
  white-space: nowrap;
}

.status-live {
  background: linear-gradient(90deg, #dff8dc, #f3fff1);
  color: #176423;
}

.status-expired {
  background: linear-gradient(90deg, #ffe0d9, #fff4ef);
  color: #9a2415;
}

.status-fulfilled {
  background: linear-gradient(90deg, #dcecff, #f3f8ff);
  color: #174d8f;
}

.category-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: .86rem;
  background: linear-gradient(90deg, #fff5dc, #ffffff);
}

.category-grid.compact .category-card {
  min-height: unset;
  grid-template-columns: 1fr;
}

.category-grid.compact .category-card ul li:nth-child(n+5) {
  display: none;
}

.supplier-section,
.results-section,
.compliance-page {
  margin: 0 clamp(22px, 4vw, 52px) clamp(22px, 4vw, 52px);
  padding: clamp(18px, 3vw, 28px);
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.catalogue-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(22px, 4vw, 52px) 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #c83219, #ffbe45);
  box-shadow: var(--shadow);
}

.catalogue-dashboard article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  background: linear-gradient(90deg, #fff3d2, #ffffff);
}

.catalogue-dashboard strong {
  color: var(--brand-strong);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.catalogue-dashboard span {
  color: var(--muted);
  font-weight: 620;
  line-height: 1.35;
}

.supplier-catalogue {
  margin: 0 clamp(22px, 4vw, 52px) 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.supplier-catalogue .supplier-section {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#catalogueTitle {
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 620;
  line-height: 1.08;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalogue-controls {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.catalogue-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalogue-note a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalogue-controls label {
  color: var(--muted);
  font-weight: 660;
}

.catalogue-compliance-field {
  min-width: 0;
}

.catalogue-compliance-field > span,
.rfq-multi-field > span {
  scroll-margin-top: 88px;
}

.supplier-table {
  min-width: 0;
  table-layout: fixed;
}

.supplier-table th,
.supplier-table td {
  height: 58px;
  padding: 10px 8px;
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}

.supplier-table th {
  padding: 9px 6px;
  color: var(--brand-strong);
  font-size: .66rem;
  letter-spacing: .025em;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.supplier-table td:first-child {
  color: var(--brand-strong);
  white-space: normal;
}

.supplier-table th:nth-child(1),
.supplier-table td:nth-child(1) {
  width: 8%;
}

.supplier-table th:nth-child(2),
.supplier-table td:nth-child(2) {
  width: 13%;
}

.supplier-table th:nth-child(3),
.supplier-table td:nth-child(3) {
  width: 12%;
}

.supplier-table th:nth-child(4),
.supplier-table td:nth-child(4),
.supplier-table th:nth-child(8),
.supplier-table td:nth-child(8) {
  width: 8%;
}

.supplier-table th:nth-child(5),
.supplier-table td:nth-child(5),
.supplier-table th:nth-child(6),
.supplier-table td:nth-child(6),
.supplier-table th:nth-child(9),
.supplier-table td:nth-child(9) {
  width: 10%;
}

.supplier-table th:nth-child(7),
.supplier-table td:nth-child(7) {
  width: 13%;
}

.supplier-table th:nth-child(10),
.supplier-table td:nth-child(10) {
  width: 8%;
}

.catalogue-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page {
  display: grid;
  gap: 18px;
  margin: 0 clamp(18px, 4vw, 52px) clamp(24px, 4vw, 52px);
}

.dashboard-heading {
  align-items: stretch;
  margin-bottom: 0;
}

.dashboard-heading > div {
  display: grid;
  align-content: center;
  gap: 6px;
}

.dashboard-heading .catalogue-note {
  margin: 0;
}

.dashboard-header-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-download-btn {
  min-height: 42px;
  white-space: nowrap;
}

.readonly-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.readonly-field span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 660;
  line-height: 1.2;
}

.readonly-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 248, 230, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  color: var(--brand-strong);
  font: inherit;
  font-size: .95rem;
  font-weight: 680;
  cursor: default;
}

.dashboard-value-box {
  width: min(100%, 260px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 246, 223, .94), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 246, 223, .94), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-kpis .readonly-field {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 246, 223, .94), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-kpis .readonly-field input {
  min-height: 46px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--brand-strong);
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-alert-kpi input {
  color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.dashboard-panel h3 {
  margin: 0;
  color: var(--brand-strong);
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-award-panel .dashboard-list {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff8e8, #ffffff);
}

.dashboard-award-row.is-fresh {
  border-left: 5px solid #26a269;
}

.dashboard-award-row.is-warning {
  border-left: 5px solid #f5a623;
}

.dashboard-award-row.is-overdue {
  border-left: 5px solid #d93b1f;
}

.presence-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: #aeb7c4;
  box-shadow: 0 0 0 2px rgba(174, 183, 196, .18);
  vertical-align: middle;
}

.presence-dot.is-online {
  background: #18a957;
  box-shadow: 0 0 0 3px rgba(24, 169, 87, .2);
}

.ticket-chat-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(25, 66, 139, .14);
  border-radius: 10px;
  background: rgba(255, 248, 232, .72);
}

.ticket-quick-actions,
.ticket-chat-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-action-chip {
  border: 1px solid rgba(223, 75, 31, .28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #153a78;
  background: #fff;
  cursor: pointer;
}

.ticket-chat-log {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
}

.ticket-chat-message {
  padding: 8px 10px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(25, 66, 139, .12);
}

.ticket-chat-message small {
  display: block;
  color: #66758d;
}

.ticket-chat-message p {
  margin: 5px 0 0;
}

.ticket-chat-input textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
}

.dashboard-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dashboard-row.is-urgent {
  border-color: rgba(217, 59, 31, .42);
  background: linear-gradient(90deg, #fff0e8, #ffffff);
}

.dashboard-row.is-warning {
  border-color: rgba(255, 138, 35, .46);
}

.dashboard-row-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-weight: 760;
}

.dashboard-row.is-urgent .dashboard-row-mark,
.dashboard-row.is-warning .dashboard-row-mark {
  align-self: center;
  background: var(--red);
  color: #fff;
}

.dashboard-row .row-actions {
  align-self: center;
  justify-content: flex-end;
}

.dashboard-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.dashboard-table-wrap {
  overflow: hidden;
}

.dashboard-history-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.dashboard-history-controls label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 660;
}

.dashboard-history-controls input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.catalogue-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.taxonomy-list {
  display: grid;
  gap: 10px;
}

.taxonomy-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff0c8, #ffffff);
  color: var(--muted);
  line-height: 1.4;
}

.taxonomy-list strong {
  color: var(--ink);
}

.compliance-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff0c8, #ffffff);
}

.supplier-card strong {
  font-size: 1rem;
}

.supplier-card span {
  color: var(--muted);
  line-height: 1.45;
}

.rfq-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.rfq-section {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 245, 218, .95), rgba(255, 255, 255, .9)),
    var(--surface);
}

.rfq-section::before,
.rfq-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.rfq-section::before {
  inset: 0;
  background: url("assets/hero-diagonal-orange.png") center / cover no-repeat;
  opacity: .16;
  mix-blend-mode: multiply;
}

.rfq-section::after {
  right: clamp(18px, 4vw, 58px);
  top: 116px;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  background: url("assets/hero-yellow-molecule.png") center / contain no-repeat;
  opacity: .34;
}

.rfq-section > * {
  position: relative;
  z-index: 1;
}

.rfq-heading {
  align-items: end;
  padding-bottom: 2px;
}

.rfq-heading > div {
  display: grid;
  gap: 2px;
}

.rfq-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 240, 200, .94), rgba(255, 255, 255, .96)),
    var(--surface);
  box-shadow: 0 10px 24px rgba(177, 69, 16, .08);
}

.rfq-card h3 {
  margin: 0;
  text-align: center;
}

.rfq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  text-align: center;
  font-size: .92rem;
}

.rfq-form-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  width: min(100%, 880px);
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 244, 214, .9), rgba(255, 255, 255, .96)),
    var(--surface);
  box-shadow: 0 12px 32px rgba(177, 69, 16, .12);
  overflow: hidden;
}

.rfq-form-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 179, 64, .28);
  border-radius: 8px;
  pointer-events: none;
}

.rfq-form-card::after {
  content: "C6H6  H2SO4  NaOH  CH3OH";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: rgba(120, 30, 18, .18);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
}

.rfq-form-card > * {
  position: relative;
  z-index: 1;
}

.rfq-page-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.rfq-page-form label,
.rfq-multi-field {
  display: grid;
  gap: 6px;
  color: #3a170f;
  font-size: .92rem;
  font-weight: 680;
}

.rfq-page-form input,
.rfq-page-form select,
.rfq-page-form textarea {
  min-height: 40px;
  color: #14213d;
  background-color: rgba(255, 255, 255, .96);
}

.rfq-page-form input::placeholder,
.rfq-page-form textarea::placeholder {
  color: #285f9f;
  opacity: 1;
}

.formula-field {
  position: relative;
}

.math-input {
  font-family: "Cascadia Mono", "Consolas", "Segoe UI", monospace;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 232, .92), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(200, 50, 25, .07) 31px 32px);
  color: #123f86;
}

.math-input::placeholder {
  color: #285f9f;
}

.rfq-notes-field,
.bulk-rfq-tools,
.rfq-form-actions,
.rfq-page-form .form-note {
  grid-column: 1 / -1;
}

.bulk-rfq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.bulk-upload-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff7e6, #ffe2a3);
  color: #7d2a17;
  font-weight: 680;
  cursor: pointer;
}

.bulk-upload-btn input {
  display: none;
}

.sap-invoice-sample {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 178, 62, .55);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 246, 222, .96), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.sap-invoice-sample::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/hero-diagonal-orange.png") center / 120% auto no-repeat;
  opacity: .12;
  mix-blend-mode: multiply;
}

.sap-invoice-sample > * {
  position: relative;
  z-index: 1;
}

.sap-ready-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 112, 31, .13);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-18deg);
  pointer-events: none;
  white-space: nowrap;
}

.sap-invoice-heading {
  align-items: center;
}

.sap-invoice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sap-invoice-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.sap-invoice-grid span,
.sap-invoice-head span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 680;
  text-transform: uppercase;
}

.sap-invoice-grid strong {
  color: #42170d;
  font-size: .96rem;
  overflow-wrap: anywhere;
}

.sap-invoice-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.sap-invoice-row {
  display: grid;
  grid-template-columns: .7fr 1.45fr 1.55fr .75fr .8fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
}

.sap-invoice-row:last-child {
  border-bottom: 0;
}

.sap-invoice-row span {
  padding: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sap-invoice-head span {
  background: linear-gradient(90deg, #fff0c8, #ffffff);
  color: #7d2a17;
}

.cas-lookup-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff7e6, #ffffff);
  color: var(--ink);
  font-size: .86rem;
}

.cas-lookup-panel[hidden] {
  display: none;
}

.cas-lookup-panel strong {
  color: var(--brand-strong);
}

.cas-lookup-panel dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.cas-lookup-panel dt {
  color: var(--muted);
  font-weight: 680;
}

.cas-lookup-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cas-popup {
  position: absolute;
  z-index: 80;
  top: var(--cas-popup-top, 88px);
  left: var(--cas-popup-left, auto);
  right: auto;
  display: grid;
  width: var(--cas-popup-width, min(420px, calc(100vw - 28px)));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(255, 249, 232, .96), rgba(255, 255, 255, .98)),
    var(--surface);
  box-shadow: 0 18px 48px rgba(71, 34, 18, .2);
  color: var(--ink);
}

body.cas-popup-open main {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.cas-popup[hidden] {
  display: none;
}

.cas-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff7e6;
  color: var(--brand-strong);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cas-popup-body {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  padding-right: 34px;
  padding-bottom: 44px;
}

.cas-popup-kicker {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cas-popup-body strong {
  color: var(--brand-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.cas-popup-body p,
.cas-popup-body dl {
  margin: 0;
}

.cas-popup-body p {
  color: var(--muted);
  font-size: .86rem;
}

.cas-popup-body dl {
  display: grid;
  grid-template-columns: minmax(74px, .24fr) minmax(0, .76fr);
  gap: 6px 12px;
  font-size: .86rem;
}

.cas-popup-body dt {
  color: var(--muted);
  font-weight: 700;
}

.cas-popup-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cas-popup-find {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 14px;
}

.cas-popup-find:disabled {
  cursor: wait;
  opacity: .68;
}

.rfq-form-actions {
  justify-content: end;
}

.spot-rfq-card {
  margin-bottom: 18px;
}

.spot-compliance-panel {
  grid-column: 1 / -1;
  margin: 0;
}

.onboarding-section {
  max-width: 980px;
  margin-inline: auto;
}

.onboarding-form-card {
  margin-bottom: 0;
}

.mandi-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 980px;
}

.mandi-landing h2,
.mandi-landing p {
  margin: 0;
}

.mandi-landing p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.supplier-table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.chem-name {
  display: grid;
  gap: 2px;
}

.chemical-listing-cell {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cas-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 242, 200, .76)),
    var(--surface);
  overflow: hidden;
}

.cas-thumb::before {
  content: "CAS";
  color: color-mix(in srgb, var(--brand-strong) 64%, transparent);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .04em;
}

.cas-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}

.cas-thumb.has-image::before {
  content: "";
}

.cas-thumb.is-empty {
  opacity: .72;
}

.chem-name small {
  color: var(--muted);
}

.compliance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliance-preview {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.more-tag {
  background: linear-gradient(90deg, #fff7df, #ffffff);
  color: #7d2a17;
}

.compliance-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  display: none;
  width: min(320px, 78vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.compliance-popover strong {
  display: block;
  margin-bottom: 8px;
  color: #3a170f;
}

.compliance-popover > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliance-preview:hover .compliance-popover,
.compliance-preview:focus .compliance-popover,
.compliance-preview:focus-within .compliance-popover {
  display: block;
}

.row-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff2d4, #ffd682);
  color: var(--brand-strong);
  font-weight: 660;
  cursor: pointer;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compliance-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
}

.compliance-band article {
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
}

.compliance-band p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-panel,
.authority-matrix {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 242, 212, .94), rgba(255, 255, 255, .98)),
    var(--surface);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  counter-reset: workflow;
}

.workflow-steps li {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 168px;
  padding: 14px;
  background: var(--surface);
  counter-increment: workflow;
}

.workflow-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe0a6, #fff7dd);
  color: var(--brand-strong);
  font-size: .72rem;
  font-weight: 660;
}

.workflow-steps strong {
  color: var(--ink);
}

.workflow-steps span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.authority-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff0c8, #ffffff);
}

.authority-card {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.authority-card:hover,
.authority-card:focus-visible {
  transform: translateY(-2px);
  border-color: #df7f58;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow);
  outline: none;
}

.authority-grid h3 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 1rem;
}

.authority-grid p,
.authority-grid span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.authority-grid span {
  display: block;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.cert-detail-page {
  display: grid;
  gap: 18px;
  margin: 0 clamp(22px, 4vw, 52px) clamp(22px, 4vw, 52px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cert-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cert-detail-card,
.cert-documents,
.cert-workflow,
.cert-application-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff0c8, #ffffff);
}

.cert-detail-card h3,
.cert-documents h2,
.cert-workflow h2,
.cert-application-form h2 {
  margin: 0;
  color: var(--brand-strong);
}

.cert-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cert-documents ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-documents li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.cert-estimate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-cost-card p {
  color: var(--ink);
}

.cert-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cert-form {
  display: grid;
  gap: 16px;
}

.cert-form.is-collapsed {
  display: none;
}

.cert-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.cert-form-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
}

.form-step-circle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe0a6;
  color: var(--brand-strong);
  font-size: .72rem;
  font-weight: 680;
}

.form-step-circle.complete {
  background: var(--brand);
  color: #fff;
}

.cert-form-grid input,
.cert-form-grid select,
.cert-form-grid textarea {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: #234aa3;
  font: inherit;
}

.cert-progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.cert-progress-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
}

.progress-ring {
  --progress: 0deg;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--brand) var(--progress), #ffe8bd 0);
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 680;
}

.cert-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cert-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cert-step.complete {
  border-color: #df8a62;
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: linear-gradient(90deg, #fff3d0, #ffffff);
}

.step-circle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffe0a6;
  color: var(--brand-strong);
  font-size: .8rem;
  font-weight: 680;
}

.cert-step.complete .step-circle {
  background: var(--brand);
  color: #fff;
}

.step-copy {
  display: grid;
  gap: 5px;
}

.step-copy h3 {
  margin: 0;
  font-size: .95rem;
}

.step-file {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.step-upload {
  grid-column: 1 / -1;
  justify-self: start;
  cursor: pointer;
}

.step-upload input {
  display: none;
}

.rfq-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 230, .94), rgba(255, 255, 255, .98)),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.rfq-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/hero-diagonal-orange.png") center / 120% auto no-repeat;
  opacity: .18;
  mix-blend-mode: multiply;
}

.rfq-dialog::backdrop {
  background: rgba(7, 14, 12, .62);
}

.rfq-dialog form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.rfq-dialog .panel-header {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rfq-multi-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 620;
}

.multi-check-dropdown {
  position: relative;
}

.multi-check-dropdown[open] {
  z-index: 8;
}

.multi-check-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #234aa3;
  cursor: pointer;
  list-style: none;
  font-weight: 560;
}

.multi-check-dropdown summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-check-dropdown summary::-webkit-details-marker {
  display: none;
}

.multi-check-dropdown summary::after {
  content: "v";
  color: var(--brand-strong);
  font-size: .8rem;
  font-weight: 760;
}

.multi-check-dropdown[open] summary::after {
  content: "^";
}

.multi-check-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.multi-check-close {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff2d4, #ffd682);
  color: var(--brand-strong);
  font-size: .82rem;
  font-weight: 760;
  cursor: pointer;
}

.multi-check-panel label {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 38px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff6df, #ffffff);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 560;
  overflow: hidden;
  white-space: nowrap;
}

.multi-check-panel label {
  text-overflow: ellipsis;
}

.multi-check-panel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.multi-check-panel label::before {
  content: "";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-strong);
  font-size: .82rem;
  font-weight: 760;
}

.multi-check-panel label.is-selected,
.multi-check-panel label:has(input:checked) {
  border-color: var(--brand);
  background: linear-gradient(90deg, #ffe9bd, #ffffff);
  color: var(--brand-strong);
}

.multi-check-panel label.is-selected::before,
.multi-check-panel label:has(input:checked)::before {
  content: "\2713";
  border-color: var(--brand);
  background: #fff0cf;
}

.rfq-dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    flex-basis: 100%;
    justify-content: center;
    overflow: visible;
    padding-top: 7px;
    border-top: 1px solid rgba(25, 66, 139, .12);
  }

  .main-nav a {
    width: 100%;
    min-height: 38px;
    white-space: normal;
    line-height: 1.15;
  }

  .hero-workspace {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-side-column {
    position: relative;
    top: auto;
    width: 100%;
    grid-template-rows: auto auto;
    transform: none;
  }

  .hero-main-column .search-panel {
    height: auto;
  }

  .transformation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel,
  .workspace,
  .customer-layout,
  .auth-shell,
  .catalogue-controls,
  .catalogue-two-col,
  .compliance-band,
  .cert-detail-grid,
  .cert-estimate-grid,
  .sap-invoice-grid,
  .mandi-landing,
  .workflow-steps,
  .rfq-layout,
  .rfq-page-form {
    grid-template-columns: 1fr;
  }

  .rfq-section::after {
    top: 220px;
    right: -42px;
    width: 240px;
    opacity: .2;
  }

  .filters {
    position: static;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogue-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-kpis,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-value-box {
    justify-self: stretch;
    width: 100%;
  }

  .dashboard-header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .dashboard-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
    min-height: 0;
  }

  .account-art-panel {
    min-height: 0;
    height: 190px;
  }

  .account-form-panel {
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
  }

  .hero,
  .hero-content {
    min-height: 500px;
  }

  .hero-molecule {
    width: min(48vw, 320px);
    opacity: .46;
  }

  .hero-molecule-diagonal {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .52;
  }

}

@media (min-width: 621px) and (max-width: 980px) {
  .account-page .auth-shell {
    grid-template-columns: minmax(210px, .44fr) minmax(500px, 1fr);
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
    overflow: hidden;
  }

  .account-page .account-art-panel {
    height: auto;
    min-height: 100%;
  }

  .account-page .account-form-panel {
    overflow: visible;
    padding: 12px;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
  }

  .top-actions {
    gap: 6px;
  }

  .auth-btn {
    min-height: 38px;
    padding: 0 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-workspace {
    grid-template-columns: 1fr;
  }

  .digital-transformation-section {
    min-height: 90px;
  }

  .digital-page-panel {
    height: auto;
    min-height: 0;
  }

  .hero-side-column::after {
    top: auto;
    right: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 205, .72) 12% 88%, transparent);
  }

  .digital-page-links {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(42px, 1fr));
  }

  .transformation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-page {
    padding: 8px;
  }

  .auth-shell {
    gap: 8px;
    height: auto;
    max-height: none;
    min-height: calc(100vh - 88px);
    min-height: calc(100dvh - 88px);
    overflow: visible;
  }

  .account-art-panel {
    height: 128px;
    min-height: 0;
  }

  .account-form-panel {
    max-height: none;
    overflow: visible;
    padding: 10px;
  }

  .account-formulas {
    inset: 16px;
    font-size: 1rem;
  }

  .account-brand-loader {
    gap: 6px;
    padding: 16px;
  }

  .account-brand-loader .brand-mark {
    width: 44px;
    height: 44px;
  }

  .account-brand-loader strong {
    font-size: 1.35rem;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-molecule {
    top: 58%;
    width: min(72vw, 300px);
    opacity: .28;
  }

  .hero-molecule-diagonal {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .38;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .captcha-field {
    grid-template-columns: 1fr;
  }

  .cas-popup {
    left: 10px;
    width: calc(100vw - 20px);
  }

  .captcha-challenge {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .insight-card {
    height: 154px;
    padding: 0;
    flex-basis: calc((100% - 24px) / 3);
  }

  .insight-card img {
    height: 100%;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .page-title {
    justify-items: start;
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
  }

  .page-title h1 {
    font-size: 1.28rem;
  }

  .catalogue-dashboard {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }

  .dashboard-page {
    margin-left: 16px;
    margin-right: 16px;
  }

  .dashboard-kpis,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dashboard-header-actions {
    flex-direction: column;
  }

  .dashboard-download-btn {
    align-self: stretch;
  }

  .dashboard-row .row-actions,
  .dashboard-row > .tag {
    grid-column: 2;
    justify-self: start;
  }

  .section-heading,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rfq-dialog .panel-header {
    align-items: center;
    flex-direction: row;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .multi-check-panel {
    grid-template-columns: 1fr;
  }

  .sap-invoice-row {
    grid-template-columns: 1fr;
  }

  .sap-invoice-head {
    display: none;
  }

  .supplier-table,
  .supplier-table thead,
  .supplier-table tbody,
  .supplier-table tr,
  .supplier-table td {
    display: block;
    width: 100%;
  }

  .supplier-table thead {
    display: none;
  }

  .supplier-table tr {
    padding: 10px;
    border-bottom: 1px solid var(--line);
  }

  .supplier-table td {
    display: grid;
    grid-template-columns: minmax(112px, 38%) 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 0;
    font-size: .86rem;
  }

  .supplier-table td::before {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 660;
    text-transform: uppercase;
  }

  .supplier-table td:nth-child(1)::before {
    content: "ID";
  }

  .supplier-table td:nth-child(2)::before {
    content: "Company";
  }

  .supplier-table td:nth-child(3)::before {
    content: "CIN / GSTIN";
  }

  .supplier-table td:nth-child(4)::before {
    content: "Location";
  }

  .supplier-table td:nth-child(5)::before {
    content: "Segment";
  }

  .supplier-table td:nth-child(6)::before {
    content: "Category";
  }

  .supplier-table td:nth-child(7)::before {
    content: "Chemical / CAS";
  }

  .supplier-table td:nth-child(8)::before {
    content: "Grade";
  }

  .supplier-table td:nth-child(9)::before {
    content: "Capacity";
  }

  .supplier-table td:nth-child(10)::before {
    content: "Compliance";
  }

  .supplier-table td:nth-child(11)::before {
    content: "As is Where is";
  }

  .supplier-table td:nth-child(12)::before {
    content: "Expiry by";
  }

  .supplier-table td:nth-child(13)::before {
    content: "Best price";
  }

  .supplier-table td:nth-child(14)::before {
    content: "Status";
  }

  .supplier-table td:nth-child(15)::before {
    content: "Views";
  }

  .supplier-table td:nth-child(16)::before {
    content: "Action";
  }

  .supplier-section,
  .supplier-catalogue,
  .cert-detail-page,
  .results-section,
  .compliance-page {
    margin-left: 16px;
    margin-right: 16px;
  }

  .cert-progress-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cert-form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    width: 42px;
  }

  .brand > span:last-child {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .auth-btn {
    padding: 0 8px;
    font-size: .72rem;
  }

  .profile-icon-btn {
    width: 38px;
    height: 38px;
  }
}

/* Supplier catalogue and onboarding */
.catalogue-title-row,
.onboarding-section-head,
.listing-toolbar,
.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalogue-title-row h1,
.onboarding-section-head h2,
.listing-toolbar h2 {
  margin: 0;
}

.catalogue-add-btn {
  flex: 0 0 auto;
}

.supplier-listings,
.onboarding-card {
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px solid rgba(25, 66, 139, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px rgba(27, 51, 91, .08);
}

.listing-toolbar {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 66, 139, .14);
}

.listing-count {
  color: #1c4fa3;
  font-weight: 700;
}

.listing-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: #53657f;
}

.listing-empty strong {
  color: #173e7a;
  font-size: 1.08rem;
}

.listing-table {
  width: 100%;
  border-collapse: collapse;
}

.listing-table th,
.listing-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(25, 66, 139, .14);
  text-align: left;
  vertical-align: top;
}

.listing-table th {
  color: #173e7a;
  background: #f1f6ff;
}

.onboarding-main {
  padding-bottom: 30px;
}

.onboarding-form {
  max-width: 1180px;
  margin: 0 auto;
}

.onboarding-card h2 {
  margin: 0 0 16px;
  color: #173e7a;
}

.supplier-master-compliance {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(25, 66, 139, .18);
}

.supplier-master-compliance h3 {
  margin: 0;
  color: #173e7a;
  font-size: 1rem;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.onboarding-grid label,
.supplier-item-row label {
  display: grid;
  gap: 6px;
  color: #173e7a;
  font-weight: 650;
}

.field-help {
  color: #60708a;
  font-size: .75rem;
  font-weight: 500;
}

#supplierSystemId[readonly] {
  color: #173e7a;
  background: #edf4ff;
  font-weight: 700;
  letter-spacing: 0;
}

.onboarding-grid input,
.onboarding-grid select,
.onboarding-grid textarea,
.supplier-item-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 10px;
  color: #102c59;
  background: #fff;
  font: inherit;
}

.onboarding-grid input:focus,
.onboarding-grid select:focus,
.onboarding-grid textarea:focus,
.supplier-item-row input:focus {
  border-color: #ed5a28;
  outline: 3px solid rgba(237, 90, 40, .14);
}

.onboarding-grid textarea {
  min-height: 76px;
  resize: vertical;
}

.onboarding-full {
  grid-column: 1 / -1;
}

.logo-preview-wrap {
  display: flex;
  align-items: end;
}

.logo-preview-wrap img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid #aebfd9;
  border-radius: 7px;
}

.onboarding-section-head p,
.onboarding-help {
  margin: 4px 0 0;
  color: #60708a;
}

.onboarding-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-item-actions button:disabled {
  opacity: .42;
  filter: grayscale(.35);
  cursor: not-allowed;
}

.supplier-item-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.supplier-item-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  padding: 48px 12px 12px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 7px;
  background: #f7faff;
}

.supplier-item-row .item-grade,
.supplier-item-row .item-delivery {
  grid-column: 1;
}

.expiry-field {
  display: grid;
  gap: 6px;
  color: #173e7a;
  font-weight: 650;
}

.expiry-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.supplier-item-row .expiry-na {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.supplier-item-row .expiry-na input {
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: #ed5a28;
}

.supplier-item-row input:disabled {
  color: #71819a;
  background: #edf1f6;
  cursor: not-allowed;
}

.supplier-item-row .free-sample-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.item-compliance-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  background: #fff;
}

.item-compliance-field legend {
  padding: 0 6px;
  color: #173e7a;
  font-weight: 700;
}

.item-compliance-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.item-compliance-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 6px;
  color: #173e7a;
  background: #f7faff;
  cursor: pointer;
}

.item-compliance-options label.is-disabled {
  opacity: .42;
  color: #738197;
  background: #edf1f5;
  cursor: not-allowed;
}

.supplier-item-row.item-compliance-missing .item-compliance-field {
  border-color: #c73620;
  box-shadow: 0 0 0 3px rgba(199, 54, 32, .12);
}

.onboarding-form .compliance-choice-grid input[type="checkbox"],
.onboarding-form .item-compliance-options input[type="checkbox"],
.onboarding-form .supplier-item-row .expiry-na input[type="checkbox"],
.onboarding-form .supplier-item-row .free-sample-field input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #8fa2bf;
  border-radius: 4px;
  color: #697a92;
  background: #fff;
  cursor: pointer;
}

.onboarding-form .compliance-choice-grid input[type="checkbox"]::before,
.onboarding-form .item-compliance-options input[type="checkbox"]::before,
.onboarding-form .supplier-item-row .expiry-na input[type="checkbox"]::before,
.onboarding-form .supplier-item-row .free-sample-field input[type="checkbox"]::before {
  content: "\2715";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.onboarding-form .compliance-choice-grid input[type="checkbox"]:checked,
.onboarding-form .item-compliance-options input[type="checkbox"]:checked,
.onboarding-form .supplier-item-row .expiry-na input[type="checkbox"]:checked,
.onboarding-form .supplier-item-row .free-sample-field input[type="checkbox"]:checked {
  border-color: #d84719;
  color: #fff;
  background: #ed5a28;
}

.onboarding-form .compliance-choice-grid input[type="checkbox"]:checked::before,
.onboarding-form .item-compliance-options input[type="checkbox"]:checked::before,
.onboarding-form .supplier-item-row .expiry-na input[type="checkbox"]:checked::before,
.onboarding-form .supplier-item-row .free-sample-field input[type="checkbox"]:checked::before {
  content: "\2713";
}

.item-remove-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 40px;
  border: 1px solid #d5a08f;
  border-radius: 7px;
  color: #a43117;
  background: #fff4ef;
  cursor: pointer;
  font-size: 1.25rem;
}

.compliance-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.compliance-choice-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 7px;
  color: #173e7a;
  background: #f7faff;
}

.compliance-choice-grid input {
  width: 18px;
  height: 18px;
  accent-color: #ed5a28;
}

.compliance-choice-grid label.is-disabled {
  opacity: .42;
  color: #738197;
  background: #edf1f5;
  cursor: not-allowed;
}

.onboarding-actions {
  margin: 0 24px;
  justify-content: flex-end;
}

.form-status {
  margin: 0 auto 0 0;
  color: #173e7a;
}

.form-status.success {
  padding: 10px 12px;
  border: 1px solid #71ad82;
  border-radius: 7px;
  background: #effaf2;
  color: #195d2d;
}

@media (max-width: 900px) {
  .onboarding-grid,
  .compliance-choice-grid,
  .item-compliance-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-remove-btn {
    justify-self: end;
  }
}

@media (max-width: 600px) {
  .catalogue-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .supplier-listings,
  .onboarding-card,
  .onboarding-actions {
    margin-left: 12px;
    margin-right: 12px;
  }

  .onboarding-grid,
  .compliance-choice-grid,
  .item-compliance-options,
  .supplier-item-row {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Surplus disposal */
.surplus-disposal-stack {
  display: grid;
  gap: 18px;
  margin: 0 24px;
}

.surplus-disposal-stack .rfq-management-card {
  margin: 0;
}

.surplus-compliance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.surplus-publish-status {
  margin: 18px 24px 0;
}

.surplus-dashboard-panel {
  margin-top: 18px;
}

.surplus-dashboard-heading {
  align-items: center;
}

.surplus-alert-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(25, 66, 139, .16);
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f6f9fd;
}

.surplus-alert-button {
  min-height: 42px;
}

.surplus-alert-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0 16px 14px;
  border: 1px solid rgba(25, 66, 139, .16);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #f6f9fd;
}

.surplus-placeholder-select:invalid {
  color: #8793a5;
}

.surplus-placeholder-select option:not([data-currency-placeholder]) {
  color: #102c59;
}

.surplus-quantity-uom {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(78px, .55fr);
  align-items: end;
  gap: 8px;
  max-width: 250px;
}

.surplus-quantity-uom label {
  display: grid;
  gap: 6px;
  color: #173e7a;
  font-weight: 650;
}

.dashboard-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-analysis-panel {
  margin: 0;
}

.dashboard-analysis-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workflow-analysis-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-analysis-metrics .readonly-field:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .dashboard-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dashboard-analysis-metrics,
  .workflow-analysis-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-analysis-metrics .readonly-field:last-child {
    grid-column: auto;
  }
}

.surplus-dashboard-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border: 1px solid rgba(25, 66, 139, .16);
  border-radius: 8px;
  overflow: hidden;
}

.surplus-dashboard-content > section {
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.surplus-dashboard-content > section + section {
  border-left: 1px solid rgba(25, 66, 139, .16);
}

.surplus-dashboard-content h4 {
  margin: 0 0 12px;
  color: #173e7a;
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .surplus-disposal-stack,
  .surplus-dashboard-content {
    grid-template-columns: 1fr;
  }

  .surplus-dashboard-content > section + section {
    border-top: 1px solid rgba(25, 66, 139, .16);
    border-left: 0;
  }

  .surplus-alert-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surplus-compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .surplus-disposal-stack {
    margin-left: 12px;
    margin-right: 12px;
  }

  .surplus-alert-form {
    grid-template-columns: 1fr;
  }

  .surplus-compliance-grid {
    grid-template-columns: 1fr;
  }
}

/* RFQ management */
.rfq-management-title,
.rfq-card-heading,
.rfq-management-actions,
.rfq-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rfq-management-title h1,
.rfq-management-card h2,
.rfq-card-heading h2 {
  margin: 0;
}

.rfq-management-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rfq-management-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 24px 28px;
}

.rfq-quotes-card {
  margin: 0 24px 28px;
}

.rfq-management-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(25, 66, 139, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(27, 51, 91, .08);
}

.rfq-management-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.rfq-management-form > label,
.rfq-price-modal > label {
  display: grid;
  gap: 6px;
  color: #173e7a;
  font-weight: 650;
}

.rfq-management-form input,
.rfq-management-form select,
.rfq-management-form textarea,
.rfq-price-modal input,
.rfq-price-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 10px;
  color: #102c59;
  background: #fff;
  font: inherit;
}

.rfq-management-form input:focus,
.rfq-management-form select:focus,
.rfq-management-form textarea:focus,
.rfq-price-modal input:focus,
.rfq-price-modal textarea:focus {
  border-color: #ed5a28;
  outline: 3px solid rgba(237, 90, 40, .14);
}

.rfq-management-form textarea,
.rfq-price-modal textarea {
  min-height: 78px;
  resize: vertical;
}

.rfq-management-full {
  grid-column: 1 / -1;
}

.rfq-management-form .rfq-toggle-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  background: #f7faff;
}

.rfq-toggle-field input,
.rfq-compliance-grid input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #8fa2bf;
  border-radius: 4px;
  color: #697a92;
  background: #fff;
  cursor: pointer;
}

.rfq-toggle-field input::before,
.rfq-compliance-grid input::before {
  content: "\2715";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.rfq-toggle-field input:checked,
.rfq-compliance-grid input:checked {
  border-color: #d84719;
  color: #fff;
  background: #ed5a28;
}

.rfq-toggle-field input:checked::before,
.rfq-compliance-grid input:checked::before {
  content: "\2713";
}

.rfq-compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.rfq-compliance-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 7px;
  color: #173e7a;
  background: #f7faff;
  cursor: pointer;
}

.rfq-compliance-grid label.is-disabled {
  opacity: .42;
  background: #edf1f5;
  cursor: not-allowed;
}

.rfq-management-card.is-disabled {
  border-style: dashed;
  opacity: .6;
}

.rfq-count-badge {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #174582;
  background: #edf4ff;
  font-size: .78rem;
  font-weight: 700;
}

.rfq-catalogue-table {
  max-height: 270px;
  margin-top: 14px;
  overflow: auto;
}

.rfq-catalogue-table table {
  width: 100%;
  border-collapse: collapse;
}

.rfq-catalogue-table th,
.rfq-catalogue-table td {
  padding: 9px;
  border-bottom: 1px solid rgba(25, 66, 139, .14);
  text-align: left;
  white-space: nowrap;
}

.rfq-catalogue-table th {
  position: sticky;
  top: 0;
  color: #173e7a;
  background: #f1f6ff;
}

.rfq-summary {
  margin-top: 14px;
  color: #52647f;
  line-height: 1.7;
}

.rfq-quote,
.rfq-alert {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 7px;
  color: #405572;
  background: #f7faff;
}

.rfq-alert {
  border-left: 4px solid #ef8a25;
  background: #fff9f2;
}

.rfq-json-output {
  width: 100%;
  min-height: 340px;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: 7px;
  color: #d9f7e4;
  background: #17243b;
  font-family: Consolas, monospace;
  font-size: .78rem;
  resize: vertical;
}

.rfq-price-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 31, 57, .55);
  backdrop-filter: blur(5px);
}

.rfq-price-backdrop[hidden],
#spotPriceBox[hidden] {
  display: none;
}

.rfq-price-modal {
  width: min(520px, 100%);
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(25, 66, 139, .25);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 31, 61, .28);
}

.rfq-price-modal h2 {
  margin: 0 0 16px;
  color: #173e7a;
}

.rfq-price-modal > label {
  margin-top: 12px;
}

.rfq-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 1050px) {
  .rfq-management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rfq-management-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rfq-management-actions {
    justify-content: flex-start;
  }

  .rfq-management-layout {
    margin-left: 12px;
    margin-right: 12px;
  }

  .rfq-management-form,
  .rfq-compliance-grid {
    grid-template-columns: 1fr;
  }
}

/* Site Admin user database */
.user-database-page {
  padding-bottom: 30px;
}

.user-database-heading,
.user-database-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.user-database-heading h1 {
  margin: 0;
}

.user-database-actions {
  flex: 0 0 auto;
}

.user-record-count {
  min-width: 104px;
  padding: 9px 12px;
  border: 1px solid rgba(25, 66, 139, .2);
  border-radius: 7px;
  color: #174582;
  background: #edf4ff;
  text-align: center;
  font-weight: 750;
}

.user-database-workspace {
  margin: 0 24px;
  border: 1px solid rgba(25, 66, 139, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(27, 51, 91, .08);
  overflow: hidden;
}

.user-database-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(25, 66, 139, .14);
  background: #f5f8fd;
}

.user-database-filters label {
  display: grid;
  gap: 6px;
  color: #173e7a;
  font-weight: 650;
}

.user-database-filters input,
.user-database-filters select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aebfd9;
  border-radius: 7px;
  padding: 10px;
  color: #102c59;
  background: #fff;
  font: inherit;
}

.user-database-filters input:focus,
.user-database-filters select:focus {
  border-color: #ed5a28;
  outline: 3px solid rgba(237, 90, 40, .14);
}

.user-database-table-wrap {
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.user-database-table {
  margin: 0;
}

.user-database-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf4ff;
}

.user-database-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.user-database-table tbody tr:hover {
  background: #fff5e9;
}

@media (max-width: 920px) {
  .user-database-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .user-database-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-database-workspace {
    margin-left: 12px;
    margin-right: 12px;
  }

  .user-database-filters {
    grid-template-columns: 1fr;
  }
}

.rfq-quote-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.rfq-quotes-card .rfq-quote-table-wrap {
  min-height: 0;
  max-height: 514px;
  overflow: auto;
}

.rfq-quotes-card.is-minimized .rfq-quote-table-wrap {
  max-height: 74px;
}

.rfq-quotes-card.is-minimized .rfq-quote-table tbody::before {
  content: "No records yet";
  display: table-row;
  height: 46px;
  color: #496388;
}

.rfq-quote-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.rfq-quote-table th,
.rfq-quote-table td {
  height: 46px;
  padding: 9px;
  border-bottom: 1px solid rgba(25, 66, 139, .14);
  text-align: left;
  overflow-wrap: anywhere;
}

.rfq-quote-table th {
  color: #173e7a;
  background: #f1f6ff;
}

.rfq-quote-table th:last-child,
.rfq-quote-table td:last-child {
  width: 108px;
  text-align: center;
}

.rfq-quote-table tr.is-empty {
  color: #8a98ab;
  background: #fbfcfe;
}

.rfq-quote-table .row-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.quote-details-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.quote-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.quote-details-grid label {
  display: grid;
  gap: 5px;
  color: #173e7a;
  font-weight: 650;
}

.quote-details-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b7c5d9;
  border-radius: 7px;
  padding: 9px;
  color: #17375f;
  background: #f5f8fc;
  font: inherit;
}

.quote-details-modal .form-status {
  margin-top: 14px;
}

.dashboard-award-panel {
  margin-top: 18px;
}

.dashboard-award-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.dashboard-cart-grid {
  margin-top: 18px;
}

/* SuperUser usage analysis */
.usage-analysis-layout {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  gap: 18px;
}

.usage-search-field {
  margin: 10px 0;
}

.usage-user-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.usage-user-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(25, 66, 139, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.usage-user-row:hover,
.usage-user-row:focus-visible,
.usage-user-row.active {
  border-color: rgba(223, 75, 31, .45);
  background: #fff6e6;
}

.usage-user-row strong {
  font-weight: 560;
}

.usage-user-row span {
  color: #667085;
  font-size: .82rem;
}

.usage-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.usage-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.usage-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.usage-report-grid h3 {
  margin: 0 0 10px;
  color: #334155;
  font-weight: 560;
}

.usage-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.usage-profile-grid label,
.usage-kpi-grid label {
  display: grid;
  gap: 5px;
  color: #667085;
}

.usage-profile-grid input,
.usage-kpi-grid input {
  min-height: 38px;
  border: 1px solid #b7c5d9;
  border-radius: 7px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #334155;
}

.usage-pie-wrap {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.usage-pie {
  width: 160px;
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 50%;
  background: conic-gradient(#174f9f 0 50%, #df4b1f 50% 100%);
  box-shadow: 0 12px 28px rgba(46, 52, 66, .12);
}

.usage-pie-legend {
  display: grid;
  gap: 9px;
  color: #334155;
}

.usage-pie-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.usage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.usage-dot.buy {
  background: #174f9f;
}

.usage-dot.sell {
  background: #df4b1f;
}

.usage-mini-table {
  max-height: 320px;
  overflow: auto;
}

/* Digital Transformation suite */
.digital-suite-main {
  display: grid;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 36px;
}

.digital-suite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .32fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(51, 65, 85, .16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 244, 218, .84)),
    url("assets/hero-diagonal-orange.png") center / min(900px, 110vw) auto repeat-y;
  box-shadow: 0 18px 46px rgba(46, 52, 66, .12);
}

.digital-suite-hero h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  color: #334155;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 540;
}

.digital-suite-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5565;
  font-size: 1.02rem;
  line-height: 1.65;
}

.digital-suite-region {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(223, 75, 31, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}

.digital-suite-region span,
.digital-suite-card span {
  color: #667085;
  font-size: .78rem;
  font-weight: 560;
  text-transform: uppercase;
}

.digital-suite-region strong {
  color: #334155;
  font-size: 1.15rem;
  font-weight: 560;
}

.digital-suite-region small {
  color: #667085;
}

.digital-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.digital-suite-card {
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(46, 52, 66, .1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.digital-suite-card:hover,
.digital-suite-card:focus-visible {
  border-color: rgba(223, 75, 31, .42);
  box-shadow: 0 18px 42px rgba(46, 52, 66, .14);
  transform: translateY(-2px);
}

.digital-suite-card h2 {
  margin: 0;
  color: #334155;
  font-size: 1.45rem;
  font-weight: 560;
}

.digital-suite-card p {
  margin: 0;
  color: #5f6f83;
  line-height: 1.6;
}

.digital-suite-card strong {
  align-self: end;
  color: var(--brand-strong);
  font-weight: 560;
}

/* Global typography polish */
.topbar,
.page-title,
.information-band,
.information-columns,
.superuser-gate,
.superuser-dashboard,
.contact-page,
.supplier-listings,
.onboarding-card,
.rfq-management-card,
.rfq-quotes-card,
.user-database-page,
.dashboard-panel,
.mandi-landing,
.cert-detail-card,
.cert-documents,
.cert-workflow,
.cert-application-form,
.quote-details-modal,
.admin-user-modal,
.cas-popup {
  color: var(--ink);
}

.page-title h1,
.information-band h2,
.information-columns h2,
.superuser-heading h1,
.superuser-summary-band h2,
.superuser-data-section h2,
.contact-page-title h1,
.contact-department h2,
.digital-access-state h1,
.catalogue-title-row h1,
.onboarding-section-head h2,
.listing-toolbar h2,
.onboarding-card h2,
.rfq-management-title h1,
.rfq-management-card h2,
.rfq-card-heading h2,
.user-database-heading h1,
.dashboard-panel h3,
.cert-detail-card h3,
.cert-documents h2,
.cert-workflow h2,
.cert-application-form h2,
.quote-details-modal h2,
.admin-user-modal h2 {
  color: #334155;
  font-family: var(--font-heading);
  font-weight: 560;
  letter-spacing: 0;
}

.main-nav a,
.auth-btn,
.country-dropdown summary,
.primary-btn,
.secondary-btn,
.row-btn,
.view-tabs button,
.superuser-tabs button,
.auth-tabs button,
.user-row-actions button,
.surplus-alert-button,
.catalogue-add-btn,
.rfq-management-actions button,
.rfq-modal-actions button {
  font-weight: 540;
}

label,
th,
.small,
.form-note,
.catalogue-note,
.listing-empty,
.dashboard-history-controls,
.cas-popup-body dt,
.cas-popup-body p,
.cas-popup-body dl,
.rfq-card h3 + p,
.rfq-card-heading p,
.ticket-chat-input textarea::placeholder {
  color: #667085;
}

input,
select,
textarea,
.readonly-field input,
.quote-details-grid input,
.rfq-management-form input,
.rfq-management-form select,
.rfq-management-form textarea,
.onboarding-grid input,
.onboarding-grid select,
.onboarding-grid textarea,
.supplier-item-row input,
.user-database-filters input,
.user-database-filters select,
.admin-user-form input,
.admin-user-form select {
  color: #304256;
  font-weight: 400;
}

input::placeholder,
textarea::placeholder,
select:invalid {
  color: #4f7cad;
}

table,
.listing-table,
.rfq-quote-table,
.user-database-table,
.resultTable {
  color: #344054;
}

.listing-table th,
.rfq-quote-table th,
.user-database-table th,
.resultTable th {
  color: #334155;
  font-weight: 560;
}

@media (max-width: 760px) {
  .usage-analysis-layout,
  .usage-report-grid,
  .usage-kpi-grid,
  .usage-profile-grid,
  .usage-pie-wrap {
    grid-template-columns: 1fr;
  }

  .usage-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-field-pair {
    grid-template-columns: 1fr;
  }

  .digital-suite-hero,
  .digital-suite-grid {
    grid-template-columns: 1fr;
  }

  .quote-details-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-award-row {
    grid-template-columns: 1fr;
  }

  .rfq-quotes-card {
    margin-left: 12px;
    margin-right: 12px;
  }
}

.seo-content {
  max-width: 1100px;
  margin: 32px auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #334155;
  box-shadow: 0 12px 28px rgba(46, 52, 66, .08);
}

.seo-content h1 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 30px;
  font-weight: 560;
}

.seo-content h2 {
  margin: 0 0 12px;
  color: #475569;
  font-size: 22px;
  font-weight: 520;
}

.seo-content p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.seo-content p:last-child {
  margin-bottom: 0;
}
/* Account creation success dialog */
.admin-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 36, 42, 0.34);
  backdrop-filter: blur(4px);
}

.admin-success-backdrop[hidden] {
  display: none;
}

.admin-success-modal {
  width: min(420px, 100%);
  border: 1px solid rgba(122, 16, 32, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(66, 27, 16, 0.22);
  padding: 24px;
  text-align: center;
}

.admin-success-modal h2 {
  margin: 0 0 10px;
  color: #7a1020;
  font-size: 1.28rem;
}

.admin-success-modal p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.5;
}

/* 2026-07-09: keep account actions reachable across browsers and viewport heights. */
body.account-page {
  overflow-y: auto;
}

.account-page .auth-page {
  align-items: start;
  min-height: calc(100dvh - 72px);
}

.account-page .auth-shell {
  height: auto;
  min-height: min(700px, calc(100dvh - 92px));
  max-height: none;
  overflow: visible;
}

.account-page .account-form-panel {
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-page .auth-panel.active {
  padding-bottom: 10px;
}

@media (max-width: 980px) {
  .account-page .auth-page {
    place-items: start stretch;
  }

  .account-page .auth-shell {
    min-height: auto;
    overflow: visible;
  }

  .account-page .account-form-panel {
    max-height: none;
    overflow: visible;
  }
}

/* 2026-07-09: visual Digital Transformation module cards. */
.digital-suite-card {
  grid-template-rows: 124px auto auto 1fr auto;
  overflow: hidden;
  padding: 0 0 22px;
}

.digital-suite-card img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-bottom: 1px solid rgba(51, 65, 85, .12);
}

.digital-suite-card span,
.digital-suite-card h2,
.digital-suite-card p,
.digital-suite-card strong {
  margin-inline: 22px;
}

.digital-suite-card strong {
  margin-top: auto;
}

@media (max-width: 760px) {
  .digital-suite-card {
    grid-template-rows: 112px auto auto 1fr auto;
  }

  .digital-suite-card img {
    height: 112px;
  }
}

/* 2026-07-09: crawler-friendly text block without changing the hero workflow. */
.seo-content {
  scroll-margin-top: 96px;
}

/* 2026-07-09: keep Digital Transformation links compact and single-line. */
.digital-page-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.digital-page-links a img {
  display: none;
}
