/**
 * Components stylesheet for AI Compliance Bot
 * Exact 1:1 replica of Streamlit's product visual system
 */

/* ==========================================================================
   1. Product Topbar (Fixed Floating Capsule)
   ========================================================================== */
#topbar-root {
  position: fixed;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 10000;
  width: calc(100vw - 1.3rem);
  margin: 0;
}

.st-key-product_topbar {
  position: relative;
  z-index: 10000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.26rem 0.3rem;
  border: 1px solid var(--product-nav-border);
  border-radius: 999px;
  background: var(--glass-panel);
  box-shadow: var(--product-nav-shadow), var(--glass-sheen);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  isolation: isolate;
  overflow: visible;
}

.st-key-product_topbar::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 50%, var(--product-accent-aura1), transparent 25%),
    radial-gradient(circle at 94% 50%, var(--product-accent-aura2), transparent 22%);
  content: "";
  pointer-events: none;
}

.product-topbar-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1.8fr) minmax(5rem, 1fr);
  align-items: center;
  gap: 0.28rem;
}

/* Brand lockup. The base rules are the marketing/auth presentation; the
   --topbar modifier shrinks it into the fixed capsule. Both are kept so the
   cascade resolves the same way it does in the source. */
.product-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.15rem 0 0;
}

.product-brand__mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.62rem;
  background: linear-gradient(145deg, var(--product-brand-start), var(--product-brand-end));
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.product-brand__name {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 720;
  line-height: 1.15;
}

.product-brand__tagline {
  color: #aec4dc;
  font-size: 0.64rem;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.product-brand--topbar {
  display: flex;
  align-items: center;
  min-width: 9.5rem;
  height: 2.2rem;
  min-height: 2.2rem;
  margin: 0 !important;
  padding: 0 0.2rem 0 0.04rem;
}

.product-brand--topbar > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 0.12rem;
}

.product-brand--topbar .product-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  box-shadow:
    0 0.4rem 1rem var(--product-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.product-brand--topbar .product-brand__name {
  color: var(--product-ink);
  font-size: 0.76rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-brand--topbar .product-brand__tagline {
  overflow: hidden;
  color: var(--product-muted);
  font-size: 0.5rem;
  font-weight: 690;
  letter-spacing: 0.075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  margin-top: 0;
}

/* Defined by the source but not currently rendered by the topbar; kept so the
   two stylesheets stay declaration-for-declaration comparable. */
.product-topbar__context {
  overflow: hidden;
  padding-inline: 0.35rem;
  color: var(--product-muted);
  font-size: 0.58rem;
  font-weight: 620;
  letter-spacing: 0.025em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-key-product_topbar_navigation_company,
.st-key-product_topbar_navigation_vendor,
.st-key-product_topbar_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
}

/* The active tab is a full-width tinted pill, not a solid accent button: it
   reads as "where you are", so it stays quieter than a primary action. */
.topbar-active-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(20rem, 100%);
  max-width: 20rem;
  margin-inline: auto;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid color-mix(in srgb, var(--product-accent) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-accent) 15%, var(--product-page));
  box-shadow:
    0 0.45rem 1.2rem color-mix(in srgb, var(--product-accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--product-accent-ink);
  font-size: 0.64rem;
  font-weight: 670;
  white-space: nowrap;
  cursor: default;
}

.topbar-active-pill span,
.topbar-active-pill p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.topbar-active-pill .material-symbols-rounded {
  margin-inline-end: 0.25rem;
  font-size: 0.9rem;
}

.st-key-product_topbar_actions {
  display: grid;
  grid-template-columns: repeat(2, 2.2rem);
  justify-content: end;
  align-items: center;
  gap: 0.28rem;
  height: 2.2rem;
}

.topbar-icon-btn {
  width: 2.2rem;
  min-width: 2.2rem;
  max-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  max-height: 2.2rem;
  padding: 0;
  border: 1px solid var(--glass-rim);
  border-radius: 999px;
  background: var(--glass-inset);
  box-shadow: var(--glass-sheen);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  color: var(--product-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color var(--motion-micro) var(--ease-micro),
    border-color var(--motion-micro) var(--ease-micro),
    background var(--motion-micro) var(--ease-micro),
    box-shadow var(--motion-micro) var(--ease-micro),
    transform var(--motion-micro) var(--ease-spring);
}

.topbar-icon-btn .material-symbols-rounded {
  margin-inline: 0;
  font-size: 0.9rem;
}

.topbar-icon-btn:hover {
  border-color: color-mix(in srgb, var(--product-accent) 45%, var(--product-border));
  background: var(--product-control-hover);
  color: var(--product-accent);
  transform: scale(1.05);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--product-accent) 15%, transparent);
}

