:root {
  --ink: #071b46;
  --ink-soft: #37517f;
  --line: #dbe5f4;
  --paper: #fbfdff;
  --card: rgba(255, 255, 255, 0.92);
  --blue: #0862d9;
  --blue-deep: #001f4d;
  --cyan: #05c7e7;
  --green: #1e9f68;
  --mint: #dff8ee;
  --shadow: 0 24px 70px rgba(12, 38, 80, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --concierge-width: 439px;
  --concierge-collapsed-width: 78px;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 0%, rgba(31, 148, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 64% 18%, rgba(14, 199, 231, 0.12), transparent 28rem),
    linear-gradient(130deg, #f7fbff 0%, #ffffff 43%, #edf5ff 100%);
}

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

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 34px 14px;
  border-bottom: 1px solid rgba(159, 177, 207, 0.35);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.brand small,
.profile-pill small {
  color: var(--ink-soft);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.user-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.icon-button,
.secondary-button,
.text-button,
.dot-button {
  border: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.icon-button svg,
.secondary-button svg,
.concierge-input svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-dot {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

a.profile-pill {
  color: var(--ink);
  text-decoration: none;
}

.profile-pill > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-deep);
  font-weight: 800;
}

.profile-pill strong {
  display: block;
  font-size: 14px;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #003a83, #0872e8);
  box-shadow: 0 16px 34px rgba(8, 98, 217, 0.22);
  font-weight: 900;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
  min-height: calc(100vh - 81px);
}

.category-index-page {
  min-height: calc(100vh - 81px);
}

.supplier-index-page {
  min-height: calc(100vh - 81px);
}

.category-index-page .library-panel {
  max-width: 1360px;
  margin: 0 auto;
}

.supplier-index-page .library-panel {
  max-width: 1360px;
  margin: 0 auto;
}

.category-index-page .category-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.supplier-search-strip {
  width: min(760px, calc(100% - 68px));
  grid-template-columns: minmax(0, 1fr);
}

.supplier-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  margin-right: 34px;
  margin-left: 34px;
}

.supplier-tile {
  cursor: pointer;
}

.placeholder-supplier-tile {
  cursor: default;
}

.placeholder-supplier-tile:hover {
  transform: none;
}

.supplier-tile-visual {
  aspect-ratio: 1 / 1;
  height: auto;
}

.supplier-tile-mark {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 25, 45, 0.44);
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.supplier-tile-body {
  display: grid;
  gap: 4px;
}

.supplier-tile-body small {
  display: block;
  color: #656d79;
  font-size: 12px;
  line-height: 1.35;
}

.supplier-detail-page {
  padding: 34px;
}

.supplier-detail-topline {
  margin-bottom: 16px;
}

.category-index-tile {
  min-height: 0;
}

.category-index-tile .category-visual {
  aspect-ratio: 1 / 1;
  height: auto;
}

.library-panel {
  padding: 30px 34px 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
}

.health-card {
  min-width: 290px;
  padding: 18px;
  border: 1px solid rgba(8, 98, 217, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(231, 244, 255, 0.88));
  box-shadow: var(--shadow);
}

.health-card span,
.health-card small {
  display: block;
  color: var(--ink-soft);
}

.health-card strong {
  display: block;
  margin: 5px 0;
  font-size: 20px;
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(17, 47, 90, 0.05);
}

.search-box svg {
  width: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.search-box input,
.concierge-input input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder,
.concierge-input input::placeholder {
  color: #8ca0c0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-weight: 800;
}

.secondary-button.ghost {
  color: var(--ink-soft);
  background: rgba(237, 245, 255, 0.55);
}

.ad-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  height: clamp(178px, 18vw, 220px);
  border: 1px solid rgba(159, 177, 207, 0.48);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 47, 90, 0.06);
}

.ad-banner-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ad-banner-link.clickable {
  cursor: pointer;
}

.ad-banner-link > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.ad-banner.fade .ad-banner-link > img,
.ad-banner.fade .ad-banner-brand-panel {
  opacity: 0.3;
}

.ad-banner-brand-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(170px, 238px) minmax(250px, 430px);
  align-items: center;
  gap: 18px;
  padding: 24px 86px 24px 28px;
  color: #fff;
  transition: opacity 180ms ease;
}

.ad-banner-brand-panel[hidden] {
  display: none;
}