.topbar-icon-btn:active {
  transform: scale(0.94);
  transition-duration: 90ms;
}

.topbar-logout-btn {
  border: 1px solid color-mix(in srgb, var(--product-danger) 24%, var(--product-border));
  background: color-mix(in srgb, var(--product-danger) 9%, var(--product-page));
  color: color-mix(in srgb, var(--product-danger) 72%, var(--product-ink));
}

.topbar-logout-btn:hover {
  border-color: color-mix(in srgb, var(--product-danger) 42%, transparent);
  background: color-mix(in srgb, var(--product-danger) 14%, var(--product-page));
  color: var(--product-danger);
}

/* Below 1050px the capsule unpins and the brand takes its own full-width row,
   which is why the content column gains a much larger top inset. */
@media (max-width: 1050px) {
  body.has-portal-layout .main-content {
    padding-top: 8.5rem;
  }

  /* The outer wrapper stays fixed - only the capsule inside it unpins and
     squares off, which is why the content column needs the larger top inset
     rather than the topbar rejoining the flow. */
  .st-key-product_topbar {
    position: relative;
    width: 100% !important;
    border-radius: 1.35rem;
  }

  .product-topbar-grid {
    display: flex !important;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .product-topbar-grid > * {
    flex: 1 1 9rem;
    width: auto;
  }

  .product-topbar-grid > *:first-child {
    flex-basis: 100%;
  }

  .product-brand--topbar {
    justify-content: center;
    padding: 0.2rem 0 0.45rem;
  }
}

/* ==========================================================================
   2. Floating Sidebar (Fixed Left Panel)
   ========================================================================== */

/* Streamlit reserves 18rem of flow width with [data-testid="stSidebar"] and
   paints a 17.5rem fixed panel inside it. Reproducing both halves is what keeps
   the content column centred in the space beside the sidebar rather than
   sliding underneath it. */
body.has-portal-layout #sidebar-root {
  flex: 0 0 var(--product-sidebar-width);
  min-width: var(--product-sidebar-min);
  max-width: var(--product-sidebar-max);
  width: var(--product-sidebar-width);
  align-self: stretch;
}

.st-key-product_sidebar_container {
  position: fixed !important;
  top: 4.15rem !important;
  bottom: 0.65rem !important;
  height: calc(100vh - 4.8rem) !important;
  left: 0.65rem !important;
  width: 17.5rem !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0.70rem !important;
  border-radius: 1.35rem !important;
  border: 1px solid var(--product-nav-border) !important;
  background: var(--glass-chrome) !important;
  box-shadow:
    var(--product-nav-shadow),
    var(--glass-sheen) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  isolation: isolate;
  overflow: hidden !important;
  box-sizing: border-box !important;
  /* flex-start + a 0.35rem gap, with the theme picker pushed down by its own
     margin-top:auto. space-between would spread the nav items apart instead. */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
}

.st-key-product_sidebar_container::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 12%, var(--product-accent-aura1), transparent 45%),
    radial-gradient(circle at 88% 88%, var(--product-accent-aura2), transparent 40%);
  content: "";
  pointer-events: none;
}

.product-sidebar-nav-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--product-nav-border) 60%, transparent);
}

.product-sidebar-nav-header__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--product-accent);
  box-shadow: 0 0 0.5rem var(--product-accent);
}

.product-sidebar-nav-header__title {
  color: var(--product-nav-muted) !important;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  text-align: left;
}

.product-sidebar-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 2.2rem !important;
  height: 2.2rem !important;
  padding: 0.22rem 0.65rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--product-nav-ink) !important;
  font-size: 0.64rem !important;
  font-weight: 670 !important;
  white-space: nowrap !important;
  text-align: left !important;
  cursor: pointer;
  /* Enumerated rather than `all` so the transform rides the spring curve while
     colour and shadow stay on the micro curve, as in the source. */
  transition:
    color var(--motion-micro) var(--ease-micro),
    border-color var(--motion-micro) var(--ease-micro),
    background var(--motion-micro) var(--ease-micro),
    box-shadow var(--motion-micro) var(--ease-micro),
    transform var(--motion-micro) var(--ease-spring) !important;
  font-family: inherit;
}

.sidebar-nav-btn p,
.sidebar-nav-btn span {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-align: left !important;
  margin: 0 !important;
}

/* Streamlit renders the button icon as [data-testid="stIconMaterial"]. */
.sidebar-nav-btn .sidebar-nav-icon {
  margin-inline-end: 0.25rem !important;
  font-size: 0.9rem !important;
  color: var(--product-nav-muted) !important;
  transition: color var(--motion-micro) var(--ease-micro);
}

.sidebar-nav-btn:hover {
  border-color: var(--glass-accent-rim) !important;
  background: var(--glass-accent-wash) !important;
  box-shadow: var(--glass-sheen) !important;
  backdrop-filter: var(--glass-blur-soft) !important;
  -webkit-backdrop-filter: var(--glass-blur-soft) !important;
  color: var(--product-accent) !important;
  transform: translateX(3px) !important;
}

.sidebar-nav-btn:hover *,
.sidebar-nav-btn:hover .sidebar-nav-icon {
  color: var(--product-accent) !important;
}

.sidebar-nav-btn:active {
  transform: translateX(3px) scale(0.975) !important;
  transition-duration: 90ms !important;
}

/* The active pill is translucent over the glass panel - it mixes the accent
   with transparent rather than using the opaque primary-button gradient. */
.sidebar-nav-btn.active {
  border-color: color-mix(in srgb, #ffffff 26%, var(--glass-accent-rim)) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--product-accent-start) 90%, transparent) 0%,
    color-mix(in srgb, var(--product-accent-end) 94%, transparent) 100%
  ) !important;
  box-shadow:
    0 0.45rem 1.25rem var(--product-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 color-mix(in srgb, var(--product-ink) 10%, transparent) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  transform: none !important;
}

.sidebar-nav-btn.active:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--product-accent-hover-start) 92%, transparent) 0%,
    color-mix(in srgb, var(--product-accent-hover-end) 96%, transparent) 100%
  ) !important;
  box-shadow:
    0 0.55rem 1.5rem var(--product-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 color-mix(in srgb, var(--product-ink) 10%, transparent) !important;
  color: #ffffff !important;
  transform: none !important;
}

.sidebar-nav-btn.active *,
.sidebar-nav-btn.active .sidebar-nav-icon {
  color: #ffffff !important;
}

/* The wrapper only positions; the glass box lives on the swatch row itself,
   matching the source where these are two different elements. */
.st-key-product_sidebar_theme_picker {
  margin: auto 0 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.st-key-product_sidebar_theme_picker,
.st-key-product_sidebar_theme_picker *,
.st-key-product_sidebar_theme_picker *::before,
.st-key-product_sidebar_theme_picker *::after {
  box-sizing: border-box;
}

.theme-swatch-picker {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.78rem;
  border: 1px solid var(--glass-rim);
  background: var(--glass-inset);
  box-shadow:
    var(--glass-sheen),
    inset 0 -1px 0 color-mix(in srgb, var(--product-ink) 6%, transparent),
    0 0.15rem 0.5rem color-mix(in srgb, var(--product-ink) 7%, transparent);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  gap: 0.2rem;
}

.sidebar-swatch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  padding: 0;
  margin: 0 auto;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.18);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0.85;
  transition:
    transform 160ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 160ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-swatch-btn:hover {
  opacity: 1;
  transform: scale(1.22) translateY(-1px);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
}

.sidebar-swatch-btn:focus {
  outline: none;
}

.sidebar-swatch-btn:focus-visible {
  outline: 2px solid var(--product-nav-ink);
  outline-offset: 2px;
}

.sidebar-swatch-btn.active {
  opacity: 1;
  border: 2px solid #ffffff;
  box-shadow:
    0 0 0 2px var(--product-nav-bg),
    0 0 0 3.5px var(--product-accent),
    0 0.15rem 0.6rem var(--product-accent-glow);
  transform: scale(1.14);
}