.ad-banner-logo-card {
  display: grid;
  place-items: center;
  width: min(100%, 238px);
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.ad-banner-brand-logo {
  display: block;
  width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.ad-banner-brand-copy {
  display: grid;
  gap: 6px;
  max-width: 430px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(6, 20, 46, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.ad-banner-brand-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-banner-brand-copy strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.02;
}

.ad-banner-brand-copy span:last-child {
  max-width: 390px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.premium-ad-banner .ad-banner-link::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.premium-ad-keystone .ad-banner-link > img {
  object-position: center 10%;
}

.premium-ad-keystone .ad-banner-link::after {
  background: linear-gradient(90deg, rgba(6, 18, 43, 0.78), rgba(11, 47, 105, 0.46) 52%, rgba(6, 14, 28, 0.08));
}

.premium-ad-astor .ad-banner-link > img {
  object-position: center 50%;
}

.premium-ad-astor .ad-banner-link::after {
  background: linear-gradient(90deg, rgba(18, 13, 9, 0.76), rgba(85, 61, 35, 0.5) 54%, rgba(23, 18, 13, 0.1));
}

.premium-ad-rubio .ad-banner-link > img {
  object-position: center 46%;
}

.premium-ad-rubio .ad-banner-link::after {
  background: linear-gradient(90deg, rgba(252, 249, 240, 0.9), rgba(249, 244, 230, 0.72) 46%, rgba(251, 247, 235, 0.08));
}

.premium-ad-maxtonfox .ad-banner-link > img {
  object-position: center 50%;
}

.premium-ad-maxtonfox .ad-banner-link::after {
  background: linear-gradient(90deg, rgba(19, 19, 19, 0.82), rgba(105, 26, 25, 0.58) 48%, rgba(238, 56, 55, 0.05));
}

.premium-ad-astor .ad-banner-logo-card {
  width: min(100%, 230px);
}

.premium-ad-maxtonfox .ad-banner-logo-card {
  width: min(100%, 244px);
}

.premium-ad-rubio .ad-banner-logo-card {
  width: min(100%, 218px);
  background: rgba(255, 255, 255, 0.96);
}

.premium-ad-rubio .ad-banner-brand-logo {
  filter: brightness(0);
}

.premium-ad-rubio .ad-banner-brand-copy {
  color: #24332a;
  border-color: rgba(84, 95, 73, 0.18);
  background: rgba(255, 252, 242, 0.9);
  text-shadow: none;
}

.premium-ad-rubio .ad-banner-brand-eyebrow {
  color: #5b6d4f;
}

.premium-ad-astor .ad-banner-brand-copy {
  background: rgba(33, 24, 17, 0.72);
}

.premium-ad-maxtonfox .ad-banner-brand-copy {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(22, 22, 22, 0.72);
}

.ad-banner-controls {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(7, 27, 70, 0.72);
  backdrop-filter: blur(8px);
}

.ad-banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.ad-banner-dot.active {
  background: #fff;
}

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

h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.text-button {
  color: var(--blue);
  font-weight: 800;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(17, 47, 90, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(17, 47, 90, 0.13);
}

.category-visual {
  position: relative;
  height: 132px;
  background: var(--visual);
}

.category-visual::before {
  position: absolute;
  inset: 0;
  background: var(--pattern);
  content: "";
  opacity: 0.92;
}

.category-body {
  padding: 30px 16px 16px;
}

.category-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.category-body span {
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.product-load-status {
  display: flex;
  min-height: 46px;
  margin: 14px 0 4px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.product-load-status[hidden] {
  display: none;
}

.product-load-status:not(.has-more) .product-load-more {
  display: none;
}

.product-load-more {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  min-height: 146px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 38px rgba(17, 47, 90, 0.07);
  cursor: pointer;
}

.product-thumb {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 12px;
  background: var(--thumb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.product-thumb img,
.product-detail-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  object-fit: contain;
}

.product-thumb img.is-placeholder,
.product-detail-image img.is-placeholder {
  padding: 0;
  object-fit: cover;
}

.product-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.product-card small {
  color: var(--ink-soft);
}

.product-card-description {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #4f5a68;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.save-button {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
}

.save-button.saved {
  color: var(--blue);
  background: rgba(8, 98, 217, 0.09);
}

.product-card-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

.product-card-actions {
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
}

.dam-link {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #06406c;
  background: linear-gradient(135deg, #d9f5ff, #dff8ee);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dam-link.compact {
  min-height: 24px;
}

.project-add-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(8, 98, 217, 0.2);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.07);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.project-add-button:hover {
  color: #fff;
  background: linear-gradient(145deg, #003a83, #0872e8);
}

.product-action-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(55, 81, 127, 0.18);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(237, 245, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.product-action-link:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(8, 98, 217, 0.28);
}

.product-action-link.verify {
  color: #06406c;
  background: #d9f5ff;
  border-color: rgba(5, 199, 231, 0.28);
}

.product-action-link.verify:hover {
  color: #fff;
  background: #0862d9;
}

.product-action-link.danger {
  color: #8b1e1e;
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(254, 226, 226, 0.8);
}

.product-action-link.danger:hover {
  color: #fff;
  border-color: rgba(185, 28, 28, 0.72);
  background: #b91c1c;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}

.tag {
  padding: 4px 7px;
  border-radius: 7px;
  color: #17456c;
  background: #edf3fb;
  font-size: 11px;
  font-weight: 800;
}

.tag.green {
  color: #0c6840;
  background: var(--mint);
}

.tag.dam {
  color: #06406c;
  background: #d9f5ff;
}

.documents {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.product-detail-panel.open {
  display: block;
}

.product-detail-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 45, 0.28);
  backdrop-filter: blur(6px);
}

.product-detail-card {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(760px, calc(100vw - 48px));
  grid-template-rows: minmax(250px, 42vh) 1fr;
  overflow: hidden;
  border: 1px solid rgba(159, 177, 207, 0.5);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(3, 17, 45, 0.28);
}

.product-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.product-detail-image {
  position: relative;
  background: var(--thumb);
}

.product-detail-content {
  overflow: auto;
  padding: 26px 30px 30px;
}

.product-detail-content h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.product-detail-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.product-detail-content dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-content dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

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

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.trust-row div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 800;
}

.trust-row span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.08);
}

.concierge-panel {
  position: sticky;
  top: 81px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: calc(100vh - 81px);
  padding: 30px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 190, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 88% 72%, rgba(8, 98, 217, 0.4), transparent 16rem),
    linear-gradient(165deg, #001832 0%, #002b61 58%, #001d44 100%);
  transition: width 180ms ease, padding 180ms ease, min-width 180ms ease;
}

.global-concierge {
  position: fixed;
  top: 81px;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  width: var(--concierge-width);
  min-height: auto;
  flex-direction: column;
}

.page-concierge {
  display: flex;
  height: calc(100vh - 81px);
  min-height: 0;
  max-height: calc(100vh - 81px);
  flex-direction: column;
  align-self: start;
}

.page-concierge .concierge-header,
.page-concierge .assistant-switcher,
.global-concierge .concierge-header,
.global-concierge .assistant-switcher {
  flex: 0 0 auto;
}

.page-concierge .concierge-frame,
.global-concierge .concierge-frame {
  flex: 0 0 auto;
  height: 780px;
  min-height: 780px;
}

.page-concierge .concierge-frame iframe,
.global-concierge .concierge-frame iframe {
  min-height: 780px;
}

body.has-global-concierge .supplier-layout,
body.has-global-concierge .supplier-index-page,
body.has-global-concierge .paint-page,
body.has-global-concierge .projects-layout,
body.has-global-concierge .category-index-page {
  margin-right: var(--concierge-width);
  transition: margin-right 180ms ease;
}

body.has-global-concierge.concierge-collapsed .supplier-layout,
body.has-global-concierge.concierge-collapsed .supplier-index-page,
body.has-global-concierge.concierge-collapsed .paint-page,
body.has-global-concierge.concierge-collapsed .projects-layout,
body.has-global-concierge.concierge-collapsed .category-index-page {
  margin-right: var(--concierge-collapsed-width);
}

body.has-global-concierge.concierge-fullscreen .supplier-layout,
body.has-global-concierge.concierge-fullscreen .supplier-index-page,
body.has-global-concierge.concierge-fullscreen .paint-page,
body.has-global-concierge.concierge-fullscreen .projects-layout,
body.has-global-concierge.concierge-fullscreen .category-index-page {
  margin-right: 0;
}

body.concierge-fullscreen {
  overflow: hidden;
}

.concierge-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 80%, transparent);
}

.concierge-panel > * {
  position: relative;
}

.concierge-header,
.concierge-header > div {
  display: flex;
  align-items: center;
}

.concierge-header {
  justify-content: space-between;
  gap: 14px;
}

.concierge-header > div {
  gap: 10px;
}

.concierge-brand-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
}

.concierge-brand-button {
  display: block;
  max-width: min(220px, 100%);
  padding: 0;
  border: 1px solid rgba(219, 229, 244, 0.72);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.concierge-brand-button.active {
  border-color: rgba(142, 231, 255, 0.68);
  box-shadow: 0 12px 30px rgba(0, 15, 42, 0.24);
}

.concierge-brand-button .concierge-brand-logo {
  width: 100%;
}

.keystone-concierge {
  background:
    radial-gradient(circle at 78% 16%, rgba(0, 174, 239, 0.22), transparent 16rem),
    radial-gradient(circle at 8% 42%, rgba(46, 101, 180, 0.2), transparent 17rem),
    linear-gradient(160deg, #06152f 0%, #132c63 52%, #06101f 100%);
}

.keystone-concierge .concierge-brand-button .concierge-brand-logo {
  padding: 11px 12px;
}

.keystone-concierge .assistant-switcher {
  border-color: rgba(0, 174, 239, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.astor-concierge {
  background:
    radial-gradient(circle at 78% 16%, rgba(200, 145, 69, 0.24), transparent 16rem),
    radial-gradient(circle at 8% 42%, rgba(82, 68, 52, 0.32), transparent 17rem),
    linear-gradient(160deg, #191510 0%, #4a3825 52%, #0f0d0b 100%);
}

.astor-concierge .concierge-brand-button.active {
  border-color: rgba(200, 145, 69, 0.74);
  box-shadow: 0 12px 30px rgba(23, 16, 9, 0.32);
}

.astor-concierge .concierge-brand-button .concierge-brand-logo {
  padding: 12px 14px;
}

.astor-concierge .assistant-switcher {
  border-color: rgba(200, 145, 69, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.rubio-concierge {
  background:
    radial-gradient(circle at 78% 16%, rgba(176, 199, 112, 0.22), transparent 16rem),
    radial-gradient(circle at 8% 42%, rgba(201, 164, 97, 0.2), transparent 17rem),
    linear-gradient(160deg, #f4f1e8 0%, #d7c7a7 52%, #917f5e 100%);
}

.rubio-concierge .concierge-brand-button.active {
  border-color: rgba(65, 95, 61, 0.34);
  box-shadow: 0 12px 30px rgba(78, 61, 38, 0.22);
}

.rubio-concierge .concierge-brand-button .concierge-brand-logo {
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.rubio-concierge .assistant-switcher {
  border-color: rgba(65, 95, 61, 0.22);
  background: rgba(255, 255, 255, 0.48);
}

.rubio-concierge .concierge-controls {
  border-color: rgba(65, 95, 61, 0.24);
  background: rgba(255, 255, 255, 0.44);
}

.rubio-concierge .concierge-icon-button {
  color: #31593a;
}

.rubio-concierge .concierge-icon-button:hover,
.rubio-concierge .concierge-icon-button.active {
  color: #172617;
  background: rgba(255, 255, 255, 0.54);
}

.maxtonfox-concierge {
  background:
    radial-gradient(circle at 80% 18%, rgba(238, 56, 55, 0.32), transparent 15rem),
    radial-gradient(circle at 8% 42%, rgba(255, 255, 255, 0.14), transparent 17rem),
    linear-gradient(160deg, #151515 0%, #541919 54%, #171111 100%);
}

.maxtonfox-concierge .concierge-brand-button.active {
  border-color: rgba(238, 56, 55, 0.76);
  box-shadow: 0 12px 30px rgba(20, 9, 9, 0.32);
}

.maxtonfox-concierge .concierge-brand-button .concierge-brand-logo {
  padding: 12px 14px;
}

.maxtonfox-concierge .assistant-switcher {
  border-color: rgba(238, 56, 55, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.paint-desk-concierge {
  background:
    radial-gradient(circle at 80% 14%, rgba(5, 199, 231, 0.24), transparent 15rem),
    radial-gradient(circle at 12% 42%, rgba(122, 190, 255, 0.2), transparent 17rem),
    linear-gradient(160deg, #041631 0%, #082e67 52%, #02152f 100%);
}

.paint-desk-concierge .concierge-brand-button {
  max-width: min(250px, 100%);
  background: #fff;
}

.paint-desk-concierge .concierge-brand-button.active {
  border-color: rgba(5, 199, 231, 0.76);
  box-shadow: 0 14px 32px rgba(0, 15, 42, 0.32);
}

.paint-desk-concierge .concierge-brand-button .concierge-brand-logo {
  padding: 8px 12px;
  background: #fff;
}

.paint-desk-concierge .assistant-switcher {
  border-color: rgba(5, 199, 231, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.concierge-collapsed-mark {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #001c49, #003a83);
  box-shadow: 0 16px 34px rgba(0, 15, 42, 0.28);
}

.concierge-collapsed-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.concierge-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(142, 231, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.concierge-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #d9f5ff;
  background: transparent;
}

.concierge-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.concierge-icon-button:hover,
.concierge-icon-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

body:not(.concierge-collapsed):not(.concierge-fullscreen) .concierge-mode-ribbon,
body.concierge-collapsed .concierge-mode-collapsed,
body.concierge-fullscreen .concierge-mode-fullscreen {
  display: none;
}

.assistant-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid rgba(142, 231, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.assistant-switcher-button {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(219, 229, 244, 0.72);
  border-radius: 10px;
  color: #c5dcf8;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.78;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.assistant-switcher-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.assistant-switcher-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.assistant-switcher-button.active {
  color: var(--ink);
  background: #fff;
  border-color: rgba(142, 231, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 15, 42, 0.2);
  opacity: 1;
}

.assistant-switcher-button:hover {
  opacity: 1;
  border-color: rgba(142, 231, 255, 0.42);
}

.mini-mark,
.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(5, 199, 231, 0.48);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(0, 36, 82, 0.72);
  font-weight: 900;
}

.ai-tag {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.dot-button {
  color: #a9c4ea;
  font-size: 24px;
}

.concierge-subtitle {
  margin: 20px 0 18px;
  color: #bbd2ef;
  line-height: 1.55;
}

.concierge-frame {
  overflow: hidden;
  height: 780px;
  min-height: 780px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.concierge-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 780px;
  border: 0;
  background: transparent;
}

.paint-tools-frame {
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 255, 0.92)),
    #fff;
}

.paint-tools-panel {
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.paint-tools-hero {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(8, 98, 217, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(5, 199, 231, 0.14), transparent 46%),
    linear-gradient(180deg, #fff, #eef6ff);
}

.paint-tools-hero h2 {
  margin: 0;
  color: #062b60;
  font-family: var(--font-body);
  font-size: 24px;
  letter-spacing: 0;
}

.paint-tools-hero p:not(.eyebrow) {
  margin: 0;
  color: #4d627d;
  font-size: 13px;
  line-height: 1.5;
}

.paint-tool-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 98, 217, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 40, 76, 0.08);
}

.paint-tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paint-tool-heading h3 {
  margin: 0;
  color: #092c5f;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
}

.paint-colour-preview {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #4b8fb8;
  box-shadow: 0 8px 18px rgba(15, 42, 77, 0.18);
}

.paint-picker-wrap {
  display: grid;
  gap: 10px;
}

.paint-picker-plane {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  border: 1px solid rgba(8, 98, 217, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(var(--picker-hue, 205), 100%, 50%));
  cursor: crosshair;
  touch-action: none;
}

.paint-picker-target {
  position: absolute;
  left: 60%;
  top: 28%;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 16, 44, 0.65), 0 6px 14px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.paint-range-label,
.paint-colour-input-grid label,
.paint-lrv-grid label {
  display: grid;
  gap: 6px;
  color: #526a86;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.paint-range-label input {
  width: 100%;
  accent-color: #0862d9;
}

.paint-colour-input-grid,
.paint-lrv-grid {
  display: grid;
  gap: 8px;
}

.paint-colour-input-grid {
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
}

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

.paint-colour-input-grid input,
.paint-lrv-grid input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(8, 98, 217, 0.18);
  border-radius: 8px;
  color: #10233d;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.paint-tool-primary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #003a83, #0872e8);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(8, 98, 217, 0.2);
}

.paint-lrv-result {
  display: block;
  padding: 11px 12px;
  border: 1px solid rgba(8, 98, 217, 0.12);
  border-radius: 8px;
  color: #3c5570;
  background: #f6f9fd;
  font-size: 13px;
  font-weight: 850;
}

.paint-lrv-result.passes {
  border-color: rgba(13, 130, 91, 0.28);
  color: #0d5f45;
  background: #edf9f4;
}

.paint-lrv-result.fails {
  border-color: rgba(181, 83, 41, 0.28);
  color: #8f3c1f;
  background: #fff4ee;
}

body.concierge-collapsed .layout {
  grid-template-columns: minmax(0, 1fr) var(--concierge-collapsed-width);
}

body.concierge-collapsed .concierge-panel {
  width: var(--concierge-collapsed-width);
  min-width: var(--concierge-collapsed-width);
  padding: 18px 12px;
}

body.concierge-collapsed .concierge-header,
body.concierge-collapsed .concierge-header > div {
  flex-direction: column;
  justify-content: flex-start;
}

body.concierge-collapsed .concierge-panel .concierge-brand-logo,
body.concierge-collapsed .concierge-panel .concierge-subtitle,
body.concierge-collapsed .concierge-panel .assistant-switcher,
body.concierge-collapsed .concierge-panel .concierge-frame,
body.concierge-collapsed .concierge-panel .disclaimer {
  display: none;
}

body.concierge-collapsed .concierge-panel .concierge-collapsed-mark {
  display: grid;
}

body.concierge-collapsed .concierge-panel .concierge-controls {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.concierge-collapsed .concierge-panel .concierge-icon-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(142, 231, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

body.concierge-fullscreen .global-concierge,
body.concierge-fullscreen .page-concierge,
body.concierge-fullscreen .concierge-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  width: auto;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  max-height: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 22px;
  overflow: hidden;
}

body.concierge-fullscreen .concierge-header {
  max-width: 1280px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

body.concierge-fullscreen .assistant-switcher {
  width: min(430px, 100%);
  margin: 16px auto 0;
}

body.concierge-fullscreen .concierge-frame {
  width: min(1180px, 100%);
  height: auto;
  min-height: 0;
  margin: 18px auto 0;
}

body.concierge-fullscreen .concierge-frame iframe {
  min-height: 0;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  max-width: 84%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.message.bot {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(145deg, #0066e8, #0b78ff);
}

.message p {
  margin: 0;
  color: #fff;
  line-height: 1.45;
}

.message time {
  grid-column: 2;
  margin-top: 8px;
  color: #9fbde6;
  font-size: 12px;
  text-align: right;
}

.message.user time {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.concierge-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 42px;
}

.concierge-actions button,
.concierge-input button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.concierge-actions button {
  min-height: 48px;
}

.concierge-actions .ghost {
  color: #79b8ff;
  background: rgba(0, 70, 160, 0.24);
}

.concierge-input {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.concierge-input label {
  padding-left: 8px;
}

.concierge-input input {
  color: #fff;
}

.concierge-input button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.disclaimer {
  margin: 14px 0 26px;
  color: #8eacd2;
  font-size: 12px;
}

.chat-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-footer button {
  border: 0;
  color: #cde1ff;
  background: transparent;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.supplier-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 34px;
  transition: grid-template-columns 180ms ease, margin-right 180ms ease;
}

body.supplier-directory-collapsed .supplier-layout {
  grid-template-columns: 82px minmax(0, 1fr);
}

body.supplier-directory-collapsed.has-global-concierge .supplier-layout,
body.supplier-directory-collapsed.has-global-concierge.concierge-collapsed .supplier-layout {
  grid-template-columns: 82px minmax(0, 1fr);
}

.paint-page {
  padding: 24px 34px;
}

.auth-page {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  align-content: start;
  gap: 34px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: stretch;
}

.auth-intro,
.auth-panel,
.auth-note {
  border: 1px solid rgba(8, 98, 217, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.auth-intro {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: 42px;
  background:
    radial-gradient(circle at 12% 20%, rgba(5, 199, 231, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 243, 255, 0.9));
}

.auth-intro h1 {
  max-width: 620px;
}

.auth-intro p:not(.eyebrow) {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.auth-panel {
  padding: 24px;
}

.auth-panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-panel-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.admin-layout {
  display: grid;
  gap: 22px;
  padding: 24px 34px 42px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.admin-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
}

.admin-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-soft);
}

.admin-access-panel,
.admin-state,
.admin-panel,
.admin-metric {
  border: 1px solid rgba(8, 98, 217, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-access-panel {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 20px;
}

.admin-access-panel span,
.admin-metric span,
.admin-compact-metrics span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-access-panel strong {
  overflow-wrap: anywhere;
}

.admin-state {
  padding: 18px 20px;
}

.admin-state p {
  margin: 0;
}

.admin-state.denied {
  border-color: rgba(188, 65, 65, 0.25);
  background: rgba(255, 243, 243, 0.94);
}

.admin-state.error {
  border-color: rgba(188, 120, 25, 0.28);
  background: rgba(255, 248, 235, 0.94);
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.admin-metric {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 16px;
}

.admin-metric strong {
  font-size: 28px;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.admin-panel-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(17, 35, 64, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

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

.admin-compact-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(8, 98, 217, 0.1);
  border-radius: 8px;
  background: rgba(245, 249, 255, 0.88);
}

.admin-compact-metrics strong {
  color: var(--ink);
  font-size: 22px;
}

.admin-panel h3 {
  margin: 8px 0 0;
  font-size: 15px;
}

.admin-audit-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 35, 64, 0.07);
}

.admin-list a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.admin-list li > span:last-child {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.non-product-list li {
  align-items: start;
}

.non-product-list li > span:first-child,
.image-issue-list li > span:first-child {
  display: grid;
  gap: 4px;
}

@media (max-width: 1120px) {
  .admin-metrics {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .admin-grid-two,
  .admin-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-layout {
    padding: 18px;
  }

  .admin-metrics,
  .admin-compact-metrics {
    grid-template-columns: 1fr;
  }
}

.auth-panel-heading p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 750;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #fff;
  background: linear-gradient(145deg, #003a83, #0872e8);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 850;
}

.auth-form input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.auth-create-account {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-create-account span {
  color: var(--ink-soft);
  font-weight: 850;
}

.auth-create-account .secondary-button {
  width: 100%;
}

.auth-disclaimer {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(8, 98, 217, 0.14);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(237, 245, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.auth-message {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-weight: 800;
}

.auth-message.error {
  color: #b83232;
}

.auth-message.success {
  color: var(--green);
}

.auth-signed-in {
  display: grid;
  gap: 12px;
}

.auth-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 22px;
  color: var(--ink-soft);
  font-weight: 750;
}

.supplier-directory,
.supplier-detail {
  min-height: calc(100vh - 130px);
}

/* Visual refresh for public library surfaces. Concierge rail styles are intentionally untouched. */
body {
  background:
    radial-gradient(circle at 9% 4%, rgba(255, 255, 255, 0.95), transparent 24rem),
    linear-gradient(135deg, #faf8f3 0%, #ffffff 44%, #f4f7f9 100%);
}

.topbar {
  min-height: 84px;
  padding: 16px 34px 12px;
  border-bottom-color: rgba(20, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(31, 39, 55, 0.055);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand strong {
  font-family: var(--font-body);
  font-size: 21px;
  letter-spacing: 0;
}

.brand small,
.profile-pill small {
  color: #6c7280;
}

.main-nav {
  gap: 34px;
}

.main-nav a {
  padding: 18px 0;
  color: #1d2430;
  font-size: 14px;
  font-weight: 760;
}

.main-nav a.active::after {
  bottom: -14px;
  height: 2px;
  background: #0757c8;
}

.icon-button {
  border-color: rgba(17, 24, 39, 0.11);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(20, 28, 45, 0.06);
}

.profile-pill > span {
  background: #0b2248;
}

.primary-button {
  border-radius: 14px;
  background: #0757c8;
  box-shadow: 0 14px 30px rgba(7, 87, 200, 0.2);
}

.library-panel {
  padding: 0 0 24px;
}

.library-panel > .hero {
  position: relative;
  min-height: 430px;
  margin: 0 0 28px;
  padding: 72px clamp(34px, 5vw, 72px) 34px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.92) 31%, rgba(250, 248, 243, 0.28) 58%, rgba(250, 248, 243, 0.02) 100%),
    url("./assets/library-hero-architecture.png") right center / cover no-repeat;
}

.supplier-index-page .library-panel > .hero {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.92) 31%, rgba(250, 248, 243, 0.28) 58%, rgba(250, 248, 243, 0.02) 100%),
    url("./assets/suppliers-hero-architecture.png") right center / cover no-repeat;
}

.category-index-page .library-panel > .hero {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.92) 31%, rgba(250, 248, 243, 0.28) 58%, rgba(250, 248, 243, 0.02) 100%),
    url("./assets/categories-hero-architecture.png") right center / cover no-repeat;
}

.library-panel > .hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 94px;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0), rgba(250, 248, 243, 0.78));
  content: "";
  pointer-events: none;
}

.library-panel > .hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  color: #0757c8;
  letter-spacing: 0.12em;
}

.library-panel .hero h1 {
  max-width: 520px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.library-panel .hero p:not(.eyebrow) {
  max-width: 520px;
  color: #565f6d;
  font-size: 18px;
  line-height: 1.55;
}

.health-card {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-bottom: 14px;
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(30, 37, 54, 0.11);
  backdrop-filter: blur(14px);
}

.search-strip {
  width: min(840px, calc(100% - 68px));
  margin: -76px 34px 34px;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.search-box {
  min-height: 64px;
  border-color: rgba(20, 33, 54, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(30, 37, 54, 0.11);
}

.secondary-button {
  min-height: 64px;
  border-color: rgba(20, 33, 54, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(30, 37, 54, 0.08);
}

.ad-banner,
.section-heading,
.category-grid,
.featured-product-grid,
.product-grid,
.product-load-status,
.trust-row {
  margin-right: 34px;
  margin-left: 34px;
}

.ad-banner {
  border-color: rgba(20, 33, 54, 0.1);
  box-shadow: 0 16px 44px rgba(30, 37, 54, 0.08);
}

.section-heading {
  margin-top: 30px;
  margin-bottom: 16px;
}

.section-heading h2,
.paint-mode-panel h2,
.supplier-info-card h2,
.projects-hero h1,
.supplier-hero-card h1 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-heading h2 {
  font-size: 26px;
}

.section-heading p,
.product-card small,
.category-body span,
.documents,
.supplier-info-card dd,
.family-button span {
  color: #656d79;
}

.text-button {
  color: #0757c8;
  text-decoration: none;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(156px, 1fr));
  gap: 18px;
}

.category-card,
.product-card,
.supplier-info-card,
.family-button,
.supplier-list-card,
.auth-intro,
.auth-panel,
.auth-note,
.project-card {
  border-color: rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(30, 37, 54, 0.07);
}

.category-card:hover,
.product-card:hover,
.family-button:hover,
.supplier-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(30, 37, 54, 0.12);
}

.category-visual {
  height: 116px;
}

.category-index-tile .category-visual {
  aspect-ratio: 1 / 1;
  height: auto;
}

.category-body {
  padding: 14px 16px 16px;
}

.category-body strong {
  color: #20242c;
  font-size: 15px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.supplier-tile .supplier-tile-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
}

.product-meta {
  min-height: 188px;
  padding: 16px;
}

.product-card h3 {
  color: #20242c;
  font-size: 16px;
  line-height: 1.22;
}

.tags {
  margin: 12px 0 14px;
}

.tag {
  border-radius: 999px;
  color: #4f5a68;
  background: #f1f3f5;
  font-size: 10px;
}

.tag.green {
  color: #176348;
  background: #e5f5ec;
}

.tag.dam,
.dam-link,
.product-action-link.verify {
  color: #0d518b;
  background: #e6f3fb;
}

.project-add-button,
.product-action-link {
  min-height: 28px;
  border-radius: 999px;
}

.project-add-button {
  border-color: rgba(7, 87, 200, 0.18);
  color: #0757c8;
  background: #eef5ff;
}

.trust-row {
  border-color: rgba(20, 33, 54, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(30, 37, 54, 0.06);
}

.supplier-layout,
.paint-page,
.projects-layout,
.category-index-page {
  background: transparent;
}

.supplier-hero-card,
.projects-hero,
.paint-mode-panel {
  border-color: rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 238, 0.86));
  box-shadow: 0 16px 44px rgba(30, 37, 54, 0.08);
}

.supplier-avatar {
  border-radius: 12px;
  background: #0b2248;
}

.auth-page {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.98), rgba(250, 248, 243, 0.7)),
    url("./assets/library-hero-architecture.png") right center / cover no-repeat;
}

.auth-card {
  align-items: stretch;
}

.auth-intro {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.auth-intro h1 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.auth-tabs {
  border-radius: 8px;
  background: #f5f7f9;
}

.auth-tabs button,
.auth-form input {
  border-radius: 8px;
}

.auth-tabs button.active {
  background: #0757c8;
}

.supplier-directory {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transition: padding 180ms ease, min-width 180ms ease;
}

.supplier-directory-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid rgba(8, 98, 217, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.supplier-directory-toggle .expand-label {
  display: none;
}

body.supplier-directory-collapsed .supplier-directory {
  display: grid;
  min-width: 0;
  justify-items: center;
  padding: 14px 10px;
}

body.supplier-directory-collapsed .supplier-directory .directory-heading,
body.supplier-directory-collapsed .supplier-directory .search-box,
body.supplier-directory-collapsed .supplier-directory .supplier-list {
  display: none;
}

body.supplier-directory-collapsed .supplier-directory-toggle {
  width: 52px;
  min-height: 148px;
  margin-bottom: 0;
  padding: 0;
  border-radius: 18px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

body.supplier-directory-collapsed .supplier-directory-toggle .collapse-label {
  display: none;
}

body.supplier-directory-collapsed .supplier-directory-toggle .expand-label {
  display: inline;
}

.directory-heading h1 {
  margin-bottom: 8px;
  font-size: 44px;
}

.directory-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.search-box.compact {
  min-height: 48px;
  margin-bottom: 16px;
}

.supplier-list {
  display: grid;
  max-height: calc(100vh - 330px);
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.supplier-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.supplier-filter-actions .secondary-button {
  min-height: 42px;
  justify-content: center;
  padding: 0 12px;
  font-size: 12px;
}

.product-load-more[hidden] {
  display: none;
}

.category-stepper {
  display: grid;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid rgba(8, 98, 217, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(17, 47, 90, 0.06);
}

.category-stepper h2 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.subcategory-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-chip {
  display: grid;
  min-width: 138px;
  min-height: 56px;
  gap: 2px;
  align-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.subcategory-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.subcategory-chip span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.subcategory-chip.active {
  border-color: rgba(8, 98, 217, 0.55);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(8, 98, 217, 0.2);
}

.subcategory-chip.active span {
  color: rgba(255, 255, 255, 0.78);
}

.category-view-switch {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.category-view-switch button {
  min-width: 118px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.category-view-switch button.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(8, 98, 217, 0.22);
}

.category-supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.category-supplier-tile {
  position: relative;
  padding: 0;
}

.category-supplier-tile.excluded {
  opacity: 0.58;
}

.category-supplier-tile a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.category-supplier-tile .supplier-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.category-supplier-tile .supplier-tile-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}

.category-supplier-tile strong,
.category-supplier-tile small {
  white-space: normal;
}

.category-supplier-tile small {
  color: var(--ink-soft);
}

.supplier-list-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.supplier-list-card:hover,
.supplier-list-card.active {
  border-color: rgba(8, 98, 217, 0.28);
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 47, 90, 0.09);
}

.supplier-list-card > span,
.supplier-avatar {
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #05245a, #0b63d9);
  font-weight: 900;
}

.supplier-list-card > span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
}

.supplier-list-card strong,
.supplier-list-card small {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-filter-card {
  grid-template-columns: 42px minmax(0, 1fr);
}

.supplier-filter-card strong,
.supplier-filter-card small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.supplier-filter-card .supplier-toggle {
  grid-column: 2;
  width: fit-content;
  margin-top: 2px;
}

.supplier-list-card small {
  color: var(--ink-soft);
}

.supplier-filter-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.supplier-filter-card > span {
  grid-row: span 2;
}

.supplier-filter-card.excluded {
  opacity: 0.58;
}

.supplier-filter-card.included {
  border-color: rgba(8, 98, 217, 0.18);
}

.supplier-filter-card {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
}

.supplier-filter-card strong,
.supplier-filter-card small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.supplier-filter-card .supplier-toggle {
  grid-column: 2;
  grid-row: auto;
  width: fit-content;
  margin-top: 2px;
}

.supplier-toggle {
  grid-row: span 2;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(8, 98, 217, 0.2);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.supplier-toggle.excluded {
  border-color: rgba(55, 81, 127, 0.18);
  color: var(--ink-soft);
  background: rgba(237, 245, 255, 0.72);
}

.supplier-filter-card .supplier-toggle {
  grid-column: 2;
  grid-row: auto;
  width: fit-content;
  margin-top: 2px;
}

.supplier-detail {
  min-width: 0;
}

.supplier-empty {
  display: grid;
  min-height: 460px;
  place-content: center;
  padding: 50px;
  border: 1px dashed rgba(8, 98, 217, 0.28);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.supplier-empty h2 {
  font-size: 34px;
}

.supplier-empty.error {
  border-color: rgba(211, 80, 80, 0.32);
}

.supplier-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(8, 98, 217, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 8%, rgba(5, 199, 231, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 244, 255, 0.88));
  box-shadow: var(--shadow);
}

.supplier-hero-card.has-title-image {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) auto;
}

.supplier-title-image {
  min-height: 142px;
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(5, 22, 54, 0.04), rgba(5, 22, 54, 0.14)),
    var(--supplier-title-image) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.premium-supplier-detail {
  --premium-primary: #223f91;
  --premium-accent: #00aeef;
  --premium-dark: #111d3f;
  --premium-soft: #eef7fc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 252, 0.74) 54%, rgba(222, 241, 251, 0.84)),
    linear-gradient(135deg, rgba(34, 63, 145, 0.12), rgba(0, 174, 239, 0.14));
}

.premium-supplier-detail.premium-astor {
  --premium-primary: #8a6838;
  --premium-accent: #c89145;
  --premium-dark: #171310;
  --premium-soft: #f8f1e6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 241, 230, 0.76) 54%, rgba(232, 219, 199, 0.86)),
    linear-gradient(135deg, rgba(149, 115, 66, 0.16), rgba(58, 49, 40, 0.12));
}

.premium-supplier-detail.premium-rubio {
  --premium-primary: #31593a;
  --premium-accent: #9ab66b;
  --premium-dark: #172617;
  --premium-soft: #f4f1e8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 232, 0.76) 54%, rgba(226, 216, 194, 0.86)),
    linear-gradient(135deg, rgba(49, 89, 58, 0.1), rgba(190, 164, 116, 0.12));
}

.premium-supplier-detail.premium-maxtonfox {
  --premium-primary: #ee3837;
  --premium-accent: #f26f6b;
  --premium-dark: #181818;
  --premium-soft: #f8f2ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 238, 0.78) 54%, rgba(238, 224, 216, 0.86)),
    linear-gradient(135deg, rgba(238, 56, 55, 0.12), rgba(24, 24, 24, 0.08));
}

.premium-supplier-detail .supplier-detail-topline .text-button {
  color: var(--premium-primary);
}

.premium-supplier-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-color: rgba(0, 174, 239, 0.26);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 19, 46, 0.88), rgba(16, 42, 91, 0.68) 48%, rgba(5, 13, 27, 0.24)),
    var(--premium-banner) var(--premium-banner-position, center) / cover no-repeat;
  box-shadow: 0 22px 54px rgba(19, 44, 99, 0.22);
}

.premium-supplier-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 83% 26%, rgba(0, 174, 239, 0.2), transparent 16rem),
    linear-gradient(180deg, transparent 0%, rgba(5, 13, 27, 0.18) 100%);
  content: "";
}

.premium-supplier-hero > * {
  position: relative;
}

.premium-supplier-logo-frame {
  display: inline-flex;
  width: min(360px, 38vw);
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.premium-supplier-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.premium-supplier-hero .supplier-title-block {
  align-items: flex-start;
}

.premium-supplier-hero .eyebrow,
.premium-supplier-hero .supplier-title-block p:last-child {
  color: rgba(255, 255, 255, 0.84);
}

.premium-supplier-hero .supplier-stats div {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(3, 13, 28, 0.58);
  backdrop-filter: blur(12px);
}

.premium-supplier-hero .supplier-stats span {
  color: rgba(255, 255, 255, 0.76);
}

.premium-supplier-detail .supplier-enrichment-panel {
  border-color: color-mix(in srgb, var(--premium-accent), transparent 76%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--premium-soft), white 16%));
}

.premium-supplier-detail .supplier-enrichment-button,
.premium-supplier-detail .paint-mode-toggle button.active,
.premium-supplier-detail .family-button.active {
  background: var(--premium-primary);
}

.premium-supplier-detail .section-heading h2 {
  color: var(--premium-dark);
}

.premium-supplier-detail .family-button {
  border-color: color-mix(in srgb, var(--premium-primary), transparent 86%);
}

.supplier-title-block {
  display: flex;
  gap: 18px;
  align-items: center;
}

.supplier-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 22px;
  font-size: 24px;
}

.supplier-title-block h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 4vw, 56px);
}

.supplier-title-block p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.supplier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.supplier-stats {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  gap: 10px;
}

.supplier-stats div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.supplier-stats strong,
.supplier-stats span {
  display: block;
}

.supplier-stats strong {
  font-size: 24px;
}

.supplier-stats span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.supplier-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin: 16px 0 10px;
}

.supplier-info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(17, 47, 90, 0.06);
}

.supplier-info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.supplier-info-card dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
}

.supplier-info-card dt {
  color: var(--ink-soft);
  font-weight: 850;
}

.supplier-info-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.supplier-card-note {
  margin: -4px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.supplier-info-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.supplier-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 224px;
  overflow: auto;
}

.supplier-links a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.supplier-links span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-enrichment-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 999px;
  color: #17304d;
  background: #eef5ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.supplier-enrichment-chip.ready,
.supplier-enrichment-chip.confidence {
  color: #0b5a3a;
  background: #e8f7ef;
}

.supplier-enrichment-chip.partial {
  color: #795216;
  background: #fff5df;
}

.supplier-enrichment-chip.needs_review,
.supplier-enrichment-chip.no_clean_links_found,
.supplier-enrichment-chip.needs_collector {
  color: #8a2d2d;
  background: #fff0ee;
}

.supplier-enrichment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin: 16px 0 10px;
  padding: 20px;
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(30, 37, 54, 0.07);
}

.supplier-enrichment-panel.muted {
  grid-template-columns: 1fr;
  background: rgba(247, 248, 250, 0.9);
}

.supplier-enrichment-copy {
  min-width: 0;
}

.supplier-enrichment-topline,
.supplier-enrichment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.supplier-enrichment-badges {
  justify-content: flex-start;
}

.supplier-enrichment-panel h2 {
  margin: 4px 0 8px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.supplier-enrichment-panel p {
  color: var(--ink);
}

.supplier-enrichment-note + small {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.supplier-enrichment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.supplier-enrichment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(7, 87, 200, 0.18);
  border-radius: 8px;
  color: #fff;
  background: #0757c8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(7, 87, 200, 0.16);
}

.supplier-enrichment-button:hover {
  background: #0649aa;
}

.supplier-related-brand-group {
  margin: 14px 0 16px;
}

.supplier-related-brand-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.supplier-related-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-related-brand-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #0757c8;
  border-radius: 8px;
  color: #fff;
  background: #0757c8;
  box-shadow: 0 8px 18px rgba(7, 87, 200, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.supplier-related-brand-button:hover {
  border-color: #043f99;
  background: #043f99;
}

.supplier-enrichment-empty-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.supplier-enrichment-note {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.supplier-enrichment-source-card {
  display: grid;
  align-items: stretch;
  min-width: 0;
}

.supplier-enrichment-hero-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(5, 22, 54, 0.06), rgba(5, 22, 54, 0.16)),
    var(--enrichment-hero, linear-gradient(135deg, #f2f5f8, #dbe5ed));
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.supplier-enrichment-hero-preview span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 8px;
  color: #17304d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  font-weight: 900;
}

.family-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.family-button-grid.collapsed {
  max-height: 76px;
  overflow: hidden;
}

.family-button-grid.expanded {
  max-height: none;
}

.family-button {
  max-width: 280px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  box-shadow: 0 10px 28px rgba(17, 47, 90, 0.05);
}

.family-button.active,
.family-button:hover {
  border-color: rgba(8, 98, 217, 0.42);
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
}

.family-button strong,
.family-button span {
  display: block;
}

.family-button span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.colour-range-button {
  position: relative;
  padding-left: 48px;
}

.colour-range-swatch {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(20, 33, 54, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(0, 0, 0, 0.1)),
    var(--colour);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.52);
}

.colour-range-note {
  margin: -6px 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.child-supplier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.child-supplier-tile {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  min-height: 122px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--card);
  text-align: left;
  box-shadow: 0 14px 38px rgba(17, 47, 90, 0.07);
}

.child-supplier-tile:hover {
  border-color: rgba(8, 98, 217, 0.42);
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
}

.child-supplier-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 96px;
  place-items: center;
  border-radius: 12px;
  background: var(--visual);
}

.child-supplier-visual::after {
  position: absolute;
  inset: 0;
  background: var(--pattern);
  content: "";
}

.child-supplier-visual span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #17304d;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.child-supplier-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.child-supplier-body strong,
.child-supplier-body small {
  display: block;
}

.child-supplier-body small {
  color: var(--ink-soft);
}

.paint-mode-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(8, 98, 217, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 6% 10%, rgba(5, 199, 231, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.88));
  box-shadow: 0 16px 38px rgba(17, 47, 90, 0.07);
}

.paint-mode-panel h2 {
  margin-bottom: 0;
}

.paint-mode-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  min-width: min(100%, 320px);
}

.deco-catalogue-toggle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paint-mode-toggle button {
  min-width: 150px;
  padding: 13px 16px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

.paint-mode-toggle button.active {
  color: #fff;
  background: linear-gradient(145deg, #003a83, #0872e8);
  box-shadow: 0 12px 28px rgba(8, 98, 217, 0.24);
}

.paint-mode-toggle span {
  margin-left: 6px;
  opacity: 0.72;
}

.colour-search-row,
.product-search-row {
  margin-bottom: 16px;
}

.rubio-filter-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.rubio-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rubio-filter-group button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.rubio-filter-group.compact button {
  min-height: 30px;
  padding: 6px 10px;
}

.rubio-filter-group button.active {
  border-color: #0757c8;
  background: #0757c8;
  color: #fff;
}

.colour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.colour-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(17, 47, 90, 0.07);
}

.colour-swatch {
  height: 116px;
  background: var(--colour);
}

.colour-card.has-image-swatch .colour-swatch {
  background: #edf3fb;
}

.colour-swatch-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.colour-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.colour-card h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.colour-card small {
  color: var(--ink-soft);
}

.colour-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.colour-card dl div,
.colour-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.colour-card dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.colour-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
}

.estimated-lrv-marker {
  margin-left: 2px;
  color: #0757c8;
  font-size: 10px;
  font-weight: 950;
}

.colour-lrv-note {
  margin: -4px 0 0;
  color: #66758b;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.colour-card-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.colour-card-footer {
  flex-wrap: wrap;
  align-items: center;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.colour-card-supplier-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 12px;
  border: 1px solid #0757c8;
  border-radius: 8px;
  color: #fff;
  background: #0757c8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.colour-card-supplier-button:hover {
  border-color: #043f99;
  background: #043f99;
}

.supplier-products {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.external-link {
  color: var(--blue);
  text-decoration: none;
}

.projects-layout {
  padding: 34px;
}

.projects-view {
  max-width: 1180px;
  margin: 0 auto;
}

.projects-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 32px;
  border: 1px solid rgba(159, 177, 207, 0.48);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 18%, rgba(5, 199, 231, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.9));
  box-shadow: var(--shadow);
}

.projects-hero h1,
.project-detail-hero h1 {
  max-width: 820px;
  margin-bottom: 10px;
}

.project-link-button {
  width: fit-content;
  margin-top: 12px;
}

.project-empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 42px;
  border: 1px dashed rgba(8, 98, 217, 0.28);
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.project-empty-state h2 {
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(159, 177, 207, 0.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(5, 199, 231, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 255, 0.92));
  box-shadow: 0 18px 45px rgba(17, 47, 90, 0.08);
}

.project-card.is-default-project {
  border-color: rgba(8, 98, 217, 0.32);
  background:
    radial-gradient(circle at 86% 18%, rgba(5, 199, 231, 0.24), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(227, 241, 255, 0.94));
}

.project-card::before {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(8, 98, 217, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(8, 98, 217, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(8, 98, 217, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
}

.project-card a {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.project-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.project-card h2 {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.project-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.project-detail-hero {
  align-items: stretch;
}

.project-back-link {
  display: inline-flex;
  margin-bottom: 16px;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-ai-placeholder {
  display: grid;
  min-width: 300px;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(8, 98, 217, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 199, 231, 0.22), transparent 8rem),
    linear-gradient(145deg, #001832, #00306e);
  color: #fff;
}

.project-ai-placeholder span {
  color: #8ee7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.project-detail-meta div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.project-detail-meta dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-detail-meta dd {
  margin: 6px 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.project-info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.project-info-panel div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(31, 39, 55, 0.05);
}

.project-info-panel div.wide {
  grid-column: 1 / -1;
}

.project-info-panel dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-info-panel dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.project-info-panel .muted {
  color: #8a9ab0;
  font-weight: 750;
}

.project-products {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.project-product-card {
  min-height: 156px;
}

.project-product-sections {
  display: grid;
  gap: 18px;
}

.project-product-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(159, 177, 207, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(30, 37, 54, 0.06);
}

.project-product-section.is-empty {
  background: rgba(255, 255, 255, 0.62);
}

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

.project-product-section header span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-product-section header h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.project-product-section header strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(237, 245, 255, 0.92);
  font-size: 12px;
}

.project-section-empty {
  padding: 16px;
  border: 1px dashed rgba(159, 177, 207, 0.62);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(245, 248, 252, 0.72);
  font-weight: 800;
}

.project-section-note {
  padding: 13px 14px;
  border: 1px solid rgba(8, 98, 217, 0.16);
  border-radius: 10px;
  color: #37517f;
  background: rgba(237, 245, 255, 0.8);
}

.project-section-note strong {
  display: block;
  color: #172033;
  font-size: 13px;
  font-weight: 760;
}

.project-section-note p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.project-schedules {
  display: grid;
  gap: 16px;
}

.project-schedule-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(159, 177, 207, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(30, 37, 54, 0.06);
}

.project-schedule-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-schedule-card header span {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-schedule-card header h3 {
  margin: 4px 0 0;
  color: #172033;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 680;
  line-height: 1.12;
}

.project-schedule-card header p {
  margin: 6px 0 0;
  color: #5d6b7e;
  font-size: 13px;
  font-weight: 620;
}

.project-schedule-card header strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(237, 245, 255, 0.92);
  font-size: 12px;
}

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

.project-schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(210, 220, 233, 0.9);
  border-radius: 12px;
  background: #fff;
}

.project-schedule-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.project-schedule-table th,
.project-schedule-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(226, 234, 244, 0.92);
  text-align: left;
  vertical-align: top;
}

.project-schedule-table th {
  color: #5d6b7e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-schedule-table td {
  color: #24324a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.project-schedule-table td strong,
.project-schedule-table td span {
  display: block;
}

.project-schedule-table td span {
  margin-top: 3px;
  color: #68788c;
  font-size: 12px;
  font-weight: 620;
}

.project-schedule-table .muted {
  color: #8a9ab0;
}

.schedule-thumb {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(210, 220, 233, 0.95);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef4fb, #c9d7e8);
}

.schedule-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-thumb.is-empty {
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), transparent 48%),
    linear-gradient(135deg, #eef4fb, #c9d7e8);
}

.palette-source-tag {
  color: #0757c8;
  background: rgba(8, 98, 217, 0.08);
}

.projects-layout {
  font-size: 14px;
  line-height: 1.45;
}

.projects-layout .section-heading {
  align-items: flex-end;
  margin-top: 28px;
  margin-bottom: 12px;
}

.projects-layout .section-heading h2,
.projects-layout .projects-hero h1,
.projects-layout .project-card h2,
.projects-layout .project-schedule-card header h3,
.projects-layout .project-product-section header h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.projects-layout .section-heading h2 {
  margin-bottom: 4px;
  color: #172033;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.15;
}

.projects-layout .section-heading p,
.projects-layout .projects-hero p,
.projects-layout .project-card p,
.projects-layout .project-info-panel dd,
.projects-layout .project-section-empty {
  color: #5d6b7e;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.projects-layout .projects-hero {
  gap: 22px;
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 14px;
}

.projects-layout .projects-hero h1 {
  max-width: 720px;
  margin-bottom: 8px;
  color: #172033;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 680;
  line-height: 1.02;
}

.projects-layout .eyebrow,
.projects-layout .project-info-panel dt,
.projects-layout .project-product-section header span,
.projects-layout .project-ai-placeholder span {
  color: #0757c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.projects-layout .primary-button,
.projects-layout .secondary-button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

.resources-page {
  width: min(1440px, calc(100% - 68px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

body.has-global-concierge .resources-page {
  width: auto;
  max-width: 1440px;
  margin-right: calc(var(--concierge-width) + 34px);
  margin-left: 34px;
}

body.has-global-concierge.concierge-collapsed .resources-page {
  margin-right: calc(var(--concierge-collapsed-width) + 34px);
}

body.has-global-concierge.concierge-fullscreen .resources-page {
  margin-right: 34px;
}

.resources-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(159, 177, 207, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88)),
    url("./assets/library-hero-architecture.png") center / cover;
  box-shadow: 0 18px 52px rgba(12, 38, 80, 0.09);
}

.resources-hero h1 {
  margin: 8px 0 12px;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
}

.resources-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.resources-section {
  margin-top: 56px;
}

.resources-page .section-heading {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(159, 177, 207, 0.42);
}

.resources-page .section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}

.resources-page .section-heading p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.design-atlas-tile {
  grid-column: span 3;
}

.design-atlas-tile img {
  aspect-ratio: 48 / 10;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
}

.design-atlas-tile .resource-tile-body {
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  column-gap: 22px;
  align-items: end;
}

.design-atlas-tile .resource-tile-body .eyebrow {
  grid-column: 1 / -1;
}

.design-atlas-tile .resource-tile-body strong {
  font-size: 28px;
}

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

.resource-tile {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(159, 177, 207, 0.46);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(12, 38, 80, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-tile:hover {
  border-color: rgba(8, 98, 217, 0.48);
  box-shadow: 0 20px 44px rgba(12, 38, 80, 0.13);
  transform: translateY(-2px);
}

.resource-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3f7fc;
}

.guide-tile img {
  object-fit: contain;
  padding: 34px;
}

.resource-tile-body {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.resource-tile-body .eyebrow {
  margin: 0;
  font-size: 11px;
}

.resource-tile-body strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.resource-tile-body span:last-child {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.ai-tool-tile img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 22px;
  background: #fff;
}

.association-reference-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.association-reference-tile .resource-tile-body strong {
  font-size: 21px;
}

.association-reference-tile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.resource-tile-disabled {
  cursor: default;
  opacity: 0.68;
}

.resource-tile-disabled:hover {
  border-color: rgba(159, 177, 207, 0.46);
  box-shadow: 0 14px 34px rgba(12, 38, 80, 0.08);
  transform: none;
}

.support-page .resources-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.9)),
    url("./assets/suppliers-hero-architecture.png") center / cover;
}

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

@media (max-width: 980px) {
  .resources-page {
    width: min(100% - 32px, 780px);
    padding-top: 24px;
  }

  .resources-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .design-atlas-tile {
    grid-column: span 2;
  }

  .design-atlas-tile img {
    aspect-ratio: 16 / 10;
  }

  .resource-tile-grid,
  .association-reference-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .resources-page {
    width: min(100% - 24px, 520px);
  }

  body.has-global-concierge .resources-page,
  body.has-global-concierge.concierge-collapsed .resources-page {
    width: min(100% - 24px, 520px);
  }

  .resources-hero h1 {
    font-size: 42px;
  }

  .resources-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .design-atlas-tile {
    grid-column: span 1;
  }

  .design-atlas-tile .resource-tile-body {
    grid-template-columns: 1fr;
  }

  .resource-tile-grid,
  .association-reference-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.projects-layout .project-ai-placeholder {
  min-width: 280px;
  padding: 22px;
  border-radius: 12px;
}

.projects-layout .project-ai-placeholder strong {
  max-width: 260px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.projects-layout .project-info-panel {
  gap: 10px;
  margin-bottom: 24px;
}

.projects-layout .project-info-panel div,
.projects-layout .project-product-section,
.projects-layout .project-section-empty {
  border-radius: 10px;
}

.projects-layout .project-info-panel div {
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(30, 37, 54, 0.045);
}

.projects-layout .project-info-panel dd {
  margin-top: 5px;
  color: #172033;
}

.projects-layout .project-info-panel .muted {
  color: #8b97a8;
  font-weight: 620;
}

.projects-layout .project-product-sections {
  gap: 14px;
}

.projects-layout .project-product-section {
  gap: 12px;
  padding: 14px;
}

.projects-layout .project-product-section header h3 {
  margin-top: 3px;
  color: #172033;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.15;
}

.projects-layout .project-product-section header strong {
  padding: 6px 9px;
  color: #37517f;
  font-size: 11px;
  font-weight: 760;
}

.projects-layout .project-section-empty {
  padding: 12px 14px;
}

.projects-layout .product-card h3 {
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
}

.projects-layout .product-card small,
.projects-layout .documents,
.projects-layout .tag {
  font-size: 11px;
  font-weight: 650;
}

.remove-project-product {
  color: #9d2337;
  background: rgba(157, 35, 55, 0.08);
  font-size: 0;
  font-weight: 900;
}

.remove-project-product::before {
  content: "x";
  font-size: 16px;
}

.project-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 45, 0.34);
  backdrop-filter: blur(8px);
}

.project-modal {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(159, 177, 207, 0.58);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(5, 199, 231, 0.13), transparent 14rem),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 90px rgba(3, 17, 45, 0.28);
}

.project-modal.large {
  width: min(720px, calc(100vw - 32px));
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(237, 245, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.project-modal h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.project-modal-subtitle {
  color: var(--ink-soft);
}

.project-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

.project-field span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-field input,
.project-field select,
.project-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.project-field input,
.project-field select {
  min-height: 48px;
  padding: 0 14px;
}

.project-field textarea {
  resize: vertical;
  padding: 12px 14px;
}

.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
  border-color: rgba(8, 98, 217, 0.58);
  box-shadow: 0 0 0 4px rgba(8, 98, 217, 0.09);
}

.project-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.palette-add-button {
  border-color: rgba(8, 98, 217, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.colour-card-supplier-button.palette-add-button {
  color: #fff;
  border-color: #0757c8;
  background: #0757c8;
}

.colour-card-supplier-button.palette-add-button:hover {
  color: #fff;
  border-color: #043f99;
  background: #043f99;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.palette-card {
  overflow: hidden;
  border: 1px solid rgba(159, 177, 207, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(17, 47, 90, 0.08);
}

.palette-card a {
  display: grid;
  color: var(--ink);
  text-decoration: none;
}

.palette-preview-grid,
.palette-preview-empty {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 1 / 1;
  background: #eff5fb;
}

.palette-preview-grid span,
.palette-preview-empty span {
  min-width: 0;
  background: var(--preview);
}

.palette-preview-empty span:nth-child(1) {
  background: linear-gradient(135deg, #fff8ef, #d9b78a);
}

.palette-preview-empty span:nth-child(2) {
  background: linear-gradient(135deg, #e8f4f7, #86aeb8);
}

.palette-preview-empty span:nth-child(3) {
  background: linear-gradient(135deg, #f3f5f7, #9da8b3);
}

.palette-preview-empty span:nth-child(4) {
  background: linear-gradient(135deg, #e8edf2, #1f3650);
}

.palette-card-body {
  padding: 18px;
}

.palette-card-body span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(8, 98, 217, 0.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.palette-card-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.palette-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.palette-card-actions,
.palette-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.palette-card-actions {
  padding: 0 18px 18px;
}

.palette-card-actions .secondary-button {
  width: 100%;
}

.palette-title-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(760px, 100%);
}

.palette-title-form input {
  min-width: 0;
  width: min(560px, 68vw);
  border: 0;
  border-bottom: 2px solid rgba(8, 98, 217, 0.24);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  line-height: 0.95;
}

.palette-title-form input:focus {
  outline: none;
  border-color: var(--blue);
}

.palette-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
}

.palette-item-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(159, 177, 207, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(17, 47, 90, 0.08);
}

.palette-item-image {
  position: relative;
  display: grid;
  aspect-ratio: 1.2 / 1;
  min-height: 220px;
  place-items: center;
  background: var(--thumb);
}

.palette-item-card.is-colour .palette-item-image {
  background: linear-gradient(135deg, rgba(245, 248, 252, 0.9), rgba(218, 229, 240, 0.9));
}

.palette-item-image span {
  width: min(72%, 240px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(3, 17, 45, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(3, 17, 45, 0.18);
}

.palette-item-body {
  padding: 18px;
}

.palette-item-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

.palette-item-body small {
  color: var(--ink-soft);
  font-weight: 750;
}

.palette-selected-panel {
  max-width: 720px;
  margin: 0 0 24px;
}

.palette-selected-panel .palette-item-card {
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr);
}

.palette-selected-panel .palette-item-image {
  min-height: 260px;
}

.palette-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.palette-visual-tile {
  display: block;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--thumb);
  cursor: pointer;
  outline-offset: 3px;
}

.palette-visual-tile:hover,
.palette-visual-tile:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(8, 98, 217, 0.38);
}

.palette-visual-tile.is-selected {
  box-shadow: inset 0 0 0 4px rgba(8, 98, 217, 0.74);
}

.palette-visual-tile.is-colour {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 248, 252, 0.9), rgba(218, 229, 240, 0.9));
}

.palette-visual-tile.is-colour span {
  width: 72%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 18px 46px rgba(3, 17, 45, 0.16);
}

.project-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.project-palette-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(159, 177, 207, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.project-palette-card a {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.project-palette-preview {
  display: block;
  width: 64px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(159, 177, 207, 0.42);
  border-radius: 12px;
  background: var(--thumb);
}

.project-palette-card strong,
.project-palette-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-palette-card small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-weight: 750;
}

.project-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(142, 231, 255, 0.26);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #001832, #00306e);
  box-shadow: 0 22px 60px rgba(3, 17, 45, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.project-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Late public-surface polish for components defined after the main refresh block. */
.supplier-hero-card,
.projects-hero,
.paint-mode-panel,
.supplier-info-card,
.family-button,
.colour-card,
.project-detail-meta div,
.project-modal {
  border-color: rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(30, 37, 54, 0.07);
}

.supplier-hero-card,
.projects-hero,
.paint-mode-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 238, 0.88));
}

.supplier-hero-card h1,
.projects-hero h1,
.paint-mode-panel h2,
.project-modal h2 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.paint-mode-toggle,
.paint-mode-toggle button,
.project-field input,
.project-field select,
.project-field textarea,
.project-modal-close {
  border-radius: 8px;
}

.paint-mode-toggle button.active,
.family-button.active,
.project-toast {
  background: #0757c8;
  box-shadow: 0 14px 30px rgba(7, 87, 200, 0.18);
}

.supplier-products,
.project-products {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

@media (max-width: 1240px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .page-concierge {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .global-concierge {
    position: fixed;
    top: 81px;
    right: 0;
    bottom: 0;
    width: var(--concierge-width);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-index-page .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .supplier-layout,
  .supplier-info-grid,
  .projects-hero,
  .paint-mode-panel,
  .auth-card,
  .supplier-hero-card,
  .supplier-enrichment-panel {
    grid-template-columns: 1fr;
  }

  .supplier-hero-card.has-title-image {
    grid-template-columns: 1fr;
  }

  .paint-mode-panel {
    display: grid;
  }

  .colour-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .project-grid,
  .project-products,
  .palette-grid,
  .palette-item-grid,
  .project-palette-grid,
  .project-info-panel,
  .project-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-directory {
    position: relative;
    top: auto;
  }

  .supplier-list {
    max-height: 360px;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .user-tools {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .palette-grid,
  .palette-item-grid,
  .project-info-panel,
  .project-palette-grid {
    grid-template-columns: 1fr;
  }

  .palette-title-form {
    display: grid;
    align-items: stretch;
  }

  .palette-title-form input {
    width: 100%;
  }

  .palette-selected-panel .palette-item-card {
    grid-template-columns: 1fr;
  }

  .project-product-section header {
    display: grid;
  }

  .project-product-section header strong {
    width: fit-content;
  }

  body.has-global-concierge .supplier-layout,
  body.has-global-concierge .supplier-index-page,
  body.has-global-concierge .paint-page,
  body.has-global-concierge .projects-layout,
  body.has-global-concierge .category-index-page,
  body.has-global-concierge .resources-page,
  body.has-global-concierge.concierge-collapsed .supplier-layout,
  body.has-global-concierge.concierge-collapsed .supplier-index-page,
  body.has-global-concierge.concierge-collapsed .paint-page,
  body.has-global-concierge.concierge-collapsed .projects-layout,
  body.has-global-concierge.concierge-collapsed .category-index-page,
  body.has-global-concierge.concierge-collapsed .resources-page {
    width: min(100% - 32px, 780px);
    margin-right: 0;
    margin-left: auto;
    margin-bottom: var(--concierge-collapsed-width);
  }

  .global-concierge,
  body.concierge-collapsed .global-concierge {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 78vh;
    padding: 14px;
  }

  body.concierge-collapsed .global-concierge {
    height: var(--concierge-collapsed-width);
  }

  body:not(.concierge-collapsed) .global-concierge {
    height: 78vh;
  }

  body.concierge-collapsed .global-concierge .concierge-header,
  body.concierge-collapsed .global-concierge .concierge-header > div {
    flex-direction: row;
    align-items: center;
  }

  body.concierge-collapsed .global-concierge .concierge-controls {
    display: inline-flex;
    gap: 8px;
  }

  body.concierge-collapsed .global-concierge .concierge-icon-button {
    width: 44px;
    height: 44px;
  }

  .hero,
  .section-heading {
    display: block;
  }

  .ad-banner {
    height: 300px;
  }

  .ad-banner-brand-panel {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
    padding: 20px 24px 58px;
  }

  .ad-banner-logo-card {
    width: min(210px, 100%);
    min-height: 82px;
    padding: 12px 16px;
  }

  .ad-banner-brand-logo {
    max-height: 58px;
  }

  .ad-banner-brand-copy {
    max-width: 100%;
    padding: 14px 16px;
  }

  .ad-banner-brand-copy strong {
    font-size: 24px;
  }

  .ad-banner-brand-copy span:last-child {
    font-size: 13px;
  }

  .health-card {
    min-width: 0;
    margin-top: 18px;
  }

  .assistants,
  .search-strip,
  .trust-row,
  .category-grid,
  .supplier-tile-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .library-panel {
    padding: 24px 18px;
  }

  .supplier-index-page .library-panel {
    padding: 0 0 24px;
  }

  .supplier-layout {
    padding: 18px;
  }

  .supplier-search-strip,
  .supplier-tile-grid {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .category-index-page .category-grid,
  .supplier-filter-actions {
    grid-template-columns: 1fr;
  }

  .paint-page {
    padding: 18px;
  }

  .projects-layout {
    padding: 18px;
  }

  .projects-hero {
    display: block;
    padding: 24px;
  }

  .projects-hero .primary-button,
  .project-ai-placeholder {
    margin-top: 18px;
  }

  .supplier-stats,
  .supplier-links,
  .paint-mode-toggle,
  .deco-catalogue-toggle,
  .auth-tabs,
  .colour-grid,
  .project-grid,
  .project-products,
  .project-detail-meta,
  .supplier-info-card dl div {
    grid-template-columns: 1fr;
  }

  .project-modal-actions {
    display: grid;
  }

  .auth-intro {
    min-height: auto;
    padding: 28px;
  }
}

body.supplier-directory-collapsed .supplier-layout {
  grid-template-columns: 82px minmax(0, 1fr);
}

body.supplier-directory-collapsed .supplier-directory {
  display: grid;
  min-width: 0;
  justify-items: center;
  padding: 14px 10px;
}

body.supplier-directory-collapsed .supplier-directory .directory-heading,
body.supplier-directory-collapsed .supplier-directory .search-box,
body.supplier-directory-collapsed .supplier-directory .supplier-list {
  display: none;
}

body.supplier-directory-collapsed .supplier-directory-toggle {
  width: 52px;
  min-height: 148px;
  margin-bottom: 0;
  padding: 0;
  border-radius: 18px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

body.supplier-directory-collapsed .supplier-directory-toggle .collapse-label {
  display: none;
}

body.supplier-directory-collapsed .supplier-directory-toggle .expand-label {
  display: inline;
}

@media (max-width: 860px) {
  body.supplier-directory-collapsed .supplier-layout {
    grid-template-columns: 1fr;
  }
}

.supplier-hero-card.premium-supplier-hero {
  background:
    linear-gradient(90deg, rgba(7, 19, 46, 0.88), rgba(16, 42, 91, 0.68) 48%, rgba(5, 13, 27, 0.24)),
    var(--premium-banner) var(--premium-banner-position, center) / cover no-repeat;
}

.supplier-hero-card.premium-supplier-hero.premium-astor {
  border-color: rgba(200, 145, 69, 0.34);
  background:
    linear-gradient(90deg, rgba(17, 13, 9, 0.88), rgba(69, 51, 34, 0.64) 48%, rgba(16, 13, 10, 0.18)),
    var(--premium-banner) var(--premium-banner-position, center) / cover no-repeat;
}

.premium-supplier-detail.premium-astor .premium-supplier-logo-frame {
  width: min(320px, 34vw);
}

.supplier-hero-card.premium-supplier-hero.premium-rubio {
  border-color: rgba(154, 182, 107, 0.34);
  background:
    linear-gradient(90deg, rgba(18, 29, 20, 0.7), rgba(55, 83, 54, 0.42) 48%, rgba(245, 240, 224, 0.08)),
    var(--premium-banner) var(--premium-banner-position, center) / cover no-repeat;
}

.premium-supplier-detail.premium-rubio .premium-supplier-logo-frame {
  width: min(238px, 28vw);
  background: rgba(255, 255, 255, 0.88);
}

.supplier-hero-card.premium-supplier-hero.premium-maxtonfox {
  border-color: rgba(238, 56, 55, 0.34);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(95, 30, 29, 0.58) 46%, rgba(238, 56, 55, 0.08)),
    var(--premium-banner) var(--premium-banner-position, center) / cover no-repeat;
}

.premium-supplier-detail.premium-maxtonfox .premium-supplier-logo-frame {
  width: min(330px, 34vw);
  padding: 10px 14px;
}

body.concierge-fullscreen .global-concierge,
body.concierge-fullscreen .page-concierge,
body.concierge-fullscreen .concierge-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  width: auto;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  max-height: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 22px;
  overflow: hidden;
}

body.concierge-fullscreen .concierge-frame {
  width: min(1180px, 100%);
  height: auto;
  min-height: 0;
  margin: 18px auto 0;
}

body.concierge-fullscreen .concierge-frame iframe {
  min-height: 0;
}

/* Final library-home polish layer. Keep this after inherited page/concierge rules. */
.topbar {
  grid-template-columns: minmax(226px, 0.95fr) minmax(0, auto) minmax(188px, 0.75fr);
  gap: 22px;
}

.main-nav {
  gap: clamp(18px, 2.2vw, 30px);
}

.main-nav a {
  border-radius: 8px;
}

.main-nav a:hover {
  color: #0757c8;
}

.library-panel > .hero {
  min-height: 374px;
  margin-bottom: 0;
  padding-top: 56px;
  padding-bottom: 82px;
}

.library-panel .hero h1 {
  max-width: 500px;
  margin-bottom: 14px;
  font-size: clamp(48px, 5.3vw, 74px);
}

.library-panel .hero p:not(.eyebrow) {
  font-size: 17px;
}

.health-card {
  width: min(352px, 34%);
  min-width: 276px;
  margin-bottom: 0;
}

.health-card strong {
  font-size: 22px;
}

.search-strip {
  width: min(940px, calc(100% - 68px));
  margin-top: -34px;
  margin-bottom: 30px;
  grid-template-columns: minmax(280px, 1fr) auto;
}

.search-box,
.secondary-button,
.bookmark-all {
  min-height: 56px;
}

.bookmark-all {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.search-submit-button {
  min-width: 124px;
  min-height: 56px;
  border-radius: 8px;
}

.search-submit-button:disabled {
  cursor: not-allowed;
  color: #6f7b8d;
  background: #e8edf4;
  box-shadow: none;
}

.home-search-results-panel {
  width: auto;
  margin: -10px 0 26px;
  padding: 18px;
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(30, 37, 54, 0.08);
}

.home-search-results-panel[hidden] {
  display: none;
}

.home-search-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-search-results-heading .eyebrow {
  margin-bottom: 5px;
}

.home-search-results-heading h2 {
  margin-bottom: 4px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

.home-search-results-heading p:last-child {
  margin-bottom: 0;
  color: #5c6675;
  font-size: 14px;
  font-weight: 700;
}

.home-search-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.home-search-results-grid .product-card {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 142px;
  padding: 12px;
}

.home-search-results-grid .product-thumb {
  aspect-ratio: auto;
  min-height: 116px;
  border-radius: 8px;
}

.home-search-results-grid .product-meta {
  min-height: 0;
  padding: 0;
}

.home-search-results-grid .product-card h3 {
  font-size: 14px;
}

.home-search-results-grid .tags {
  margin: 8px 0 10px;
}

.home-search-results-grid .product-actions {
  gap: 6px;
}

.home-search-results-grid .documents {
  display: none;
}

.home-search-results-grid .project-add-button,
.home-search-results-grid .product-action-link,
.home-search-results-grid .dam-link {
  min-height: 26px;
  padding-inline: 9px;
  font-size: 11px;
}

.home-search-results-grid .tags span:nth-child(n+4) {
  display: none;
}

.home-search-results-grid .empty-state {
  grid-column: 1 / -1;
}

.home-search-results-footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.home-search-results-footer:empty,
.home-search-results-footer:has([hidden]) {
  display: none;
}

.home-search-load-more {
  min-height: 42px;
  border-radius: 8px;
}

.ad-banner {
  height: clamp(158px, 15vw, 196px);
}

.section-heading {
  align-items: center;
  margin-top: 26px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(144px, 1fr));
  gap: 16px;
}

.category-visual {
  height: 104px;
}

.category-body {
  min-height: 92px;
}

.category-body span {
  line-height: 1.35;
}

.featured-heading {
  margin-top: 38px;
}

.featured-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.featured-product-tile {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.02) 0%, rgba(5, 10, 20, 0.18) 42%, rgba(5, 10, 20, 0.78) 100%),
    var(--featured-image) center / cover no-repeat;
  box-shadow: 0 20px 54px rgba(30, 37, 54, 0.14);
  isolation: isolate;
}

.featured-product-tile::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(3, 9, 20, 0.76), transparent 56%);
  content: "";
}

.featured-product-tile::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 18, 0.86));
  content: "";
}

.featured-maxtonfox {
  background-position: center, 44% 70%;
  background-size: auto, auto 122%;
}

.featured-keystone {
  background-position: center 28%;
}

.featured-rubio {
  background-color: #f7f6ef;
  background-position: center 44%;
}

.featured-astor {
  background-position: center 48%;
}

.featured-product-logo {
  display: grid;
  width: fit-content;
  min-width: 112px;
  max-width: min(46%, 214px);
  min-height: 58px;
  place-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.featured-product-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.featured-maxtonfox .featured-product-logo {
  background: rgba(20, 20, 20, 0.78);
}

.featured-maxtonfox .featured-product-logo img {
  max-height: 34px;
}

.featured-keystone .featured-product-logo {
  background: rgba(255, 255, 255, 0.94);
}

.featured-rubio .featured-product-logo img {
  filter: brightness(0);
}

.featured-astor .featured-product-logo {
  background: rgba(28, 21, 15, 0.8);
}

.featured-astor .featured-product-logo img {
  filter: brightness(0) invert(1);
}

.featured-product-copy {
  display: grid;
  align-self: end;
  max-width: 620px;
  gap: 8px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.featured-product-copy span {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 19, 39, 0.38);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.featured-product-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 0.98;
}

.featured-product-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.featured-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  gap: 10px;
  margin-top: 18px;
}

.featured-product-actions .primary-button,
.featured-product-actions .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.featured-product-actions .secondary-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  text-decoration: none;
}

.recently-heading {
  margin-top: 0;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(214px, 1fr));
  gap: 16px;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  background-size: contain;
}

.product-meta {
  display: grid;
  min-height: 252px;
  align-content: start;
  padding: 16px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-description {
  min-height: 57px;
  -webkit-line-clamp: 3;
}

.product-card-actions {
  margin-top: auto;
}

.project-add-button,
.product-action-link {
  min-height: 30px;
  padding-inline: 12px;
}

.product-grid.home-search-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.product-grid.home-search-results-grid .product-card {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  min-height: 266px;
  padding: 14px;
}

.product-grid.home-search-results-grid .product-thumb {
  aspect-ratio: 1 / 1;
  min-height: 238px;
  border-radius: 8px;
}

.product-grid.home-search-results-grid .product-thumb img {
  padding: 4px;
}

.product-grid.home-search-results-grid .product-meta {
  min-height: 0;
  padding: 0;
}

.product-grid.home-search-results-grid .product-card h3 {
  min-height: 0;
  font-size: 14px;
}

.product-grid.home-search-results-grid .tags {
  margin: 8px 0 10px;
}

.product-grid.home-search-results-grid .product-actions {
  gap: 6px;
}

.product-grid.home-search-results-grid .documents {
  display: none;
}

.product-grid.home-search-results-grid .project-add-button,
.product-grid.home-search-results-grid .product-action-link,
.product-grid.home-search-results-grid .dam-link {
  min-height: 26px;
  padding-inline: 9px;
  font-size: 11px;
}

.category-index-search-strip {
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-detail-search-strip {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-detail-search-strip .search-box {
  box-shadow: 0 12px 28px rgba(30, 37, 54, 0.08);
}

.category-detail-layout .supplier-products {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .main-nav,
  .user-tools {
    justify-content: flex-start;
  }

  .library-panel > .hero {
    min-height: 352px;
  }

  .category-grid,
  .featured-product-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid.home-search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .library-panel {
    padding: 0 0 24px;
  }

  .library-panel > .hero {
    min-height: auto;
    padding: 42px 18px 80px;
    background:
      linear-gradient(90deg, rgba(250, 248, 243, 0.98) 0%, rgba(250, 248, 243, 0.88) 58%, rgba(250, 248, 243, 0.62) 100%),
      url("./assets/library-hero-architecture.png") right center / cover no-repeat;
  }

  .library-panel .hero h1 {
    font-size: 46px;
  }

  .health-card {
    width: 100%;
  }

  .search-strip {
    width: calc(100% - 36px);
    margin: -42px 18px 26px;
    grid-template-columns: 1fr;
  }

  .category-detail-search-strip {
    width: 100%;
    margin: 0 0 2px;
  }

  .main-nav,
  .user-tools {
    scrollbar-width: none;
  }

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

  .ad-banner,
  .section-heading,
  .category-grid,
  .home-search-results-panel,
  .featured-product-grid,
  .product-grid,
  .product-load-status,
  .trust-row {
    margin-right: 18px;
    margin-left: 18px;
  }

  .category-grid,
  .featured-product-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid.home-search-results-grid {
    grid-template-columns: 1fr;
  }

  .home-search-results-panel {
    width: auto;
    padding: 16px;
  }

  .home-search-results-heading {
    display: grid;
  }

  .featured-product-tile {
    min-height: 0;
    padding: 20px;
  }

  .featured-product-logo {
    max-width: min(72%, 220px);
    min-height: 54px;
  }

  .featured-product-copy h3 {
    font-size: 32px;
  }

  .featured-product-actions {
    display: grid;
  }
}

@media (max-width: 520px) {
  .featured-product-tile {
    padding: 16px;
  }

  .featured-product-logo {
    min-width: 92px;
    min-height: 46px;
    padding: 9px 12px;
  }

  .featured-product-logo img {
    max-height: 32px;
  }

  .featured-product-copy {
    gap: 6px;
  }

  .featured-product-copy span {
    padding: 5px 8px;
    font-size: 10px;
  }

  .featured-product-copy h3 {
    font-size: clamp(24px, 7.8vw, 30px);
    line-height: 1;
  }

  .featured-product-copy p {
    display: none;
  }

  .featured-product-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .featured-product-actions .primary-button,
  .featured-product-actions .secondary-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Final project typography pass. Kept last so responsive legacy rules cannot reintroduce mixed heading styles. */
.projects-layout {
  font-size: 14px;
  line-height: 1.45;
}

.projects-layout .section-heading h2,
.projects-layout .projects-hero h1,
.projects-layout .project-card h2,
.projects-layout .project-product-section header h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.projects-layout .projects-hero h1 {
  color: #172033;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 680;
  line-height: 1.02;
}

.projects-layout .section-heading h2 {
  color: #172033;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.15;
}

.projects-layout .project-product-section header h3,
.projects-layout .project-schedule-card header h3 {
  color: #172033;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.15;
}

.projects-layout .section-heading p,
.projects-layout .projects-hero p,
.projects-layout .project-card p,
.projects-layout .project-schedule-card header p,
.projects-layout .project-info-panel dd,
.projects-layout .project-schedule-table td,
.projects-layout .project-section-empty {
  color: #5d6b7e;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.projects-layout .eyebrow,
.projects-layout .project-info-panel dt,
.projects-layout .project-schedule-card header span,
.projects-layout .project-schedule-table th,
.projects-layout .project-product-section header span,
.projects-layout .project-ai-placeholder span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.projects-layout .primary-button,
.projects-layout .secondary-button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}