/* ==========================================================================
   3. Product Hero (Card with top-right arc watermark)
   ========================================================================== */
.product-hero {
  display: none !important;
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.9rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 1rem;
  background: linear-gradient(125deg, var(--product-surface) 0%, var(--product-accent-soft) 100%);
  box-shadow: 0 0.75rem 2.2rem rgba(16, 42, 67, 0.06);
  animation: product-rise var(--motion-standard) var(--ease-standard) backwards;
  transition: background-color var(--motion-standard) var(--ease-micro), background var(--motion-standard) var(--ease-micro), border-color var(--motion-standard) var(--ease-micro), color var(--motion-standard) var(--ease-micro), box-shadow var(--motion-standard) var(--ease-micro), transform var(--motion-micro) var(--ease-spring);
}

.product-hero::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-accent) 8%, transparent);
  pointer-events: none;
}

.product-eyebrow {
  color: var(--product-accent-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-hero h1 {
  color: var(--product-ink);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0.45rem 0 0.55rem;
}

.product-hero p {
  color: var(--product-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 52rem;
}

.product-hero--compact {
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
}

.product-hero--compact::after {
  width: 8rem;
  height: 8rem;
  right: -3rem;
  top: -4rem;
}

.product-hero--compact h1 {
  font-size: var(--product-type-page);
  margin: 0.35rem 0 0.35rem;
}

.product-hero--compact p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-section-heading {
  margin: 0.35rem 0 1rem;
  animation: product-rise var(--motion-standard) var(--ease-standard) backwards;
}

.product-section-heading h2,
.product-section-heading h3,
.product-section-heading h4 {
  color: var(--product-ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.product-section-heading h2 {
  font-size: var(--product-type-section);
  font-weight: 740;
}

.product-section-heading h3 {
  font-size: var(--product-type-subsection);
  font-weight: 710;
}

.product-section-heading h4 {
  font-size: var(--product-type-minor);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-section-heading p {
  color: var(--product-muted);
  font-size: var(--product-type-body);
  line-height: 1.5;
  margin: 0.38rem 0 0;
  max-width: 62rem;
}

/* ==========================================================================
   4. Journey Stepper Cards (Exact Streamlit 1:1)
   ========================================================================== */
.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.4rem;
}

.journey--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.journey--compact {
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.journey--compact .journey__step {
  min-height: 3.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
}

.journey__step {
  min-height: 4.35rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--product-surface) 90%, transparent);
  box-shadow: 0 0.12rem 0.4rem rgba(15, 23, 42, 0.025);
  animation: product-settle var(--motion-standard) var(--ease-standard) backwards;
  transition:
    border-color var(--motion-micro) var(--ease-micro),
    box-shadow var(--motion-micro) var(--ease-micro);
}

.journey__step--complete {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: color-mix(in srgb, var(--product-surface) 90%, transparent);
}

.journey__step--active {
  border: 2px solid var(--product-accent);
  background: var(--product-accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--product-accent) 12%, transparent);
}

.journey__step--upcoming {
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

.journey__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.journey__number {
  color: var(--product-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey__state {
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.journey__step--complete .journey__state {
  background: color-mix(in srgb, var(--product-success) 18%, transparent);
  color: color-mix(in srgb, var(--product-success) 78%, var(--product-ink) 22%);
}

.journey__step--active .journey__state {
  background: color-mix(in srgb, var(--product-accent) 18%, transparent);
  color: color-mix(in srgb, var(--product-accent) 78%, var(--product-ink) 22%);
}

.journey__step--upcoming .journey__state {
  background: var(--product-soft);
  color: var(--product-muted);
}

.journey__label {
  color: var(--product-ink);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.3;
  margin-top: 0.18rem;
}

/* ==========================================================================
   5. Product Banner & Empty Cards
   ========================================================================== */
.product-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: auto;
  padding: 1rem 1.1rem;
  margin: 0.8rem 2rem 1.25rem;
  border: 1px solid var(--product-border);
  border-left-width: 3px;
  border-right-width: 3px;
  border-radius: 1rem;
  background-color: var(--glass-panel) !important;
  box-shadow: var(--glass-lift), var(--glass-sheen), inset 0 0 0 1px color-mix(in srgb, var(--product-ink) 4%, transparent);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  transition: background-color var(--motion-standard) var(--ease-micro), background var(--motion-standard) var(--ease-micro), border-color var(--motion-standard) var(--ease-micro), color var(--motion-standard) var(--ease-micro), box-shadow var(--motion-standard) var(--ease-micro), transform var(--motion-micro) var(--ease-spring);
}

.product-banner--info {
  border-color: color-mix(in srgb, var(--product-info) 34%, var(--product-border));
  background:
    linear-gradient(rgba(2, 132, 199, 0.07), rgba(2, 132, 199, 0.07)),
    rgba(148, 163, 184, 0.08) !important;
}

.product-banner--success {
  border-color: color-mix(in srgb, var(--product-success) 34%, var(--product-border));
  background:
    linear-gradient(rgba(8, 122, 85, 0.08), rgba(8, 122, 85, 0.08)),
    rgba(148, 163, 184, 0.08) !important;
}

.product-banner--warning {
  border-color: color-mix(in srgb, var(--product-warning) 34%, var(--product-border));
  background:
    linear-gradient(rgba(169, 88, 6, 0.08), rgba(169, 88, 6, 0.08)),
    rgba(148, 163, 184, 0.08) !important;
}

.product-banner--danger {
  border-color: color-mix(in srgb, var(--product-danger) 34%, var(--product-border));
  background:
    linear-gradient(rgba(180, 35, 24, 0.07), rgba(180, 35, 24, 0.07)),
    rgba(148, 163, 184, 0.08) !important;
}

.product-banner__icon {
  display: grid;
  flex: 0 0 1.8rem;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.product-banner--info .product-banner__icon { color: var(--product-info); }
.product-banner--success .product-banner__icon { color: var(--product-success); }
.product-banner--warning .product-banner__icon { color: var(--product-warning); }
.product-banner--danger .product-banner__icon { color: var(--product-danger); }

.product-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.product-banner__title {
  color: var(--product-ink);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.product-banner__text {
  color: var(--product-muted);
  font-size: var(--product-type-caption);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.product-banner__progress {
  margin-top: 0.7rem;
}

.product-banner__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 0.32rem;
}

.product-banner__progress-track {
  width: 100%;
  height: 0.36rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-ink) 11%, transparent);
}

.product-banner__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--product-accent);
  transition: width var(--motion-surface) var(--ease-standard);
}

.product-banner--success .product-banner__progress-fill {
  background: var(--product-success);
}
.product-banner--warning .product-banner__progress-fill {
  background: var(--product-warning);
}

.product-empty-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--product-success) 35%, var(--product-border));
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--product-success) 7%, var(--product-surface));
  color: var(--product-ink);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.35rem 0 0.85rem;
  animation: product-settle var(--motion-standard) var(--ease-standard) backwards;
}

.product-empty-card--info {
  border-color: color-mix(in srgb, var(--product-info) 35%, var(--product-border));
  background: color-mix(in srgb, var(--product-info) 7%, var(--product-surface));
}

.product-empty-card--warning {
  border-color: color-mix(in srgb, var(--product-warning) 36%, var(--product-border));
  background: color-mix(in srgb, var(--product-warning) 8%, var(--product-surface));
}

.product-empty-card--danger {
  border-color: color-mix(in srgb, var(--product-danger) 36%, var(--product-border));
  background: color-mix(in srgb, var(--product-danger) 8%, var(--product-surface));
}

.product-empty-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-success) 22%, transparent);
  color: color-mix(in srgb, var(--product-success) 88%, var(--product-ink));
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.product-empty-card--info .product-empty-card__icon {
  background: color-mix(in srgb, var(--product-info) 20%, transparent);
  color: var(--product-info);
}

.product-empty-card--warning .product-empty-card__icon {
  background: color-mix(in srgb, var(--product-warning) 22%, transparent);
  color: color-mix(in srgb, var(--product-warning) 90%, var(--product-ink));
}

.product-empty-card--danger .product-empty-card__icon {
  background: color-mix(in srgb, var(--product-danger) 22%, transparent);
  color: color-mix(in srgb, var(--product-danger) 90%, var(--product-ink));
}

.product-empty-card__title {
  font-weight: 680;
  font-size: 0.84rem;
  color: var(--product-ink);
  margin-bottom: 0.1rem;
}

.product-empty-card__text {
  color: var(--product-muted);
  font-size: 0.79rem;
}

/* ==========================================================================
   6. Metrics Grid
   ========================================================================== */
.product-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .product-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-metric-card {
  min-height: 4.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.65rem;
  background: var(--glass-panel);
  box-shadow:
    var(--glass-sheen),
    0 0.12rem 0.4rem color-mix(in srgb, var(--product-ink) 5%, transparent);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  animation: product-settle var(--motion-standard) var(--ease-standard) backwards;
}

.product-metric-card__label {
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
}

.product-metric-card__value {
  color: var(--product-ink);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ==========================================================================
   7. Product Table
   ========================================================================== */
.product-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid color-mix(in srgb, var(--product-border) 80%, var(--product-ink) 20%);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 0.45rem 0 0.95rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--product-ink);
  background: var(--product-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.product-table thead {
  background: color-mix(in srgb, var(--product-surface) 84%, var(--product-page));
}

.product-table th {
  padding: 0.65rem 0.85rem;
  font-weight: 680;
  font-size: 0.78rem;
  color: var(--product-muted);
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--product-border) 80%, var(--product-ink) 20%);
  border-right: 1px solid color-mix(in srgb, var(--product-border) 60%, transparent);
  vertical-align: bottom;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.35 !important;
}

.product-table th:last-child {
  border-right: none;
}

.product-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--product-border) 55%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--product-border) 40%, transparent);
  vertical-align: top;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.45;
  hyphens: none !important;
  white-space: normal !important;
}

.product-table td:last-child {
  border-right: none;
}

.product-table tr:last-child td {
  border-bottom: none;
}

.product-table tbody tr:hover {
  background: color-mix(in srgb, var(--product-accent) 3.5%, transparent);
}

/* ==========================================================================
   8. Product Tags
   ========================================================================== */
.product-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border: 1px solid color-mix(in srgb, var(--product-muted) 26%, transparent);
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.55;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-tag--accent {
  border-color: color-mix(in srgb, var(--product-accent) 32%, transparent);
  background: var(--product-accent-soft);
  color: color-mix(in srgb, var(--product-accent) 80%, var(--product-ink) 20%);
}

.product-tag--info {
  border-color: color-mix(in srgb, var(--product-info) 32%, transparent);
  background: color-mix(in srgb, var(--product-info) 10%, transparent);
  color: color-mix(in srgb, var(--product-info) 82%, var(--product-ink) 18%);
}

.product-tag--success {
  border-color: color-mix(in srgb, var(--product-success) 32%, transparent);
  background: color-mix(in srgb, var(--product-success) 12%, transparent);
  color: color-mix(in srgb, var(--product-success) 78%, var(--product-ink) 22%);
}

.product-tag--warning {
  border-color: color-mix(in srgb, var(--product-warning) 34%, transparent);
  background: color-mix(in srgb, var(--product-warning) 13%, transparent);
  color: color-mix(in srgb, var(--product-warning) 80%, var(--product-ink) 20%);
}

.product-tag--danger {
  border-color: color-mix(in srgb, var(--product-danger) 34%, transparent);
  background: color-mix(in srgb, var(--product-danger) 12%, transparent);
  color: color-mix(in srgb, var(--product-danger) 80%, var(--product-ink) 20%);
}

/* ==========================================================================
   9. Expanders, Tabs, Conflict Panels & Dropzones
   ========================================================================== */
details.product-expander {
  overflow: hidden;
  border: 1px solid var(--product-border) !important;
  border-radius: 0.85rem !important;
  background: var(--glass-panel) !important;
  box-shadow: var(--glass-sheen) !important;
  backdrop-filter: var(--glass-blur-soft) !important;
  -webkit-backdrop-filter: var(--glass-blur-soft) !important;
  margin-bottom: 1rem;
}

details.product-expander summary {
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--product-ink);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

details.product-expander summary::-webkit-details-marker {
  display: none;
}

details.product-expander summary::before {
  content: "›";
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--product-accent);
  transition: transform var(--motion-micro) var(--ease-micro);
}

details.product-expander[open] summary::before {
  transform: rotate(90deg);
}

details.product-expander .product-expander__content {
  padding: 0.75rem 1.1rem 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--product-border) 60%, transparent);
}

.product-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--product-border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

/* Top-level st.tabs metrics: a 2.75rem tall tab with the top corners rounded,
   inset 0.9rem, sitting on the tab-list rule. */
.product-tab-btn {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 0.9rem;
  background: transparent;
  border: none;
  border-radius: 0.55rem 0.55rem 0 0;
  border-bottom: 2px solid transparent;
  color: var(--product-muted);
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--motion-micro) var(--ease-micro);
  font-family: inherit;
}

.product-tab-btn:hover {
  color: var(--product-ink);
}

.product-tab-btn.active {
  color: var(--product-accent);
  font-weight: 720;
  border-bottom-color: var(--product-accent);
}

.product-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem;
  border: 1.5px dashed color-mix(in srgb, var(--product-accent) 40%, var(--product-border));
  border-radius: 0.85rem;
  background: var(--product-control-bg);
  cursor: pointer;
  text-align: center;
  gap: 0.65rem;
  transition: all var(--motion-micro) var(--ease-micro);
  margin-bottom: 0.85rem;
}

.product-file-dropzone:hover,
.product-file-dropzone--active {
  border-color: var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 4%, var(--product-control-bg));
}

.product-file-dropzone__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  border-radius: 0.55rem;
  border: 1px solid var(--product-border);
  background: var(--product-surface);
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--product-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.product-file-dropzone__hint {
  font-size: 0.78rem;
  color: var(--product-muted);
}

.conflict-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--product-border) 60%, transparent);
}

.conflict-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--product-ink);
  letter-spacing: -0.01em;
}

.conflict-card__badge {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-accent) 12%, transparent);
  color: var(--product-accent);
  border: 1px solid color-mix(in srgb, var(--product-accent) 28%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.conflict-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.conflict-panel {
  padding: 0.75rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid var(--product-border);
  background: var(--product-surface);
}

.conflict-panel--typed {
  border-color: color-mix(in srgb, var(--product-muted) 35%, var(--product-border));
  border-left: 3.5px solid color-mix(in srgb, var(--product-ink) 35%, transparent);
}

.conflict-panel--doc {
  border-color: color-mix(in srgb, var(--product-accent) 35%, var(--product-border));
  background: color-mix(in srgb, var(--product-accent) 3%, var(--product-surface));
  border-left: 3.5px solid var(--product-accent);
}

.conflict-panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--product-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.conflict-panel__value {
  font-size: 0.96rem;
  font-weight: 650;
  color: var(--product-ink);
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

.conflict-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  margin-top: 0.5rem;
  background: color-mix(in srgb, var(--product-border) 40%, transparent);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  color: var(--product-ink);
  line-height: 1.45;
}

.conflict-quote__icon {
  color: var(--product-accent);
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Animations */
@keyframes product-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.6rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes product-settle {
  from {
    opacity: 0;
    transform: translate3d(0, 0.45rem, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Rules carried over from inject_product_styles() that had no counterpart here
   yet: the highlight card and download tile, the journey entrance stagger, the
   fixed table column widths, and the motion/reduced-motion behaviour.
   ========================================================================== */

.portal-layout-marker {
  display: none;
}

.sidebar-brand-gap {
  display: block;
  height: 2rem;
  width: 100%;
}

.product-empty-card--success {
  border-color: color-mix(in srgb, var(--product-success) 35%, var(--product-border));
  background: color-mix(in srgb, var(--product-success) 7%, var(--product-surface));
}

.product-empty-card--success .product-empty-card__icon {
  background: color-mix(in srgb, var(--product-success) 22%, transparent);
  color: color-mix(in srgb, var(--product-success) 88%, var(--product-ink));
}

.product-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--product-border);
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--product-surface) 96%, transparent);
  margin-bottom: 0.4rem;
  font-size: 0.81rem;
  line-height: 1.35;
  color: var(--product-ink);
  animation: product-settle var(--motion-standard) var(--ease-standard) backwards;
}

.product-highlight-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-highlight-card--success .product-highlight-card__icon {
  background: color-mix(in srgb, var(--product-success) 20%, transparent);
  color: color-mix(in srgb, var(--product-success) 88%, var(--product-ink));
}

.product-highlight-card--warning .product-highlight-card__icon {
  background: color-mix(in srgb, var(--product-warning) 20%, transparent);
  color: color-mix(in srgb, var(--product-warning) 88%, var(--product-ink));
}

.product-download-tile {
  border-radius: 0.85rem !important;
  background: var(--glass-panel) !important;
  border: 1px solid var(--product-border) !important;
  box-shadow: var(--glass-sheen), 0 0.15rem 0.6rem color-mix(in srgb, var(--product-ink) 6%, transparent) !important;
  backdrop-filter: var(--glass-blur-soft) !important;
  -webkit-backdrop-filter: var(--glass-blur-soft) !important;
  margin-bottom: 0.6rem;
}

.product-download-tile__title {
  font-weight: 740;
  font-size: 0.88rem;
  color: var(--product-ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

.product-download-tile__desc {
  font-size: 0.76rem;
  color: var(--product-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.product-banner:not(:has(.product-banner__progress)) {
  animation: product-rise var(--motion-standard) var(--ease-standard) backwards;
}

.journey__step:nth-child(2) {
  animation-delay: var(--motion-stagger);
}

.journey__step:nth-child(3) {
  animation-delay: calc(var(--motion-stagger) * 2);
}

.journey__step:nth-child(4) {
  animation-delay: calc(var(--motion-stagger) * 3);
}

.journey__step:nth-child(5) {
  animation-delay: calc(var(--motion-stagger) * 4);
}

.product-table col.ptc-xs {
  width: 10%;
}

.product-table col.ptc-sm {
  width: 14%;
}

.product-table col.ptc-md {
  width: 18%;
}

.product-table col.ptc-lg {
  width: 28%;
}

.product-table col.ptc-xl {
  width: 40%;
}

@keyframes product-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-scrim-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-modal-scale-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.65rem, 0) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-hero {
    transition: none;
    animation: none !important;
  }

  .product-banner {
    transition: none;
    animation: none !important;
  }

  .product-section-heading {
    animation: none !important;
  }

  .product-empty-card {
    animation: none !important;
  }

  .product-highlight-card {
    animation: none !important;
  }

  .journey__step {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero {
    padding: 1.3rem;
  }

  .product-banner {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   14. Custom Rich Select Component
   ========================================================================== */
.product-custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.product-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-family);
  font-size: 0.88rem;
  color: var(--product-ink);
  background-color: var(--product-control-bg);
  border: 1px solid color-mix(in srgb, var(--product-accent) 24%, var(--product-border) 76%);
  border-radius: 0.7rem;
  box-shadow: 0 0.16rem 0.48rem rgba(15, 23, 42, 0.05);
  cursor: pointer;
  outline: none;
  transition:
    border-color var(--motion-micro) var(--ease-micro),
    box-shadow var(--motion-micro) var(--ease-micro),
    background-color var(--motion-micro) var(--ease-micro);
}

.product-custom-select__trigger:hover {
  border-color: color-mix(in srgb, var(--product-accent) 45%, var(--product-border));
}

.product-custom-select__trigger:focus-visible,
.product-custom-select.is-open .product-custom-select__trigger {
  border-color: color-mix(in srgb, var(--product-accent) 58%, var(--product-border) 42%);
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--product-accent) 14%, transparent);
}

.product-custom-select__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.product-custom-select__name {
  font-weight: 600;
  color: var(--product-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-custom-select__tags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.product-custom-select__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--product-muted);
  flex-shrink: 0;
  transition: transform var(--motion-micro) var(--ease-micro);
}

.product-custom-select.is-open .product-custom-select__chevron {
  transform: rotate(180deg);
}

.product-custom-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10000;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--product-border);
  background: var(--product-surface);
  box-shadow:
    var(--shadow-lg),
    0 10px 25px -5px color-mix(in srgb, var(--product-ink) 12%, transparent);
  animation: selectMenuFadeIn 0.15s ease;
}

@keyframes selectMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--product-ink);
  cursor: pointer;
  outline: none;
  transition: background var(--motion-micro) var(--ease-micro), color var(--motion-micro) var(--ease-micro);
}

.product-custom-select__option:hover,
.product-custom-select__option:focus-visible {
  background: var(--product-control-hover);
  color: var(--product-accent);
}

.product-custom-select__option.is-selected {
  background: var(--product-accent-soft);
  font-weight: 650;
  color: var(--product-accent-ink);
}

.product-custom-select__option-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.product-custom-select__option-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
