/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
}

/* COLOR SCHEME DEPENDING ON USER COLLEGE SELECTION! */
/*ROOT = DEFAULT. Purple theme for CUHK global mode*/
:root {
  --theme-primary: #6f218a;
  --theme-primary-dark: #4f1166;
  --theme-primary-deep: #5f177c;
  --theme-primary-ink: #2b024c;
  --theme-primary-ink-strong: #280740;
  --theme-primary-chip-text: #3b1750;
  --theme-primary-muted: #5f4a72;
  --theme-primary-accent-text: #5b1c75;
  --theme-primary-hover: rgba(96, 54, 140, 0.56);
  --theme-primary-hover-border: rgba(244, 235, 255, 0.28);
  --theme-primary-border-soft: rgba(111, 33, 138, 0.14);
  --theme-primary-surface-tint: rgba(111, 33, 138, 0.1);
  --theme-primary-shadow: rgba(111, 33, 138, 0.18);
  --theme-primary-switch-shadow: rgba(90, 20, 115, 0.2);
  --theme-primary-outline-soft: rgba(111, 33, 138, 0.32);
  --theme-primary-outline: rgba(111, 33, 138, 0.45);
  --theme-primary-scrollbar: rgba(111, 33, 138, 0.35);
  --theme-glass-on-primary: rgba(255, 255, 255, 0.12);
  --theme-glass-on-primary-strong: rgba(255, 255, 255, 0.18);
  --theme-side-slider-start: #5f177c;
  --theme-side-slider-end: #4f1166;
  --theme-switch-active-start: rgba(117, 35, 150, 0.96);
  --theme-switch-active-end: rgba(79, 17, 102, 0.96);
  --theme-card-gradient-start: #2d1b3d;
  --theme-card-gradient-mid: #6f218a;
  --theme-card-gradient-end: #4a1760;
  --theme-on-primary: #ffffff;
}

body[data-theme="wu-yee-sun"] {
  --theme-primary: #0f6a5b;
  --theme-primary-dark: #0b4f44;
  --theme-primary-deep: #0d5c50;
  --theme-primary-ink: #073830;
  --theme-primary-ink-strong: #052b25;
  --theme-primary-chip-text: #0b5449;
  --theme-primary-muted: #496d65;
  --theme-primary-accent-text: #0d5f53;
  --theme-primary-hover: rgba(15, 106, 91, 0.56);
  --theme-primary-hover-border: rgba(203, 166, 70, 0.34);
  --theme-primary-border-soft: rgba(15, 106, 91, 0.14);
  --theme-primary-surface-tint: rgba(15, 106, 91, 0.1);
  --theme-primary-shadow: rgba(15, 106, 91, 0.18);
  --theme-primary-switch-shadow: rgba(10, 68, 58, 0.2);
  --theme-primary-outline-soft: rgba(15, 106, 91, 0.32);
  --theme-primary-outline: rgba(15, 106, 91, 0.45);
  --theme-primary-scrollbar: rgba(15, 106, 91, 0.35);
  --theme-side-slider-start: #0e5c4f;
  --theme-side-slider-end: #0b4f44;
  --theme-switch-active-start: rgba(17, 127, 108, 0.96);
  --theme-switch-active-end: rgba(11, 79, 68, 0.96);
  --theme-card-gradient-start: #0f3b34;
  --theme-card-gradient-mid: #0f6a5b;
  --theme-card-gradient-end: #0b5045;
}

body[data-theme="chung-chi"] {
  --theme-primary: #8f1732;
  --theme-primary-dark: #6c0f25;
  --theme-primary-deep: #80132d;
  --theme-primary-ink: #4f0919;
  --theme-primary-ink-strong: #3b0613;
  --theme-primary-chip-text: #6a1530;
  --theme-primary-muted: #75525d;
  --theme-primary-accent-text: #73122a;
  --theme-primary-hover: rgba(143, 23, 50, 0.56);
  --theme-primary-hover-border: rgba(203, 158, 62, 0.34);
  --theme-primary-border-soft: rgba(143, 23, 50, 0.14);
  --theme-primary-surface-tint: rgba(143, 23, 50, 0.1);
  --theme-primary-shadow: rgba(143, 23, 50, 0.18);
  --theme-primary-switch-shadow: rgba(93, 14, 33, 0.2);
  --theme-primary-outline-soft: rgba(143, 23, 50, 0.32);
  --theme-primary-outline: rgba(143, 23, 50, 0.45);
  --theme-primary-scrollbar: rgba(143, 23, 50, 0.35);
  --theme-side-slider-start: #7b132b;
  --theme-side-slider-end: #6c0f25;
  --theme-switch-active-start: rgba(155, 28, 57, 0.96);
  --theme-switch-active-end: rgba(108, 15, 37, 0.96);
  --theme-card-gradient-start: #3c1019;
  --theme-card-gradient-mid: #8f1732;
  --theme-card-gradient-end: #65101f;
}

 /* THICKNESS OF UI */
.items-price-slider.noUi-target {
  height: 6px;
  border: none;
  border-radius: 999px;
  background: #d6deeb;
  box-shadow: none;
}

/* SLIDER HANDLE */
.items-price-slider .noUi-handle {
  width: 14px;
  height: 14px;
  right: -7px;
  top: -4px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

/* SLIDER HANDLE COLOR */
.items-price-slider .noUi-connect {
  background: rgb(2, 4, 3);
}

/* SLIDER HANDLE CHILDREN (hidden) */
.items-price-slider .noUi-handle::after,
.items-price-slider .noUi-handle::before {
  display: none;
}

.search-bar-container {
  display: flex;
  justify-content: center;   /* centers the search-bar */
  margin: 24px 0;
}

#search-bar {
  color:blueviolet;
}

.site-header {
  --site-header-currency-option-hover: var(--theme-primary-hover);
  --site-header-currency-option-hover-border: var(--theme-primary-hover-border);
  max-width: 1200px;
  margin: 20px auto 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.site-header__left {
  justify-self: start;
  min-width: 0;
}

.site-header__center {
  justify-self: center;
}

.site-header__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__scope-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border-radius: 999px;
  min-width: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header__scope-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  max-width: 8.5rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__scope-option:hover {
  transform: translateY(-1px);
}

.site-header__scope-option.is-active {
  box-shadow: 0 8px 18px var(--theme-primary-switch-shadow);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 80px;
  padding: 0 28px;
  border: 2px #8f98a3;
  border-radius: 24px;
  background: #e3e7eb;
  color: #3d434b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 1.4rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.site-header__logo:hover {
  transform: translateY(-1px);
  border-color: #737c86;
}

.site-header__logo:focus-visible {
  outline: 3px solid rgba(9, 132, 227, 0.25);
  outline-offset: 4px;
}

.side-slider {
  --side-slider-handle-width: 2.75rem;
  --side-slider-panel-width: 10.5rem;
  --side-slider-height: 4.75rem;
  position: fixed;
  top: 50%;
  right: calc(-1 * var(--side-slider-panel-width));
  z-index: 900;
  width: calc(var(--side-slider-handle-width) + var(--side-slider-panel-width));
  height: var(--side-slider-height);
  overflow: visible;
  transform: translateY(-50%);
  transition: right 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.side-slider:hover,
.side-slider:focus-within {
  right: 0;
}

.side-slider__shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.side-slider__handle {
  flex: 0 0 var(--side-slider-handle-width);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, var(--theme-side-slider-start) 0%, var(--theme-side-slider-end) 100%);
}

.side-slider__triangle {
  width: 0;
  height: 0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-right: 0.7rem solid rgba(255, 255, 255, 0.96);
  transform: translateX(-1px);
}

.side-slider__panel {
  flex: 0 0 var(--side-slider-panel-width);
  display: grid;
  align-content: center;
  justify-items: stretch;
  padding: 0.35rem 0.45rem 0.35rem 0.25rem;
  border-radius: 0 1.2rem 1.2rem 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-left: 0;
  box-shadow: -18px 18px 36px rgba(31, 10, 45, 0.16);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.side-slider__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: transparent;
  color: #2f1f3b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.side-slider__link:hover,
.side-slider__link:focus-visible {
  background: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover-border);
  color: var(--theme-on-primary);
}

.side-slider__link:focus-visible {
  outline: none;
}

.dashboard-shell {
  height: var(--dashboard-viewport-height, calc(100vh - 4rem));
  min-height: 34rem;
  padding: 0.35rem 0.6rem;
  box-sizing: border-box;
  background: #ffffff;
  overflow: hidden;
}

.dashboard-card {
  font-family: inherit;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.55rem;
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0.65rem 0.85rem 0.8rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
  color: #1a1a1a;
  box-sizing: border-box;
}

.dashboard-back-link {
  justify-self: start;
  width: fit-content;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.dashboard-heading {
  min-width: 0;
}

.dashboard-side-controls {
  width: min(100%, 41rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.dashboard-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.05;
}

.dashboard-subtitle {
  max-width: 42rem;
  margin: 0.2rem 0 0;
  color: #4f5563;
  line-height: 1.35;
  font-size: 0.95rem;
}

.dashboard-filters {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  background: #ffffff;
}

.dashboard-filters label,
.dashboard-category-filter {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  color: #1f2430;
  font-size: 0.72rem;
}

.dashboard-filters label span,
.dashboard-category-filter legend {
  font-weight: 600;
}

.dashboard-category-filter {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dashboard-category-filter legend {
  margin-bottom: 0.08rem;
  padding: 0;
}

.dashboard-category-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  overflow: visible;
  white-space: nowrap;
}

.dashboard-category-option {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-filters > label {
  flex: 0 0 9.5rem;
  min-width: 0;
}

.dashboard-category-checkbox {
  margin: 0;
  width: 0.8rem;
  height: 0.8rem;
}

.dashboard-category-checkbox:checked + span {
  font-weight: 700;
  color: #161a44;
}

.dashboard-filters select,
.dashboard-filters input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.32rem 0.46rem;
  border: 1px solid #cfd4df;
  border-radius: 8px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 0.8rem;
}

.dashboard-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  z-index: 2;
}

.dashboard-toolbar-compact {
  align-items: flex-start;
}

.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: flex-start;
  min-height: 0;
  justify-content: flex-end;
}

.dashboard-legend-group {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.dashboard-legend-heading {
  color: #2b3140;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.05;
}

.dashboard-legend-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #445064;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-legend-text {
  display: inline-block;
}

.dashboard-legend-marker {
  display: inline-block;
  flex: 0 0 auto;
}

.dashboard-legend-marker.is-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--legend-color);
}

.dashboard-legend-marker.is-triangle {
  width: 0;
  height: 0;
  border-left: 0.29rem solid transparent;
  border-right: 0.29rem solid transparent;
  border-bottom: 0.52rem solid var(--legend-color);
}

.dashboard-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  line-height: 1;
  position: relative;
  z-index: 3;
}

.dashboard-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.46rem 0.78rem;
  background: transparent;
  color: #8aacc6;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
  position: relative;
  z-index: 4;
}

.dashboard-mode-button.is-active {
  background: #f8f9ff;
  color: #161a44;
}

.dashboard-caption {
  margin: 0;
  color: #4f5563;
  font-size: 0.9rem;
}

.dashboard-stage {
  position: relative;
  display: grid;
  min-height: 24rem;
  z-index: 1;
}

.dashboard-chart-panel {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-chart-panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

.dashboard-chart-panel.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.dashboard-chart-panel canvas {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-empty-state {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #f6f7fb;
  color: #3f4654;
  display: none;
}

.dashboard-empty-state.is-active:not([hidden]) {
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-header__left,
  .site-header__center,
  .site-header__right {
    justify-self: center;
  }

  .site-header__logo {
    min-width: min(100%, 220px);
    min-height: 88px;
    font-size: 1.1rem;
    letter-spacing: 0.28em;
  }

  .side-slider {
    --side-slider-handle-width: 2.4rem;
    --side-slider-panel-width: 9.25rem;
    --side-slider-height: 4.25rem;
  }

  .side-slider__handle {
    flex-basis: var(--side-slider-handle-width);
  }

  .side-slider__panel {
    padding: 0.3rem 0.35rem 0.3rem 0.2rem;
  }

  .dashboard-shell {
    padding: 0.3rem 0.45rem;
  }

  .dashboard-card {
    padding: 0.75rem;
  }

  .dashboard-header,
  .dashboard-toolbar,
  .dashboard-legend {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-side-controls {
    width: 100%;
  }

  .dashboard-filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-filters > label,
  .dashboard-category-filter {
    width: 100%;
  }

  .dashboard-category-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* -------------------------------------------------------------------------- */
/* Header (shared + floating glass nav on items index)                        */
/* -------------------------------------------------------------------------- */

.site-header__pill-link {
  display: inline-block;
  background: #0984e3;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
}

.site-header__pill-link:hover {
  filter: brightness(1.05);
}

.site-header__search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  max-width: min(100%, 22rem);
}

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

.site-header__search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: var(--site-header-search-input-width, 8rem);
  height: var(--site-header-search-input-height, 2.25rem);
  padding: 0 0.75rem;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.site-header__search-input::placeholder {
  color: #94a3b8;
}

.site-header__search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.site-header__search-submit:hover {
  filter: brightness(1.08);
}

.site-header__search-submit--hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__search-input {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__search-input {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__search-input::placeholder {
  color: #94a3b8;
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__search-submit {
  background: #fff;
  color: #1a1024;
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__search-submit {
  background: #0f172a;
  color: #fff;
}

.site-header__currency-form {
  margin: 0;
}

.site-header__currency-menu {
  position: relative;
  display: inline-block;
}

.site-header__currency {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.2rem 0.7rem 0.2rem 0.82rem;
  background-color: #f1f2f6;
  border: 1px solid transparent;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.site-header__currency::-webkit-details-marker {
  display: none;
}

.site-header__currency:focus-visible {
  outline: 2px solid var(--theme-primary-outline-soft);
  outline-offset: 2px;
}

.site-header__currency-value {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-header__currency-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.site-header__currency-menu[open] > .site-header__currency {
  /*box-shadow: 0 12px 28px rgba(31, 10, 45, 0.14); */
}

.site-header__currency-menu[open] > .site-header__currency .site-header__currency-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.site-header__currency-dropdown {
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0rem;
  min-width: 100%;
  padding: 0.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(236, 225, 249, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 40px rgba(31, 10, 45, 0.22);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  overflow: hidden;
  z-index: 2000;
}

.site-header__currency-option {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  margin: 0;
  padding: 0.1rem 0rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #2f1f3b;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header__currency-option--active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-header__currency-option:hover,
.site-header__currency-option:focus-visible {
  background: var(--site-header-currency-option-hover);
  border-color: var(--site-header-currency-option-hover-border);
  color: #fff;
  outline: none;
}

.site-header__menu {
  position: relative;
  align-items: center;
}

.site-header__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  line-height: 1;
  margin: 0;
  list-style: none;
  cursor: pointer;
  color: #0984e3;
  font-weight: 500;
}

.site-header__summary::marker {
  content: "";
}

.site-header__summary::-webkit-details-marker {
  display: none;
}

.site-header__dropdown {
  position: absolute;
  right: 0;
  top: 120%;
  background-color: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  min-width: 160px;
}

.site-header__dropdown-link {
  display: block;
  padding: 10px 15px;
  color: #2d3436;
  text-decoration: none;
  font-size: 0.9em;
}

.site-header__dropdown-link:hover {
  background: #f8f9fa;
}

.site-header__dropdown-link--border {
  border-top: 1px solid #f1f2f6;
}

.site-header__dropdown-rule {
  border: 0;
  border-top: 1px solid #f1f2f6;
  margin: 5px 0;
}

.site-header__signout-form {
  margin: 0;
  display: block;
}

.site-header__signout {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  color: #d63031;
  font-size: 0.9em;
}

.site-header__signout:hover {
  background: #fff5f5;
}

/* Floating nav: transparent at top (hero); glass + narrow after scroll */
.site-header.site-header--floating {
  --site-header-search-input-width: calc(16rem);
  --site-header-search-input-height: 2.25rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(98%, 1320px);
  max-width: 1320px;
  z-index: 1400;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    background 0.4s ease,
    border-color 0.35s ease,
    backdrop-filter 0.4s ease;
}

.site-header.site-header--floating.site-header--floating-scrolled {
  width: min(92%, 860px);
  max-width: 860px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  /* box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1); */
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.site-header.site-header--floating .site-header__logo {
  min-width: auto;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__logo {
  color: var(--theme-on-primary);
  background: var(--theme-glass-on-primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__logo {
  color: #3d434b;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__scope-switch {
  background: var(--theme-glass-on-primary);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__scope-option {
  color: rgba(255, 255, 255, 0.86);
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__scope-option.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--theme-primary-deep);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__scope-switch {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__scope-option {
  color: var(--theme-primary-muted);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__scope-option.is-active {
  background: linear-gradient(135deg, var(--theme-switch-active-start), var(--theme-switch-active-end));
  color: var(--theme-on-primary);
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__currency {
  background: var(--theme-glass-on-primary-strong);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--theme-on-primary);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__currency {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.34);
  color: #3d434b;
}

.site-header.site-header--floating:not(.site-header--floating-scrolled) .site-header__summary {
  color: var(--theme-on-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-header.site-header--floating.site-header--floating-scrolled .site-header__summary {
  color: var(--theme-primary-ink-strong);
  text-shadow: none;
}

/* Minimal header override: keep the shared/floating styles for later,
   but render the current navbar as a plain functional bar. */
.site-header.site-header--minimal {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header.site-header--minimal .site-header__logo {
  min-width: auto;
  min-height: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header.site-header--minimal .site-header__scope-switch {
  padding: 0;
  gap: 0.4rem;
}

.site-header__scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}

.site-header__scope-toggle:hover {
  background: #f9fafb;
}

.site-header__scope-toggle-text {
  max-width: 10rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header__scope-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2rem;
  height: 1.125rem;
  padding: 0 0.125rem;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.18s ease;
}

.site-header__scope-toggle-thumb {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.site-header__scope-toggle.is-college .site-header__scope-toggle-track {
  background: #111827;
}

.site-header__scope-toggle.is-college .site-header__scope-toggle-thumb {
  transform: translateX(0.875rem);
}

.site-header.site-header--minimal .site-header__scope-option {
  min-height: auto;
  max-width: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-header.site-header--minimal .site-header__scope-option.is-active {
  box-shadow: none;
  background: #f3f4f6;
}

.site-header__currency-select {
  min-height: 2.2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.site-header.site-header--minimal .site-header__search-form {
  flex: 1 1 16rem;
  max-width: 20rem;
  gap: 0.5rem;
}

.site-header.site-header--minimal .site-header__search-input {
  width: 100%;
  border-radius: 4px;
}

.site-header.site-header--minimal .site-header__search-submit {
  width: auto;
  min-width: 4.5rem;
  padding: 0 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
}

.site-header__icon-link,
.site-header__sell-link,
.site-header__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header__home-link {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.site-header__home-link:hover {
  filter: brightness(1.08);
}

.site-header__sell-link {
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.site-header__sell-link:hover {
  filter: brightness(1.08);
}

.site-header__icon-link:hover {
  background: #f8f9fa;
}

.site-header__icon-image {
  width: 20px;
  height: 20px;
  display: block;
}

.site-header__hamburger {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.site-header__hamburger-bar {
  flex: 0 0 auto;
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-header__account-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__guest-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header__auth-button,
.site-header__auth-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  color: #172033;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(190, 200, 214, 0.78);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.site-header__auth-button:hover,
.site-header__auth-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(190, 200, 214, 0.9);
  background: rgba(255, 255, 255, 0.78);
}

.site-header__auth-button--secondary,
.site-header__auth-button--secondary:visited {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  box-shadow: 0 14px 30px var(--theme-primary-shadow);
}

.site-header__auth-button--secondary:hover,
.site-header__auth-button--secondary:focus-visible {
  filter: brightness(1.06);
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  box-shadow: 0 14px 30px var(--theme-primary-shadow);
}

.site-header__user-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* FOR NOTIF HOVER :: START */

.site-header__notification-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header__notification-link {
  position: relative;
  overflow: visible;
}
.site-header__notification-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.38rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--theme-primary-dark, #4c1d72);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.98),
    0 0 8px color-mix(in srgb, var(--theme-primary, #6f2c91) 45%, white);
  pointer-events: none;
}
.site-header__notification-shell::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background: transparent;
}

.site-header__notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  overflow: hidden;
}

.site-header__notification-shell:hover .site-header__notification-dropdown,
.site-header__notification-shell:focus-within .site-header__notification-dropdown {
  display: block;
}

.site-header__notification-item {
  display: block;
  padding: 10px 12px;
  color: #2d3436;
  text-decoration: none;
  border-bottom: 1px solid #f1f2f6;
}

.site-header__notification-item + .site-header__notification-item {
  margin-top: 2px;
}

.site-header__notification-item:hover {
  background: #f8f9fa;
}

.site-header__notification-preview {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9em;
}

.site-header__notification-time {
  display: block;
  margin-top: 4px;
  font-size: 0.78em;
  color: #636e72;
}

.site-header__notification-footer {
  display: block;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  color: #111827;
  background: #fafafa;
  font-size: 0.9em;
}

.site-header__notification-footer:hover {
  background: #f3f4f6;
}

.site-header__notification-empty {
  padding: 12px;
  color: #636e72;
  font-size: 0.9em;
}

/* FOR NOTIF HOVER :: END */


.site-header.site-header--minimal .site-header__dropdown {
  display: none;
  top: calc(100% + 4px);
}

/* Hover-shell mechanism for dropdowns: hamburger, profile, currency */
.site-header__hover-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header__hover-shell::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background: transparent;
}

.site-header__hover-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  overflow: hidden;
  min-width: 160px;
}

.site-header__hover-shell:hover .site-header__hover-dropdown,
.site-header__hover-shell:focus-within .site-header__hover-dropdown {
  display: block;
}

.enhanced-select {
  position: relative;
  display: block;
  width: 100%;
}

.enhanced-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.enhanced-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.enhanced-select__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.enhanced-select__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enhanced-select__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border: 1px solid rgba(223, 230, 233, 0.96);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.97) 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  z-index: 2200;
  overflow-y: auto;
  max-height: min(20rem, 60vh);
}

.enhanced-select.is-open .enhanced-select__trigger {
  border-color: rgba(191, 201, 214, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.enhanced-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.88rem 1rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.enhanced-select__option + .enhanced-select__option {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.enhanced-select__option:hover,
.enhanced-select__option:focus-visible {
  background: rgba(248, 250, 252, 0.96);
  color: #111827;
  outline: none;
}

.enhanced-select__option.is-selected {
  background: rgba(240, 244, 248, 0.98);
  color: var(--theme-primary-ink-strong);
}

.enhanced-select__option.is-selected::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--theme-primary);
  box-shadow: 0 0 0 5px rgba(111, 33, 138, 0.08);
  flex: 0 0 auto;
}

.enhanced-select__option.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.enhanced-select__trigger.listing-form__select,
.enhanced-select__trigger.profile-form__select,
.enhanced-select__trigger.auth-form__select {
  padding-right: 2.8rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 1rem) 50%;
  background-size: 0.62rem 0.42rem;
  background-repeat: no-repeat;
}

.site-header__menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-modal {
  width: min(32rem, calc(100vw - 2rem));
  max-width: none;
  border: none;
  padding: 0;
  background: transparent;
}

.site-modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.site-modal__card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.site-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header.site-header--minimal .site-header__menu[open] .site-header__dropdown {
  display: block;
}

@media (max-width: 900px) {
  .site-header.site-header--floating {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    transform: none;
  }

  .site-header.site-header--floating.site-header--floating-scrolled {
    width: auto;
    max-width: none;
  }

  .site-header__scope-switch {
    width: min(100%, 16rem);
  }

  .site-header__scope-option {
    max-width: none;
    flex: 1 1 0;
  }

  .site-header__scope-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .site-header.site-header--minimal {
    align-items: stretch;
  }

  .site-header.site-header--minimal .site-header__search-form {
    flex-basis: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Items index (marketplace landing)                                          */
/* -------------------------------------------------------------------------- */

.items-index {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.items-hero {
  width: 100%;
  margin: 0;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  padding: clamp(4rem, 10vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.items-index-strip {
  margin: 0 0 0.9rem;
  text-align: center;
  color: var(--theme-primary-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.items-index--floating-nav .items-hero {
  padding-top: clamp(5.5rem, 14vw, 9rem);
}

.items-hero__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.items-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.items-hero__lede {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  opacity: 0.94;
}

.items-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #1a1024;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.items-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.items-main {
  max-width: min(1680px, 96vw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 2.5vw, 2rem) 4rem;
  background: #eceff0;
}

.items-filters-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.items-category-strip {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.items-category-strip__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 1000px;
}

/* for the item categorie selection text (the boxes)*/
.items-category-strip__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.9rem;
  border-radius: 5px;
  border: 1px solid var(--theme-primary-border-soft);
  background: #ffffff;
  color: var(--theme-primary-chip-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.items-category-strip__item:hover,
.items-category-strip__item:focus-visible {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  transform: translateY(-1px);
  /*box-shadow: 0 10px 20px var(--theme-primary-shadow);*/
  outline: none;
}

.items-category-strip__item.is-active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--theme-on-primary);
  /*box-shadow: 0 10px 20px var(--theme-primary-shadow);*/
}

.items-search-wrap .search-bar-container {
  margin: 0 0 1.25rem;
  justify-content: stretch;
}

.items-search-wrap .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.items-search-wrap .form-control {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.items-search-wrap .form-select {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.9rem;
}

.items-search-wrap .btn-primary {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.items-search-wrap .btn-primary:hover {
  filter: brightness(1.08);
}

.items-price-panel {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}

.items-price-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.items-price-label {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #334155;
}

.items-price-slider {
  width: 100% !important;
  margin: 1.25rem 0 !important;
}

.items-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.items-price-apply {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.items-price-reset {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: none;
}

.items-price-reset:hover {
  text-decoration: underline;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0rem, 1vw, 1.75rem);
}

@media (max-width: 1399px) {
  .items-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

.market-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.market-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.market-card__link:focus-visible {
  outline: 3px solid var(--theme-primary-outline);
  outline-offset: 4px;
}

.market-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    145deg,
    var(--theme-card-gradient-start) 0%,
    var(--theme-card-gradient-mid) 55%,
    var(--theme-card-gradient-end) 100%
  );
  overflow: hidden;
}

.market-card__placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.market-card__price {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.market-card__body {
  padding: 1rem 1.1rem 1.35rem;
}

.market-card__meta {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.market-card__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-card__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-card__hint {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-primary);
}

.search-results-page {
  min-height: 100vh;
  background: #eceff0;
  overflow-x: clip;
}

.search-results-page__hero {
  height: clamp(9rem, 18vw, 12rem);
  background: var(--theme-primary);
  box-shadow: inset 0 -1px 0 var(--theme-glass-on-primary-strong);
}

.search-results-page__shell {
  position: relative;
  margin-top: 0;
  padding-top: 1.25rem;
}

.search-results-page__layout {
  display: grid;
  grid-template-columns: minmax(15.5rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.search-results-page__sidebar {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.search-results-page__sidebar-card {
  position: relative;
  padding: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: calc(100vh - 8rem);
  overflow: hidden;
  overscroll-behavior: contain;
}

.search-results-page__sidebar-scroll {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.15rem 1.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-results-page__sidebar-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.search-results-page__custom-scrollbar {
  position: absolute;
  top: 0.9rem;
  right: 0.3rem;
  bottom: 0.9rem;
  width: 0.42rem;
}

.search-results-page__custom-scrollbar-thumb {
  width: 100%;
  min-height: 1.75rem;
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
}

.search-results-page__sidebar-card.is-scrollable .search-results-page__sidebar-scroll {
  padding-right: 1.4rem;
}

.search-results-page__sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.search-results-page__sidebar-title {
  margin: 0;
  color: #1a1024;
  font-size: 1.05rem;
}

.search-results-page__sidebar-clear,
.search-results-page__clear {
  color: var(--theme-primary);
  font-weight: 700;
  text-decoration: none;
}

.search-results-page__sidebar-clear:hover,
.search-results-page__clear:hover {
  text-decoration: underline;
}

.search-results-page__filter-group {
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.search-results-page__filter-group:last-child {
  border-bottom: 0;
}

.search-results-page__filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #1f2937;
}

.search-results-page__filter-summary::-webkit-details-marker {
  display: none;
}

.search-results-page__filter-summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.search-results-page__filter-group[open] .search-results-page__filter-summary::after {
  transform: rotate(225deg);
}

.search-results-page__filter-list {
  display: grid;
  gap: 0.45rem;
  padding: 0 0 1rem;
}

.search-results-page__price-form {
  display: grid;
  gap: 0.8rem;
}

.search-results-page__price-label {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.search-results-page__price-slider {
  width: calc(100% - 0.5rem);
  margin: 0 0.25rem !important;
}

.search-results-page__price-reset {
  color: var(--theme-primary);
  font-weight: 700;
  text-decoration: none;
}

.search-results-page__price-reset:hover {
  text-decoration: underline;
}

.search-results-page__filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.search-results-page__filter-link:hover,
.search-results-page__filter-link.is-active {
  background: var(--theme-primary-surface-tint);
  color: var(--theme-primary-accent-text);
}

.search-results-page__content {
  min-width: 0;
}

.search-results-page__summary-card {
  padding: 1.35rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-results-page__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--theme-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-results-page__title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.search-results-page__summary {
  margin: 0.45rem 0 0;
  color: #64748b;
  line-height: 1.55;
}

.search-results-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.search-results-page__count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--theme-primary-surface-tint);
  color: var(--theme-primary-accent-text);
  font-weight: 700;
  white-space: nowrap;
}

.search-results-page__grid {
  margin-top: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.search-results-page__empty {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.35rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: #475569;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1280px) {
  .search-results-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .search-results-page__layout {
    grid-template-columns: 1fr;
  }

  .search-results-page__sidebar {
    position: static;
  }

  .search-results-page__sidebar-card {
    max-height: none;
  }

  .search-results-page__sidebar-scroll {
    max-height: none;
    overflow: visible;
  }

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

@media (max-width: 640px) {
  .items-category-strip__item {
    width: calc(50% - 2.5px);
  }

  .search-results-page__summary-card,
  .search-results-page__sidebar-card {
    padding: 0;
  }

  .search-results-page__summary-card {
    padding: 1rem;
  }

  .search-results-page__sidebar-scroll {
    padding: 1rem;
  }

  .search-results-page__sidebar-card.is-scrollable .search-results-page__sidebar-scroll {
    padding-right: 1.3rem;
  }

  .search-results-page__custom-scrollbar {
    top: 0.8rem;
    right: 0.25rem;
    bottom: 0.8rem;
  }

  .search-results-page__grid {
    grid-template-columns: 1fr;
  }
}

body[data-theme="new-asia"] {
  --theme-primary: #d55e1d;
  --theme-primary-dark: #a73f12;
  --theme-primary-deep: #c24f1a;
  --theme-primary-ink: #66240d;
  --theme-primary-ink-strong: #4f1808;
  --theme-primary-chip-text: #a84a1c;
  --theme-primary-muted: #8c6754;
  --theme-primary-accent-text: #b24a1b;
  --theme-primary-hover: rgba(213, 94, 29, 0.56);
  --theme-primary-hover-border: rgba(246, 201, 144, 0.34);
  --theme-primary-border-soft: rgba(213, 94, 29, 0.14);
  --theme-primary-surface-tint: rgba(213, 94, 29, 0.1);
  --theme-primary-shadow: rgba(213, 94, 29, 0.18);
  --theme-primary-switch-shadow: rgba(134, 51, 15, 0.2);
  --theme-primary-outline-soft: rgba(213, 94, 29, 0.32);
  --theme-primary-outline: rgba(213, 94, 29, 0.45);
  --theme-primary-scrollbar: rgba(213, 94, 29, 0.35);
  --theme-side-slider-start: #c35019;
  --theme-side-slider-end: #a73f12;
  --theme-switch-active-start: rgba(223, 108, 48, 0.96);
  --theme-switch-active-end: rgba(167, 63, 18, 0.96);
  --theme-card-gradient-start: #6a2911;
  --theme-card-gradient-mid: #d55e1d;
  --theme-card-gradient-end: #9e3b13;
}

body[data-theme="united"] {
  --theme-primary: #3a2f8f;
  --theme-primary-dark: #251f63;
  --theme-primary-deep: #31297d;
  --theme-primary-ink: #171247;
  --theme-primary-ink-strong: #100c34;
  --theme-primary-chip-text: #2d2870;
  --theme-primary-muted: #5c577e;
  --theme-primary-accent-text: #342d81;
  --theme-primary-hover: rgba(58, 47, 143, 0.56);
  --theme-primary-hover-border: rgba(237, 53, 66, 0.34);
  --theme-primary-border-soft: rgba(58, 47, 143, 0.14);
  --theme-primary-surface-tint: rgba(58, 47, 143, 0.1);
  --theme-primary-shadow: rgba(58, 47, 143, 0.18);
  --theme-primary-switch-shadow: rgba(36, 30, 89, 0.2);
  --theme-primary-outline-soft: rgba(58, 47, 143, 0.32);
  --theme-primary-outline: rgba(58, 47, 143, 0.45);
  --theme-primary-scrollbar: rgba(58, 47, 143, 0.35);
  --theme-side-slider-start: #342c84;
  --theme-side-slider-end: #251f63;
  --theme-switch-active-start: rgba(75, 62, 171, 0.96);
  --theme-switch-active-end: rgba(37, 31, 99, 0.96);
  --theme-card-gradient-start: #18143d;
  --theme-card-gradient-mid: #3a2f8f;
  --theme-card-gradient-end: #231d67;
}

body[data-theme="shaw"] {
  --theme-primary: #9a2743;
  --theme-primary-dark: #74182f;
  --theme-primary-deep: #892139;
  --theme-primary-ink: #4d0e20;
  --theme-primary-ink-strong: #390916;
  --theme-primary-chip-text: #7b2036;
  --theme-primary-muted: #805966;
  --theme-primary-accent-text: #83213a;
  --theme-primary-hover: rgba(154, 39, 67, 0.56);
  --theme-primary-hover-border: rgba(201, 176, 108, 0.34);
  --theme-primary-border-soft: rgba(154, 39, 67, 0.14);
  --theme-primary-surface-tint: rgba(154, 39, 67, 0.1);
  --theme-primary-shadow: rgba(154, 39, 67, 0.18);
  --theme-primary-switch-shadow: rgba(101, 23, 42, 0.2);
  --theme-primary-outline-soft: rgba(154, 39, 67, 0.32);
  --theme-primary-outline: rgba(154, 39, 67, 0.45);
  --theme-primary-scrollbar: rgba(154, 39, 67, 0.35);
  --theme-side-slider-start: #872039;
  --theme-side-slider-end: #74182f;
  --theme-switch-active-start: rgba(168, 47, 77, 0.96);
  --theme-switch-active-end: rgba(116, 24, 47, 0.96);
  --theme-card-gradient-start: #40111c;
  --theme-card-gradient-mid: #9a2743;
  --theme-card-gradient-end: #68172b;
}

body[data-theme="morningside"] {
  --theme-primary: #ca7307;
  --theme-primary-dark: #9d4c00;
  --theme-primary-deep: #b86003;
  --theme-primary-ink: #5c2900;
  --theme-primary-ink-strong: #431d00;
  --theme-primary-chip-text: #944b06;
  --theme-primary-muted: #8d705d;
  --theme-primary-accent-text: #a65302;
  --theme-primary-hover: rgba(202, 115, 7, 0.56);
  --theme-primary-hover-border: rgba(186, 50, 118, 0.3);
  --theme-primary-border-soft: rgba(202, 115, 7, 0.14);
  --theme-primary-surface-tint: rgba(202, 115, 7, 0.1);
  --theme-primary-shadow: rgba(202, 115, 7, 0.18);
  --theme-primary-switch-shadow: rgba(135, 63, 3, 0.2);
  --theme-primary-outline-soft: rgba(202, 115, 7, 0.32);
  --theme-primary-outline: rgba(202, 115, 7, 0.45);
  --theme-primary-scrollbar: rgba(202, 115, 7, 0.35);
  --theme-side-slider-start: #b15f02;
  --theme-side-slider-end: #9d4c00;
  --theme-switch-active-start: rgba(221, 136, 33, 0.96);
  --theme-switch-active-end: rgba(157, 76, 0, 0.96);
  --theme-card-gradient-start: #6a2d00;
  --theme-card-gradient-mid: #ca7307;
  --theme-card-gradient-end: #8f1467;
}

body[data-theme="s-h-ho"] {
  --theme-primary: #1453a5;
  --theme-primary-dark: #0f3c78;
  --theme-primary-deep: #124894;
  --theme-primary-ink: #09274d;
  --theme-primary-ink-strong: #061c39;
  --theme-primary-chip-text: #10488f;
  --theme-primary-muted: #506886;
  --theme-primary-accent-text: #114c96;
  --theme-primary-hover: rgba(20, 83, 165, 0.56);
  --theme-primary-hover-border: rgba(228, 191, 78, 0.34);
  --theme-primary-border-soft: rgba(20, 83, 165, 0.14);
  --theme-primary-surface-tint: rgba(20, 83, 165, 0.1);
  --theme-primary-shadow: rgba(20, 83, 165, 0.18);
  --theme-primary-switch-shadow: rgba(13, 54, 108, 0.2);
  --theme-primary-outline-soft: rgba(20, 83, 165, 0.32);
  --theme-primary-outline: rgba(20, 83, 165, 0.45);
  --theme-primary-scrollbar: rgba(20, 83, 165, 0.35);
  --theme-side-slider-start: #124791;
  --theme-side-slider-end: #0f3c78;
  --theme-switch-active-start: rgba(25, 92, 181, 0.96);
  --theme-switch-active-end: rgba(15, 60, 120, 0.96);
  --theme-card-gradient-start: #0c2447;
  --theme-card-gradient-mid: #1453a5;
  --theme-card-gradient-end: #0d356e;
}

body[data-theme="c-w-chu"] {
  --theme-primary: #af164b;
  --theme-primary-dark: #830d38;
  --theme-primary-deep: #9b1343;
  --theme-primary-ink: #580821;
  --theme-primary-ink-strong: #400517;
  --theme-primary-chip-text: #8d143f;
  --theme-primary-muted: #895765;
  --theme-primary-accent-text: #991343;
  --theme-primary-hover: rgba(175, 22, 75, 0.56);
  --theme-primary-hover-border: rgba(239, 198, 212, 0.34);
  --theme-primary-border-soft: rgba(175, 22, 75, 0.14);
  --theme-primary-surface-tint: rgba(175, 22, 75, 0.1);
  --theme-primary-shadow: rgba(175, 22, 75, 0.18);
  --theme-primary-switch-shadow: rgba(115, 12, 50, 0.2);
  --theme-primary-outline-soft: rgba(175, 22, 75, 0.32);
  --theme-primary-outline: rgba(175, 22, 75, 0.45);
  --theme-primary-scrollbar: rgba(175, 22, 75, 0.35);
  --theme-side-slider-start: #991342;
  --theme-side-slider-end: #830d38;
  --theme-switch-active-start: rgba(188, 35, 89, 0.96);
  --theme-switch-active-end: rgba(131, 13, 56, 0.96);
  --theme-card-gradient-start: #470f21;
  --theme-card-gradient-mid: #af164b;
  --theme-card-gradient-end: #770f33;
}

body[data-theme="lee-woo-sing"] {
  --theme-primary: #0f3a78;
  --theme-primary-dark: #0b2b59;
  --theme-primary-deep: #0d356d;
  --theme-primary-ink: #061c3d;
  --theme-primary-ink-strong: #041328;
  --theme-primary-chip-text: #0d3266;
  --theme-primary-muted: #4f6177;
  --theme-primary-accent-text: #0e3671;
  --theme-primary-hover: rgba(15, 58, 120, 0.56);
  --theme-primary-hover-border: rgba(233, 178, 38, 0.34);
  --theme-primary-border-soft: rgba(15, 58, 120, 0.14);
  --theme-primary-surface-tint: rgba(15, 58, 120, 0.1);
  --theme-primary-shadow: rgba(15, 58, 120, 0.18);
  --theme-primary-switch-shadow: rgba(10, 39, 80, 0.2);
  --theme-primary-outline-soft: rgba(15, 58, 120, 0.32);
  --theme-primary-outline: rgba(15, 58, 120, 0.45);
  --theme-primary-scrollbar: rgba(15, 58, 120, 0.35);
  --theme-side-slider-start: #0d356c;
  --theme-side-slider-end: #0b2b59;
  --theme-switch-active-start: rgba(20, 72, 147, 0.96);
  --theme-switch-active-end: rgba(11, 43, 89, 0.96);
  --theme-card-gradient-start: #0a1f41;
  --theme-card-gradient-mid: #0f3a78;
  --theme-card-gradient-end: #0b2a58;
}

body {
  background: #eceff0;
  color: #172033;
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.site-flash-stack {
  width: min(1200px, calc(100% - 1.2rem));
  margin: 0.85rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.site-flash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-flash__message {
  flex: 1;
}

.site-flash--notice {
  background: rgba(236, 253, 243, 0.9);
  border-color: rgba(134, 239, 172, 0.6);
  color: #166534;
}

.site-flash--alert {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(252, 165, 165, 0.55);
  color: #991b1b;
}

.site-flash__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-flash__dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: currentColor;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: background 140ms ease, transform 140ms ease;
}

.site-flash__dismiss:hover,
.site-flash__dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.05);
}

.site-header.site-header--minimal {
  position: sticky;
  top: 0.85rem;
  z-index: 1100;
  width: min(1240px, calc(100% - 1.2rem));
  margin: 0.85rem auto 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.48) 100%);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.site-header.site-header--minimal.site-header--floating-scrolled {
  transform: translateY(-0.15rem);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.site-header.site-header--minimal .site-header__logo,
.site-header__scope-toggle,
.site-header__currency-select,
.site-header__scope-select,
.site-header__icon-link,
.site-header__sell-link,
.site-header__summary {
  min-height: 2.85rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  color: #172033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.site-header.site-header--minimal .site-header__logo {
  min-width: auto;
  color: var(--theme-primary-ink-strong);
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header.site-header--minimal .site-header__logo:hover,
.site-header__scope-toggle:hover,
.site-header__icon-link:hover,
.site-header__summary:hover,
.site-header__currency-select:hover,
.site-header__scope-select:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.site-header__sell-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.site-header.site-header--minimal .site-header__scope-switch {
  padding: 0;
  gap: 0.5rem;
}

.site-header__scope-toggle {
  gap: 0.8rem;
  text-decoration: none;
}

.site-header__scope-toggle-track {
  width: 2.2rem;
  height: 1.2rem;
  background: rgba(148, 163, 184, 0.44);
}

.site-header__scope-toggle-thumb {
  width: 0.95rem;
  height: 0.95rem;
}

.site-header__scope-toggle.is-college .site-header__scope-toggle-track {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
}

.site-header.site-header--minimal .site-header__search-form {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  max-width: none;
  gap: 0.55rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.site-header--minimal .site-header__search-input {
  width: 100%;
  min-height: 2.7rem;
  border: 0;
  background: transparent;
}

.site-header.site-header--minimal .site-header__search-submit {
  min-width: 2.9rem;
  height: 2.7rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
}

.site-header__currency-select,
.site-header__scope-select {
  font: inherit;
  font-weight: 700;
}

.site-header__icon-link,
.site-header__sell-link,
.site-header__summary,
.site-header__scope-toggle,
.site-header__currency-select,
.site-header__scope-select,
.site-header.site-header--minimal .site-header__logo,
.site-header.site-header--minimal .site-header__search-submit {
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-header__sell-link {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(31, 10, 45, 0.16);
}

.site-header__icon-link {
  padding-inline: 0.8rem;
}

.site-header__account-actions {
  gap: 0.45rem;
}

.site-header.site-header--minimal .site-header__dropdown {
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 14rem;
  padding: 0.45rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__dropdown-link,
.site-header__signout {
  border-radius: 16px;
}

.site-header__notification-dropdown {
  top: calc(100% + 0.8rem);
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.45rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__notification-item {
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  border-bottom: 0;
}

.site-header__notification-item--fresh {
  background: rgba(237, 240, 248, 0.92);
}

.site-header__notification-item:hover {
  background: rgba(248, 250, 252, 0.96);
}

.site-header__notification-footer {
  margin-top: 0.25rem;
  border-radius: 16px;
}

.items-index {
  min-height: 100vh;
  background: #eceff0;
}

.items-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2) 0%, transparent 26%),
    linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 68%, var(--theme-primary-ink-strong) 100%);
  padding: clamp(6.4rem, 14vw, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(7rem, 14vw, 9rem);
}

.items-index--floating-nav .items-hero {
  padding-top: clamp(8.5rem, 16vw, 10rem);
}

.items-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.items-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.items-hero__lede {
  max-width: 36rem;
  margin-inline: auto;
}

.items-hero__cta {
  color: var(--theme-primary-ink-strong);
}

.items-main {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 1.2rem));
  margin: -3.4rem auto 0;
  padding: 1.6rem clamp(1rem, 2vw, 1.6rem) 3rem;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(236, 239, 240, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.4), 0 32px 64px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.items-index-strip {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.items-category-strip__grid {
  gap: 0.5rem;
}

.items-category-strip__item {
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.market-card {
  border-radius: 30px;
}

.market-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.2), transparent 52%),
    linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-card-gradient-mid) 55%, var(--theme-card-gradient-end) 100%);
}

.market-card__placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-card__placeholder-initials {
  align-self: end;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.market-page {
  --market-page-transition-depth: 16rem;
  min-height: calc(100vh - 5rem);
  padding-bottom: 4rem;
  background: linear-gradient(
    180deg,
    var(--theme-primary) 0,
    var(--theme-primary) var(--market-page-transition-depth),
    #eceff0 var(--market-page-transition-depth),
    #eceff0 100%
  );
}

.market-page--soft {
  --market-page-transition-depth: 12rem;
}

.market-page--item {
  --market-page-transition-depth: 18rem;
}

.market-page__hero {
  padding: clamp(5.5rem, 12vw, 7.4rem) 0 2rem;
}

.market-page__hero-inner,
.market-page__body {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.market-page__hero-inner {
  display: grid;
  gap: 1rem;
  padding: 0 0 2rem;
  color: #fff;
}

.market-page__hero-inner--wide,
.market-page__body--wide {
  width: min(1320px, calc(100% - 2rem));
}

.market-page__eyebrow,
.market-section-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-page__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.market-page__title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.04;
}

.market-page__lede {
  margin: 0;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.03rem;
  line-height: 1.6;
}

.market-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.market-back-link,
.market-back-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.7rem;
  margin-bottom: 1.15rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(31, 10, 45, 0.12);
}

.market-layout,
.market-split,
.market-section-grid,
.market-summary-grid {
  display: grid;
  gap: 1.35rem;
}

.market-split {
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.market-split--profile {
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
}

.market-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.35rem;
}

.market-summary-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-page__body {
  display: grid;
  gap: 1.35rem;
}

.market-surface-card,
.profile-form,
.listing-form,
.chat-compose {
  display: grid;
  gap: 0.1rem;
}

.market-surface-card {
  padding: 1.45rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.market-surface-card--muted {
  background: rgba(255, 255, 255, 0.82);
}

.market-section-eyebrow {
  color: var(--theme-primary);
}

.market-section-title {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
  line-height: 1.1;
}

.market-note {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.market-button,
.market-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(31, 10, 45, 0.16);
}

.market-button--light,
.market-button--light:visited {
  background: #fff;
  color: #1f2937;
}

.market-button--ghost-light,
.market-button--ghost-light:visited {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow: none;
}

.market-button--secondary,
.market-button--secondary:visited {
  background: #eef2f7;
  border-color: rgba(148, 163, 184, 0.36);
  color: #334155;
  box-shadow: none;
}

.market-button--danger,
.market-button--danger:visited {
  background: linear-gradient(135deg, #c62828 0%, #991b1b 100%);
}

.market-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.market-button-row form {
  margin: 0;
}

.notification-card__actions form,
.profile-action-row form,
.profile-inline-offer__actions form {
  margin: 0;
}

.market-summary-card__label {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-summary-card__value {
  color: #1f2937;
  font-size: 1.2rem;
}

.market-data-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.market-data-list dt {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-data-list dd {
  margin: 0.2rem 0 0;
  color: #111827;
  font-weight: 600;
}

.market-form-field,
.profile-form__field {
  display: grid;
  gap: 0.55rem;
}

.market-form-field label,
.market-form-field__label,
.profile-form__field label {
  color: #111827;
  font-weight: 700;
}

.profile-form__select,
.market-input,
.item-show__textarea,
.chat-compose__textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #d6dee8;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.market-input--textarea,
.item-show__textarea,
.chat-compose__textarea {
  min-height: 8rem;
  resize: vertical;
}

.market-map {
  min-height: 19rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.market-map--compact {
  min-height: 13.5rem;
}

.market-text-link {
  color: var(--theme-primary);
  font-weight: 700;
  text-decoration: none;
}

.market-empty-state {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.94);
  color: #475569;
}

.market-empty-state p {
  margin: 0;
}

.market-empty-state--inline {
  background: rgba(241, 245, 249, 0.9);
}

.listing-form-page .market-page__body {
  margin-top: -1.5rem;
}

.listing-form-page__split {
  grid-template-columns: minmax(18.5rem, 19.5rem) minmax(0, 1fr);
  gap: 1rem;
}

.listing-form-page__checklist {
  width: 100%;
  max-width: 19.5rem;
}

.listing-form-page__details {
  width: 100%;
}

.listing-form-page--new .market-page__body,
.listing-form-page--edit .market-page__body {
  margin-top: 0.55rem;
}

.listing-form__tips {
  display: grid;
  gap: 0.85rem;
}

.listing-form__tip {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.listing-form__errors {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(254, 242, 242, 0.92);
  border: 1px solid rgba(252, 165, 165, 0.55);
  color: #991b1b;
}

.listing-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.listing-form__grid + .listing-form__toggle {
  margin-top: 2px;
}

.listing-form__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.listing-form__toggle input {
  margin-top: 0.25rem;
  accent-color: var(--theme-primary);
}

.listing-form__toggle-copy {
  display: grid;
  gap: 0.18rem;
}

.market-form-field--upload {
  margin-bottom: 5px;
}

.listing-form__upload {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(214, 222, 232, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.listing-form__upload-callout {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  min-height: 8.25rem;
  padding: 1.25rem 1.1rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.96) 100%),
    linear-gradient(145deg, var(--theme-primary-surface-tint) 0%, rgba(255, 255, 255, 0.2) 100%);
  border: 1px dashed var(--theme-primary-outline-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.listing-form__upload-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.listing-form__upload-callout:focus-within {
  border-color: var(--theme-primary-outline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 18px 34px var(--theme-primary-shadow);
}

.listing-form__upload-copy,
.listing-form__upload-action {
  position: relative;
  z-index: 1;
}

.listing-form__upload-copy {
  display: grid;
  gap: 0.18rem;
  justify-items: center;
  text-align: center;
}

.listing-form__upload-copy strong {
  color: var(--theme-primary-ink-strong);
  font-size: 1rem;
}

.listing-form__upload-copy span {
  max-width: 28rem;
  color: #5d6b84;
  font-size: 0.88rem;
  line-height: 1.45;
}

.listing-form__upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 24px var(--theme-primary-shadow);
  cursor: pointer;
}

.listing-form__upload-action-icon,
.listing-form__upload-action-icon::before {
  position: relative;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.listing-form__upload-action-icon {
  width: 0.9rem;
  height: 0.16rem;
}

.listing-form__upload-action-icon::before {
  position: absolute;
  left: 0.37rem;
  top: -0.37rem;
  width: 0.16rem;
  height: 0.9rem;
}

.listing-form__upload-action:hover,
.listing-form__upload-action:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.listing-form__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.listing-form__upload-note {
  margin: 0;
  color: #5d6b84;
  font-size: 0.85rem;
  line-height: 1.45;
}

.listing-form__upload.has-files .listing-form__upload-action {
  background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary-deep) 100%);
}

.listing-form__upload.has-files .listing-form__upload-copy span {
  color: var(--theme-primary-ink);
  font-weight: 600;
}

.profile-show-page {
  color: #172033;
}

.profile-show__hero {
  padding-bottom: 5.25rem;
}

.profile-show__hero-card,
.profile-show__hero-copy,
.profile-show__hero-panel,
.profile-show__hero-metrics,
.profile-show__sections,
.profile-show__section,
.profile-show__rows,
.profile-item-row,
.profile-item-row__identity,
.profile-item-panel,
.profile-offer-list,
.profile-pin-form {
  display: grid;
  gap: 0rem;
}

.profile-show__hero-card {
  position: relative;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 22rem);
  align-items: stretch;
  padding: 0.5rem;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.16) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-show__hero-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
}

.profile-show__hero-copy,
.profile-show__hero-panel {
  position: relative;
  z-index: 1;
}

.profile-show__hero-copy {
  align-content: center;
}

.profile-show__hero-panel {
  align-content: start;
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-show__hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--theme-primary-ink-strong);
  font-size: 1.28rem;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.profile-show__hero-panel-copy {
  display: grid;
  gap: 0.3rem;
}

.profile-show__hero-panel-label,
.profile-show__hero-metrics dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-show__hero-panel-title {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.08;
}

.profile-show__hero-panel-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-show__hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.profile-show__hero-metrics div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-show__hero-metrics dd {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.profile-show__content {
  display: grid;
  gap: 1.35rem;
  margin-top: -2.5rem;
  padding-bottom: 4rem;
}

.profile-item-row {
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.profile-item-row__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.profile-item-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

.profile-item-row__title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
  font-size: 1.32rem;
  line-height: 1.08;
}

.profile-item-row__title-link,
.profile-item-row__title-link:visited,
.profile-item-row__link,
.profile-item-row__link:visited {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.profile-item-row__badges,
.profile-inline-offer__actions,
.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-status-badge--live {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.profile-status-badge--pending {
  background: rgba(245, 158, 11, 0.14);
  color: #9a3412;
}

.profile-status-badge--reserved {
  background: rgba(111, 33, 138, 0.12);
  color: var(--theme-primary-accent-text);
}

.profile-status-badge--neutral {
  background: rgba(226, 232, 240, 0.7);
  color: #334155;
}

.profile-item-row__price-block {
  display: grid;
  gap: 0.3rem;
  min-width: 11rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
  justify-items: end;
}

.profile-item-row__price-label,
.profile-item-panel__label {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-item-row__price-value {
  color: #172033;
  font-size: 1.42rem;
  line-height: 1;
}

.profile-item-row__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.profile-item-row__details--single {
  grid-template-columns: 1fr;
}

.profile-item-panel {
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.profile-item-panel--activity {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.profile-item-panel--pin {
  background: linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-card-gradient-mid) 55%, var(--theme-card-gradient-end) 100%);
  border-color: transparent;
}

.profile-item-panel--pin .profile-item-panel__label,
.profile-item-panel--pin .profile-item-panel__copy,
.profile-item-panel--pin .profile-pin-display__value {
  color: #fff;
}

.profile-inline-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.profile-action-button,
.profile-action-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-action-button--secondary,
.profile-action-button--secondary:visited {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.28);
  color: #334155;
}

.profile-action-button--danger,
.profile-action-button--danger:visited {
  background: #fff1f2;
  border-color: rgba(244, 63, 94, 0.18);
  color: #9f1239;
}

.profile-pin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-pin-grid__digit {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid rgba(214, 222, 232, 0.92);
  border-radius: 16px;
  background: #fff;
  color: #172033;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.profile-pin-display__value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.22em;
}

.item-show-page {
  color: #172033;
}

.item-show__hero {
  padding: clamp(5.2rem, 10vw, 6.5rem) 0 4.75rem;
}

.item-show__shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.item-show__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.item-show__back-link,
.item-show__back-link:visited {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.item-show__crumb-divider {
  opacity: 0.5;
}

.item-show__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.item-show__headline-copy,
.item-show__headline-main,
.item-show__main,
.item-show__sidebar,
.item-show__offer-form,
.item-show__button-stack {
  display: grid;
  gap: 0.5rem;
}

.item-show__headline-copy,
.item-show__headline-main,
.item-show__main,
.item-show__sidebar,
.item-show__surface,
.item-show__description {
  min-width: 0;
}

.item-show__headline-main {
  grid-template-columns: minmax(0, 1fr) fit-content(18rem);
  align-items: start;
}

.item-show__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-show__subline,
.item-show__inline-link {
  color: rgba(255, 255, 255, 0.9);
}

.item-show__hero-tags,
.item-show__seller-stats,
.item-show__media-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.item-show__hero-tag,
.item-show__seller-stat,
.item-show__media-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.item-show__hero-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.item-show__price-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.item-show__price-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.item-show__price-value {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.item-show__price-status {
  color: rgba(255, 255, 255, 0.9);
}

.item-show__content {
  margin-top: -2.5rem;
  padding-bottom: 4rem;
}

.item-show__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.72fr);
  gap: 1.1rem;
  align-items: start;
}

.item-show__surface {
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
}

.item-show__media-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.item-show__gallery {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.item-show__gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
}

.item-show__gallery-image,
.item-show__gallery-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-show__gallery-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.item-show__gallery-thumb {
  flex: 0 0 auto;
  width: 5.75rem;
  aspect-ratio: 1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.item-show__media-stage {
  position: relative;
  min-height: 28rem;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7) 48%, rgba(241, 245, 249, 0.92) 100%);
}

.item-show__media-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.24;
}

.item-show__media-orb--one {
  top: 2rem;
  left: -2rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, var(--theme-primary) 0%, transparent 72%);
}

.item-show__media-orb--two {
  right: -1.5rem;
  bottom: 1rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, var(--theme-primary-dark) 0%, transparent 74%);
}

.item-show__media-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  width: min(23rem, 74%);
  min-height: 23rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-card-gradient-mid) 55%, var(--theme-card-gradient-end) 100%);
  color: #fff;
}

.item-show__media-chip {
  background: rgba(255, 255, 255, 0.88);
  color: var(--theme-primary-ink-strong);
}

.item-show__section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.1rem;
  margin-bottom: 0.95rem;
}

.item-show__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--theme-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.item-show__section-title {
  margin: 0;
  color: #172033;
  font-size: 1.45rem;
}

.item-show__section-note,
.item-show__description,
.item-show__seller-subtitle {
  margin: 0;
  color: #5c6a82;
  font-size: 1.2rem;
  line-height: 1.6;
}

.item-show__description,
.item-show__description p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-show__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.1rem;
  margin-bottom: 1rem;
}

.item-show__fact {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: #f8fafc;
}

.item-show__map {
  min-height: 15.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.item-show__pickup-travel {
  margin-top: 1rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.72rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(111, 33, 138, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, var(--theme-primary-surface-tint) 100%);
}

.item-show__pickup-travel--empty {
  align-items: start;
}

.item-show__pickup-travel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.item-show__pickup-travel-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.item-show__pickup-travel-value {
  color: var(--theme-primary-ink-strong);
  font-size: 1.15rem;
  font-weight: 800;
}

.item-show__empty-state {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #f8fafc;
  color: #5c6a82;
}

.item-show__seller-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.item-show__seller-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.item-show__secondary-link,
.item-show__secondary-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #172033;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.item-show__primary-button,
.item-show__primary-button:visited,
.item-show__danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.item-show__primary-button,
.item-show__primary-button:visited {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
}

.item-show__primary-button--inline {
  width: auto;
}

.item-show__danger-button {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.item-show__button-form {
  margin: 0;
}

.item-show__modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.item-show__modal-title {
  margin: 0 0 0.3rem;
}

.item-show__modal-close {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 1.2rem;
  cursor: pointer;
}

.notification-page__toolbar,
.notification-page__counts,
.notification-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.notification-page__toolbar {
  justify-content: space-between;
}

.notification-page__toggle,
.notification-page__count-pill,
.notification-page__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.notification-page__toggle input {
  accent-color: var(--theme-primary);
}

.notification-page__tab.is-active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border-color: transparent;
  color: #fff;
}

.notification-card,
.notification-card:visited {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: inherit;
  text-decoration: none;
}

.notification-card__header,
.notification-card__actions,
.chat-page__threads-head,
.chat-page__panel-head,
.chat-page__thread-top,
.chat-message__meta,
.chat-message__ago {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.notification-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.notification-card__badge--pending {
  background: #fff7ed;
  color: #b45309;
}

.notification-card__badge--resolved {
  background: #ecfdf3;
  color: #027a48;
}

.chat-page__layout {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.chat-page__thread-list {
  display: grid;
  gap: 0.8rem;
}

.chat-page__thread-link,
.chat-page__thread-link:visited {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: inherit;
  text-decoration: none;
}

.chat-page__thread-link.is-active,
.chat-message--mine {
  background: rgba(111, 33, 138, 0.08);
  border-color: rgba(111, 33, 138, 0.18);
}

.chat-page__messages {
  min-height: 24rem;
  max-height: 34rem;
  padding: 0.45rem;
  overflow-y: auto;
  display: grid;
  gap: 0.85rem;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.chat-compose__actions {
  display: flex;
  justify-content: flex-end;
}

.chat-message {
  display: grid;
  gap: 0.35rem;
  max-width: min(40rem, 92%);
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.chat-message--mine {
  justify-self: end;
}

@media (max-width: 1100px) {
  .market-split,
  .market-split--profile,
  .profile-show__hero-card,
  .item-show__headline,
  .item-show__layout,
  .chat-page__layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .site-header.site-header--minimal {
    top: 0.65rem;
  }

  .site-header.site-header--minimal .site-header__search-form {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .site-flash-stack,
  .site-header.site-header--minimal,
  .items-main,
  .market-page__hero-inner,
  .market-page__body,
  .market-page__hero-inner--wide,
  .market-page__body--wide,
  .item-show__shell {
    width: calc(100% - 1rem);
  }

  .market-summary-grid,
  .market-summary-grid--triple,
  .item-show__facts,
  .listing-form__grid,
  .profile-show__hero-metrics,
  .profile-pin-grid {
    grid-template-columns: 1fr;
  }
}

.profile-item-row__link {
  color: var(--theme-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-item-panel__copy,
.profile-inline-offer__meta {
  margin: 0;
  color: #5c6a82;
  line-height: 1.6;
}

.item-show__fact-label {
  color: #7a869d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.item-show__fact-value {
  color: #172033;
  font-size: 0.98rem;
}

.item-show__media-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.76;
}

.item-show__media-initials {
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.item-show__media-copy {
  margin: 0;
  max-width: 15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.item-show__seller-name {
  margin: 0;
  color: #172033;
  font-size: 1.35rem;
  line-height: 1.1;
}

.item-show__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d8dfeb;
  border-radius: 18px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.notification-page__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: inherit;
  font-size: 0.8rem;
}

.notification-card__detail,
.notification-card__timestamp {
  margin: 0;
  color: #5c6a82;
  line-height: 1.55;
}

.chat-page__thread-item,
.chat-page__thread-preview,
.chat-page__thread-count,
.chat-message__ago {
  color: #64748b;
}

.chat-page__section-title {
  margin: 0;
  color: #172033;
  font-size: 1.35rem;
}

.chat-page__thread-item,
.chat-page__thread-preview {
  margin: 0;
  line-height: 1.5;
}

.chat-message__body {
  color: #172033;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.items-grid--compact {
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-show-page,
.profile-show__hero-tags,
.profile-show__section-heading,
.notification-page__controls,
.notification-page__list,
.notification-page__stack,
.notification-page__toggle-form,
.site-header__scope-form {
  width: 100%;
}

.profile-action-form,
.item-show__button-form,
.notification-card__actions form {
  margin: 0;
}

.profile-inline-offer__copy,
.item-show__seller-copy,
.chat-compose__field,
.notification-page__stack,
.item-show__form-field {
  display: grid;
  gap: 0.45rem;
}

.profile-inline-offer__headline,
.notification-card__title {
  margin: 0;
  color: #172033;
  line-height: 1.45;
}

.notification-card__title-link,
.notification-card__title-link:visited {
  color: inherit;
  text-decoration: none;
}

.notification-card__title-link:hover,
.notification-card__title-link:focus-visible,
.profile-item-row__link:hover,
.profile-item-row__link:focus-visible {
  text-decoration: underline;
}

.notification-page__stack {
  gap: 1rem;
}

.item-show__action-card,
.item-show__seller-card,
.item-show__support-card {
  display: grid;
  gap: 1rem;
}

.item-show__distance-value {
  color: #172033;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.chat-compose__field {
  margin-bottom: 0.85rem;
}

.site-header__scope-form {
  display: flex;
}

@media (max-width: 640px) {
  .market-section-heading {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------------- */
/* Compact Marketplace Refinement                                            */
/* ------------------------------------------------------------------------- */

html {
  background: #edf1f5;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0, rgba(255, 255, 255, 0.5) 7rem, transparent 7rem),
    linear-gradient(180deg, #f4f6f9 0%, #edf1f5 100%);
  color: #1f2937;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body.is-guest {
  background:
    radial-gradient(circle at top left, rgba(111, 33, 138, 0.07), transparent 25rem),
    linear-gradient(180deg, #f7f8fb 0%, #eef2f6 100%);
}

body a {
  text-underline-offset: 0.15em;
}

.site-flash-stack {
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0.75rem auto 0;
}

.site-flash {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.88rem;
}

.site-header.site-header--minimal {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0 auto 0.8rem;
  padding: 0.6rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(214, 221, 232, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.site-header--minimal .site-header__logo,
.site-header__scope-toggle,
.site-header__scope-select,
.site-header__currency-select,
.site-header.site-header--minimal .site-header__search-input,
.site-header.site-header--minimal .site-header__search-submit,
.site-header__icon-link,
.site-header__sell-link,
.site-header__summary {
  min-height: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(206, 214, 224, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.site-header.site-header--minimal .site-header__logo {
  min-width: 108px;
  padding: 0 1rem;
  background: #ffffff;
  color: var(--theme-primary-ink-strong);
  letter-spacing: 0.16em;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-header__scope-switch {
  gap: 0.4rem;
}

.site-header__scope-form {
  display: flex;
  align-items: center;
}

.site-header__scope-form .enhanced-select,
.analytics-page .dashboard-scope-control .enhanced-select,
.items-category-strip .enhanced-select {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.site-header__scope-toggle,
.site-header__scope-select,
.site-header__currency-select {
  padding: 0 0.95rem;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header__scope-toggle {
  gap: 0.55rem;
}

.site-header__scope-toggle-track {
  width: 2rem;
  height: 1.15rem;
  padding: 0.12rem;
}

.site-header__scope-toggle-thumb {
  width: 0.9rem;
  height: 0.9rem;
}

.site-header__currency-form {
  margin: 0;
}

.site-header.site-header--minimal .site-header__search-form {
  flex: 1 1 28rem;
  min-width: 18rem;
  align-items: center;
  gap: 0.35rem;
}

.site-header.site-header--minimal .site-header__search-input {
  padding: 0 1rem;
  font-size: 0.95rem;
}

.site-header.site-header--minimal .site-header__search-submit,
.site-header__icon-link,
.site-header__summary {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.site-header.site-header--minimal .site-header__search-submit {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border-color: transparent;
}

.site-header.site-header--minimal .site-header__search-submit .site-header__icon-image {
  filter: brightness(0) invert(1);
}

.site-header__icon-image {
  width: 18px;
  height: 18px;
}

.site-header__sell-link {
  min-width: 88px;
  padding: 0 1rem;
  border-color: transparent;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-header__dropdown,
.site-header__notification-dropdown {
  margin-top: 0.4rem;
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 221, 232, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__dropdown-link,
.site-header__notification-item,
.site-header__notification-footer,
.site-header__signout {
  border-radius: 12px;
}

.site-header__notification-item {
  padding: 0.55rem 0.65rem;
}

.site-header__notification-preview {
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-header__notification-time {
  font-size: 0.74rem;
}

.items-index--floating-nav .items-hero,
.market-page__hero,
.item-show__hero {
  padding-top: 0.45rem;
}

.items-index,
.market-page,
.search-results-page,
.item-show-page {
  padding-bottom: 2rem;
}

.items-hero,
.market-page__hero,
.item-show__hero {
  background: transparent;
  color: inherit;
}

.items-hero__inner,
.items-main,
.market-page__hero-inner,
.market-page__body,
.market-page__hero-inner--wide,
.market-page__body--wide,
.item-show__shell,
.search-results-page__shell,
.dashboard-shell {
  width: min(1320px, calc(100% - 1.5rem));
}

.items-hero__inner,
.market-page__hero-inner,
.market-page__hero-inner--wide {
  max-width: none;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(249, 250, 252, 0.82) 55%, rgba(255, 255, 255, 0.76) 100%);
  border: 1px solid rgba(211, 219, 229, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.items-hero__inner {
  background:
    linear-gradient(135deg, rgba(111, 33, 138, 0.11) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.95) 100%);
  text-align: left;
}

.items-hero {
  padding: 0.5rem 0 0.25rem;
}

.items-hero__title,
.market-page__title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.items-hero__lede,
.market-page__lede {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.items-hero__cta,
.market-button,
.market-button:visited,
.market-button--light,
.market-button--light:visited,
.market-button--ghost-light,
.market-button--ghost-light:visited,
.market-button--secondary,
.market-button--secondary:visited,
.market-button--danger,
.market-button--danger:visited,
.market-back-link,
.profile-action-button,
.item-show__primary-button,
.item-show__primary-button:visited,
.item-show__danger-button,
.item-show__secondary-link,
.item-show__secondary-link:visited {
  min-height: 40px;
  height: auto;
  padding: 0 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.market-button--compact {
  min-height: 36px;
  padding: 0 0.8rem;
  font-size: 0.82rem;
}

.market-page__actions,
.market-button-row,
.item-show__button-stack,
.profile-action-row,
.notification-card__actions {
  gap: 0.55rem;
}

.items-hero__cta,
.market-button,
.market-button:visited,
.item-show__primary-button,
.item-show__primary-button:visited,
.profile-action-button {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border: 0;
  color: #fff;
}

.market-button--secondary,
.market-button--secondary:visited,
.market-back-link,
.item-show__secondary-link,
.item-show__secondary-link:visited {
  background: #ffffff;
  border: 1px solid rgba(206, 214, 224, 0.95);
  color: #1f2937;
}

.market-button--danger,
.market-button--danger:visited,
.profile-action-button--danger,
.item-show__danger-button {
  background: #fef2f2;
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #b42318;
}

.profile-action-button--secondary {
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: #c2410c;
}

.market-page__eyebrow,
.market-section-eyebrow,
.item-show__eyebrow,
.notification-page__count-pill,
.market-summary-card__label {
  color: var(--theme-primary);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-page__body,
.market-page__body--wide,
.items-main,
.dashboard-shell {
  margin: 0 auto;
  padding: 0.85rem 0 2rem;
  background: transparent;
}

.items-main {
  max-width: min(1320px, calc(100% - 1.5rem));
}

.items-index-strip {
  margin: 0 0 0.65rem;
  text-align: left;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.market-surface-card,
.search-results-page__summary-card,
.search-results-page__sidebar-card,
.dashboard-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(211, 219, 229, 0.96);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.market-surface-card {
  padding: 1rem 1.05rem;
}

.market-surface-card--muted {
  background: rgba(248, 250, 252, 0.96);
}

.market-summary-grid,
.market-summary-grid--triple {
  gap: 0.75rem;
}

.market-summary-card__value {
  color: #0f172a;
  font-size: 1.15rem;
}

.market-note,
.search-results-page__summary,
.item-show__section-note,
.item-show__seller-subtitle,
.profile-item-panel__copy,
.profile-inline-offer__meta,
.notification-card__detail,
.notification-card__timestamp {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.market-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(211, 219, 229, 0.96);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.market-card__media {
  aspect-ratio: 4 / 3;
}

.market-card__price {
  font-size: 0.96rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.market-card__body {
  padding: 0.85rem 0.9rem 1rem;
}

.market-card__meta {
  font-size: 0.74rem;
  line-height: 1.45;
}

.market-card__title {
  font-size: 1rem;
  line-height: 1.35;
}

.market-card__excerpt {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-results-page__hero {
  display: none;
}

.search-results-page__layout {
  gap: 1rem;
}

.search-results-page__summary-card,
.search-results-page__sidebar-card {
  padding: 0.95rem 1rem;
}

.search-results-page__sidebar-card {
  border-radius: 28px;
  padding: 0;
}

.search-results-page__sidebar-scroll {
  padding: 0.95rem 1rem;
}

.search-results-page__sidebar-card.is-scrollable .search-results-page__sidebar-scroll {
  padding-right: 1.35rem;
}

.search-results-page__title,
.market-section-title,
.item-show__section-title,
.chat-page__section-title {
  color: #0f172a;
  font-size: 1.28rem;
  line-height: 1.2;
}

.search-results-page__count,
.notification-page__count-pill,
.item-show__hero-tag,
.item-show__seller-stat,
.item-show__media-chip,
.profile-status-badge {
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.item-show__hero {
  padding: 0.45rem 0 0.55rem;
}

.item-show__breadcrumbs {
  margin-bottom: 0.75rem;
  color: #64748b;
}

.item-show__back-link,
.item-show__back-link:visited,
.item-show__crumb {
  color: #1f2937;
}

.item-show__headline {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 14.5rem);
  align-items: end;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(111, 33, 138, 0.12) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(211, 219, 229, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.item-show__title {
  color: #0f172a;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.item-show__subline,
.item-show__inline-link {
  color: #64748b;
  font-size: 0.92rem;
}

.item-show__hero-tag {
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  border: 1px solid rgba(211, 219, 229, 0.88);
}

.item-show__price-card {
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(211, 219, 229, 0.95);
  box-shadow: none;
}

.item-show__price-label,
.item-show__price-status {
  color: #64748b;
}

.item-show__price-value {
  color: #0f172a;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1;
}

.item-show__content {
  padding-top: 0.25rem;
}

.item-show__layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1rem;
}

.item-show__surface {
  padding: 1rem 1.05rem;
  border-radius: 20px;
}

.item-show__gallery-main {
  border-radius: 18px;
  overflow: hidden;
  max-height: 38rem;
}

.item-show__gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.item-show__gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.item-show__facts {
  gap: 0.65rem;
}

.item-show__fact {
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: #f8fafc;
}

.item-show__description {
  color: #334155;
  font-weight: 600;
}

.item-show__input,
.item-show__textarea,
.listing-form__input,
.listing-form__textarea,
.listing-form__select,
.profile-form__select,
.profile-form__input,
.chat-compose__textarea,
.auth-form__input,
.auth-form__select {
  width: 100%;
  min-height: 42px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid #d6dde8;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.item-show__textarea,
.chat-compose__textarea {
  min-height: 88px;
  max-height: 140px;
  resize: vertical;
}

.profile-show__hero {
  padding: 0.45rem 0 0.55rem;
}

.profile-show__hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(111, 33, 138, 0.12) 0%, rgba(255, 255, 255, 0.95) 44%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(211, 219, 229, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.profile-show__hero-card::after {
  display: none;
}

.profile-show__hero-panel {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(211, 219, 229, 0.88);
}

.profile-show__hero-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.65rem;
}

.profile-show__hero-panel-title {
  color: #0f172a;
  font-size: 1.4rem;
}

.profile-show__hero-panel-subtitle {
  color: #64748b;
  font-size: 0.92rem;
}

.profile-show__hero-metrics {
  gap: 0.65rem;
}

.profile-show__hero-metrics div {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #fff;
}

.profile-show__sections,
.profile-show__rows {
  gap: 1rem;
}

.profile-item-row {
  padding: 0.95rem 1rem;
  border-radius: 18px;
}

.profile-item-row__meta {
  font-size: 0.76rem;
}

.profile-item-row__title,
.profile-item-row__title-link {
  font-size: 1rem;
  line-height: 1.35;
}

.profile-action-button {
  min-height: 38px;
}

.profile-pin-grid {
  gap: 0.45rem;
}

.profile-pin-grid__digit {
  width: 100%;
  min-width: 0;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #d6dde8;
  font-size: 1.35rem;
}

.notification-page .market-page__hero,
.chat-page .market-page__hero,
.admin-page .market-page__hero {
  padding: 0.45rem 0 0rem;
}

.notification-page__controls,
.notification-page__list {
  /*padding: 0.95rem 1rem;*/
}

.notification-page__toolbar,
.notification-page__tabs {
  gap: 0.6rem;
}

.notification-page__toggle,
.notification-page__tab {
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 14px;
  font-size: 0.84rem;
}

.notification-card {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
}

.notification-card__title,
.notification-card__title-link {
  font-size: 0.92rem;
}

.notification-card__actions {
  margin-top: 0.5rem;
}

.chat-page__layout {
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.chat-page__threads,
.chat-page__panel {
  padding: 0.95rem;
}

.chat-page__thread-list {
  max-height: 32rem;
  gap: 0.5rem;
  overflow-y: auto;
}

.chat-page__thread-link,
.chat-page__thread-link:visited {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
}

.chat-page__panel-head {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(214, 221, 232, 0.9);
}

.chat-page__messages {
  min-height: 26rem;
  max-height: 31rem;
  padding: 0.9rem;
  gap: 0.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.chat-message {
  max-width: 72%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(214, 221, 232, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.chat-message--mine {
  background: rgba(111, 33, 138, 0.08);
  border-color: rgba(111, 33, 138, 0.16);
}

.chat-message__meta {
  font-size: 0.76rem;
  color: #64748b;
}

.chat-message__meta strong {
  color: #0f172a;
  font-size: 0.83rem;
}

.chat-message__body {
  font-size: 0.89rem;
  line-height: 1.45;
}

.chat-message__ago {
  justify-content: flex-end;
  font-size: 0.75rem;
}

.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.chat-compose__field {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.chat-compose__textarea {
  min-height: 44px;
  max-height: 112px;
}

.chat-compose__actions .market-button {
  min-width: 84px;
  min-height: 44px;
}

.dashboard-shell {
  margin: 0.65rem auto 2rem;
  padding: 0;
}

.dashboard-card {
  padding: 1rem 1.1rem;
  border-radius: 22px;
}

.dashboard-header {
  gap: 1rem;
}

.dashboard-card h1 {
  font-size: 1.45rem;
}

.dashboard-subtitle {
  font-size: 0.92rem;
  color: #64748b;
}

.dashboard-toolbar {
  gap: 0.75rem;
}

.dashboard-mode-button {
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
}

.dashboard-stage {
  min-height: 26rem;
}

.admin-page__hero-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-left: 0;
}

.admin-page .market-page__eyebrow,
.admin-page .market-section-eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.admin-dashboard__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.admin-overview-panel {
  gap: 0.9rem;
  align-content: start;
}

.admin-overview-panel__heading {
  align-items: flex-start;
}

.admin-overview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-overview-stat,
.admin-overview-stat:visited {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 0;
  padding: 0.85rem 0.9rem;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-overview-stat:hover,
.admin-overview-stat:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(111, 33, 138, 0.18);
  box-shadow: 0 12px 28px rgba(111, 33, 138, 0.08);
}

.admin-overview-stat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-overview-stat .market-summary-card__label,
.admin-overview-report .market-summary-card__label {
  margin: 0;
}

.admin-overview-stat .market-summary-card__value {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1;
}

.admin-overview-stat__hint {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-overview-reports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-overview-report {
  padding: 0.85rem 0.9rem;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-overview-report:hover,
.admin-overview-report:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(111, 33, 138, 0.18);
  box-shadow: 0 12px 28px rgba(111, 33, 138, 0.08);
}

.admin-overview-report .market-summary-card__value {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.admin-dashboard {
  --admin-primary-panel-height: 27rem;
  display: grid;
  grid-template-columns: minmax(20rem, 24.5rem) minmax(0, 1fr);
  grid-template-areas:
    "invite users"
    "invite-tools college";
  gap: 1rem;
  align-items: start;
}

.admin-dashboard__invite {
  grid-area: invite;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: var(--admin-primary-panel-height);
  max-height: var(--admin-primary-panel-height);
}

.admin-dashboard__invite-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  min-height: 0;
}

.admin-dashboard__invite-form--flush {
  padding-left: 0;
}

.admin-dashboard__invite-form--flush .listing-form__field,
.admin-dashboard__invite-form--flush .market-button {
  margin-left: 0;
}

.admin-dashboard__users {
  grid-area: users;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: var(--admin-primary-panel-height);
  max-height: var(--admin-primary-panel-height);
}

.admin-dashboard__invite-tools {
  grid-area: invite-tools;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.admin-dashboard__invite-results,
.admin-dashboard__invite-access,
.admin-dashboard__users,
.admin-overview-panel--reports,
.admin-dashboard__college {
  scroll-margin-top: 5rem;
}

.admin-dashboard__college {
  grid-area: college;
}

.admin-form {
  gap: 0.8rem;
}

.admin-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary-scrollbar) transparent;
}

.admin-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
}

.admin-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: separate;
  border-spacing: 0 0.2rem;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0.2rem 0.2rem;
  background: rgba(255, 255, 255, 0.96);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
  width: 2.5rem;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  text-align: center;
  width: 3.5rem;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 3.5rem;
  text-align: center;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  text-align: center;
  width: 3.5rem;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
  text-align: center;
  width:2rem;
}

.admin-table tbody td {
  align-content: center;
  padding: 0.2rem 0.2rem;
  vertical-align: middle;
  background: #f8fafc;
  border-top: 1px solid rgba(214, 221, 232, 0.95);
  border-bottom: 1px solid rgba(214, 221, 232, 0.95);
}

.admin-table tbody td:first-child {
  border-left: 1px solid rgba(214, 221, 232, 0.95);
  border-radius: 16px 0 0 16px;
}

.admin-table tbody td:last-child {
  border-right: 1px solid rgba(214, 221, 232, 0.95);
  border-radius: 0 16px 16px 0;
}

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

.admin-table td span {
  color: #64748b;
  font-size: 0.82rem;
}

.admin-table td .admin-table__badge,
.admin-table td .admin-table__status {
  display: inline-flex;
}

.admin-table__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 28px;
  min-height: 28px;
  padding: 0 0.6rem;
  margin-inline: auto;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-table__badge--admin {
  background: rgba(111, 33, 138, 0.1);
  color: #5b1c75;
}

.admin-table__badge--college_admin {
  background: rgba(14, 116, 144, 0.1);
  color: #0f5b71;
}

.admin-table__badge--student {
  background: rgba(226, 232, 240, 0.85);
  color: #475569;
}

.admin-table__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 28px;
  min-height: 28px;
  padding: 0 0.6rem;
  margin-inline: auto;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-table__status--active {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.admin-table__status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.admin-table__status--banned {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.admin-table__action-form {
  margin: 0;
}

.admin-table__muted {
  color: #94a3b8;
  font-size: 0.82rem;
}

.admin-invite-access__panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(214, 221, 232, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.admin-invite-access__hint {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-invite-access__form {
  gap: 0.85rem;
}

.admin-invite-list {
  display: grid;
  gap: 0.75rem;
  max-height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.admin-invite-list::-webkit-scrollbar {
  width: 0.45rem;
}

.admin-invite-list::-webkit-scrollbar-track {
  background: transparent;
}

.admin-invite-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 999px;
}

.admin-invite-list::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.42);
}

.admin-invite-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 221, 232, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.94) 100%);
}

.admin-invite-card__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-invite-card__email {
  display: block;
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-invite-card__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.admin-invite-card__detail {
  display: grid;
  gap: 0.18rem;
}

.admin-invite-card__detail-label {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-invite-card__detail-value {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-invite-card__detail--pin {
  justify-items: center;
  align-content: end;
  text-align: right;
}

.admin-invite-card__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 33, 138, 0.16);
  background: rgba(111, 33, 138, 0.08);
  color: #5b1c75;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-invite-card__details {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .admin-invite-card__detail--pin {
    justify-items: start;
    text-align: left;
  }
}

.admin-invite-table__empty {
  padding: 1rem;
  border: 1px dashed rgba(203, 213, 225, 0.96);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  color: #64748b;
}

.admin-rules {
  display: grid;
  gap: 1rem;
}

.admin-rules__selector-form {
  display: grid;
  gap: 0.9rem;
}

.admin-rules__form {
  display: grid;
  gap: calc(0.9rem + 2px);
}

.admin-dashboard__invite-form > .market-button,
.admin-rules__form > .market-button {
  align-self: center;
  justify-self: center;
  width: fit-content;
}

.admin-rules__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 0.8fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 221, 232, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-rules__copy {
  display: grid;
  gap: 0.25rem;
}

.admin-rules__label {
  margin: 0;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 800;
}

.admin-rules__control {
  min-width: 0;
}

.admin-rules__control .market-input {
  width: 100%;
}

.auth-shell {
  min-height: 100vh;
  margin-top: -0.85rem;
  position: relative;
  display: grid;
  place-items: center;
  padding: calc(1.5rem + 0.85rem) 1.5rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(203, 213, 225, 0.26), transparent 24rem),
    linear-gradient(160deg, #eef2f4 0%, #f8fafb 46%, #edf0f2 100%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 219, 229, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-shell__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-shell__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.75;
}

.auth-shell__orb--gold {
  top: -5rem;
  left: -3rem;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0) 70%);
}

.auth-shell__orb--sky {
  right: 3rem;
  top: 4rem;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(203, 213, 225, 0.24) 0%, rgba(203, 213, 225, 0) 72%);
}

.auth-shell__orb--mint {
  left: 26%;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.34) 0%, rgba(226, 232, 240, 0) 72%);
}

.auth-shell__orb--mist {
  top: 34%;
  left: 48%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(241, 245, 249, 0.42) 0%, rgba(241, 245, 249, 0) 74%);
}

.auth-shell__item {
  position: absolute;
  display: block;
  width: clamp(3.4rem, 8vw, 5.8rem);
  aspect-ratio: 1;
  opacity: var(--auth-item-opacity, 0.24);
  background: var(--auth-item-gradient, linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%));
  -webkit-mask: var(--auth-item-mask) center / contain no-repeat;
  mask: var(--auth-item-mask) center / contain no-repeat;
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.08));
  animation: auth-float 9s ease-in-out infinite;
}

.auth-shell__item--book {
  --auth-item-mask: url("/assets/hero-object-book-67da9132.svg");
  --auth-item-opacity: 0.21;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-primary-deep) 100%);
  top: 9%;
  left: 10%;
  animation-delay: -1.2s;
}

.auth-shell__item--laptop {
  --auth-item-mask: url("/assets/hero-object-device-laptop-655ab4c5.svg");
  --auth-item-opacity: 0.27;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-card-gradient-mid) 0%, var(--theme-card-gradient-end) 100%);
  top: 18%;
  right: 12%;
  width: clamp(4.6rem, 10vw, 7rem);
  animation-delay: -2.8s;
}

.auth-shell__item--camera {
  --auth-item-mask: url("/assets/hero-object-camera-ac70e43b.svg");
  --auth-item-opacity: 0.2;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  top: 58%;
  left: 6%;
  animation-delay: -4.1s;
}

.auth-shell__item--mug {
  --auth-item-mask: url("/assets/hero-object-mug-14f6f2ca.svg");
  --auth-item-opacity: 0.23;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary-dark) 0%, var(--theme-primary-ink-strong) 100%);
  bottom: 11%;
  left: 22%;
  animation-delay: -3.2s;
}

.auth-shell__item--lamp {
  --auth-item-mask: url("/assets/hero-object-lamp-4f2feb58.svg");
  --auth-item-opacity: 0.22;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-card-gradient-end) 0%, var(--theme-primary) 100%);
  right: 17%;
  bottom: 10%;
  width: clamp(4rem, 9vw, 6.2rem);
  animation-delay: -5.3s;
}

.auth-shell__item--headset {
  --auth-item-mask: url("/assets/hero-object-headset-ba8ad7f6.svg");
  --auth-item-opacity: 0.25;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary-deep) 0%, var(--theme-primary-ink) 100%);
  top: 42%;
  right: 20%;
  width: clamp(4.2rem, 9vw, 6rem);
  animation-delay: -6.2s;
}

.auth-shell__item--bottle {
  --auth-item-mask: url("/assets/hero-object-bottle-f35aef28.svg");
  --auth-item-opacity: 0.21;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-card-gradient-mid) 100%);
  top: 12%;
  left: 34%;
  width: clamp(3rem, 6vw, 4.6rem);
  animation-delay: -1.9s;
}

.auth-shell__item--calculator {
  --auth-item-mask: url("/assets/hero-object-calculator-cd19d8f1.svg");
  --auth-item-opacity: 0.24;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-primary) 100%);
  right: 30%;
  bottom: 9%;
  width: clamp(3.5rem, 7vw, 5rem);
  animation-delay: -4.7s;
}

.auth-shell__item--tablet {
  --auth-item-mask: url("/assets/hero-object-device-laptop-655ab4c5.svg");
  --auth-item-opacity: 0.19;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary-dark) 0%, var(--theme-card-gradient-mid) 100%);
  top: 62%;
  right: 1.5%;
  width: clamp(3.8rem, 8vw, 5.6rem);
  transform: rotate(-18deg);
  animation-delay: -5.8s;
}

.auth-shell__item--mini {
  width: clamp(2.3rem, 5.2vw, 3.4rem);
  opacity: var(--auth-item-opacity, 0.13);
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.05));
}

.auth-shell__item--mini-left {
  --auth-item-mask: url("/assets/hero-object-camera-ac70e43b.svg");
  --auth-item-opacity: 0.12;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary-deep) 0%, var(--theme-card-gradient-end) 100%);
  top: 37%;
  left: 17%;
  animation-delay: -3.6s;
}

.auth-shell__item--mini-top {
  --auth-item-mask: url("/assets/hero-object-book-67da9132.svg");
  --auth-item-opacity: 0.11;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-card-gradient-mid) 0%, var(--theme-primary-dark) 100%);
  top: 8%;
  left: 61%;
  transform: rotate(-10deg);
  animation-delay: -2.1s;
}

.auth-shell__item--mini-bottom {
  --auth-item-mask: url("/assets/hero-object-mug-14f6f2ca.svg");
  --auth-item-opacity: 0.13;
  --auth-item-gradient: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-card-gradient-start) 100%);
  bottom: 3%;
  left: 46%;
  animation-delay: -4.9s;
}

.auth-shell__item--mini-grey {
  --auth-item-opacity: 0.17;
  --auth-item-gradient: linear-gradient(145deg, rgba(100, 116, 139, 0.96) 0%, rgba(148, 163, 184, 0.94) 100%);
}

.auth-shell__item--mini-grey-left-edge {
  --auth-item-mask: url("/assets/hero-object-book-67da9132.svg");
  top: 24%;
  left: 3.5%;
  animation-delay: -1.7s;
}

.auth-shell__item--mini-grey-left-upper {
  --auth-item-mask: url("/assets/hero-object-device-laptop-655ab4c5.svg");
  top: 19%;
  left: 21%;
  transform: rotate(-8deg);
  animation-delay: -2.9s;
}

.auth-shell__item--mini-grey-left-lower {
  --auth-item-mask: url("/assets/hero-object-bottle-f35aef28.svg");
  bottom: 15%;
  left: 8%;
  animation-delay: -3.8s;
}

.auth-shell__item--mini-grey-top-center {
  --auth-item-mask: url("/assets/hero-object-camera-ac70e43b.svg");
  top: 4%;
  left: 47%;
  animation-delay: -5.1s;
}

.auth-shell__item--mini-grey-right-mid {
  --auth-item-mask: url("/assets/hero-object-mug-14f6f2ca.svg");
  top: 22%;
  right: 23%;
  animation-delay: -2.4s;
}

.auth-shell__item--mini-grey-right-top {
  --auth-item-mask: url("/assets/hero-object-book-67da9132.svg");
  top: 8%;
  right: 7%;
  transform: rotate(8deg);
  animation-delay: -4.3s;
}

.auth-shell__item--mini-grey-right-lower {
  --auth-item-mask: url("/assets/hero-object-headset-ba8ad7f6.svg");
  bottom: 27%;
  right: 23%;
  animation-delay: -3.1s;
}

.auth-shell__item--mini-grey-right-bottom {
  --auth-item-mask: url("/assets/hero-object-calculator-cd19d8f1.svg");
  bottom: 4%;
  right: 8%;
  animation-delay: -5.6s;
}

@keyframes auth-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
}

.auth-card--narrow {
  width: min(38rem, 100%);
  grid-template-columns: 1fr;
}

.auth-card--stacked {
  width: min(52rem, 100%);
  grid-template-columns: 1fr;
  gap: 1rem;
}

.auth-card__hero {
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(111, 33, 138, 0.12) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.95) 100%);
}

.auth-card__hero--banner {
  width: 100%;
}

.auth-card__eyebrow {
  margin: 0;
  color: var(--theme-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card__title {
  margin: 0.4rem 0 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.08;
}

.auth-card__copy {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-card__panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0.3rem;
}

.auth-card__agreement {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--theme-primary-border-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, var(--theme-primary-surface-tint) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-card__agreement-title {
  margin: 0;
  color: var(--theme-primary-ink-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-card__agreement-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.auth-card__agreement-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #475569;
  font-size: 0.83rem;
  line-height: 1.55;
}

.auth-card__agreement-list li + li {
  margin-top: 0.22rem;
}

.auth-card__signout-row {
  display: flex;
  justify-content: center;
  margin-top: 0.15rem;
}

.auth-card__signout-row form {
  margin: 0;
}

.auth-card__signout-button {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
  transition: color 140ms ease, opacity 140ms ease;
}

.auth-card__signout-button:hover,
.auth-card__signout-button:focus-visible {
  color: #334155;
  opacity: 1;
}

.auth-shell--admin {
  margin-top: -0.1rem;
  min-height: 100vh;
  padding-top: 1.25rem;
}

.error-shell {
  min-height: 100vh;
}

.error-card {
  text-align: center;
}

.error-card .auth-card__hero {
  justify-items: center;
}

.error-card .auth-card__eyebrow {
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.error-card .auth-card__copy {
  max-width: 30rem;
}

.error-card__actions {
  justify-items: center;
}

.error-card__actions .market-button,
.error-card__actions .market-button:visited,
.error-card__actions .market-button--secondary,
.error-card__actions .market-button--secondary:visited {
  width: min(18rem, 100%);
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-form__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.auth-form__field {
  display: grid;
  gap: 0.35rem;
}

.auth-form__field label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-form__hint {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 1.45em;
}

.auth-form__hint--placeholder {
  visibility: hidden;
}

.auth-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-map-picker {
  display: grid;
  gap: 0.45rem;
}

.auth-map-picker__map {
  min-height: 220px;
}

.auth-links {
  display: grid;
  gap: 0.3rem;
}

.auth-links--center {
  justify-items: center;
  text-align: center;
  margin-top: 0.2rem;
}

.auth-links__item {
  margin: 0;
}

.auth-links__link {
  color: var(--theme-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-links__link:hover,
.auth-links__link:focus-visible {
  text-decoration: underline;
}

.auth-errors {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #b42318;
}

.auth-errors__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.auth-errors__list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
}

.auth-danger-zone {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(214, 221, 232, 0.95);
}

@media (max-width: 1100px) {
  .item-show__headline,
  .profile-show__hero-card,
  .chat-page__layout,
  .admin-dashboard,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .chat-page__messages {
    min-height: 22rem;
  }
}

@media (max-width: 900px) {
  .site-header.site-header--minimal {
    padding: 0.55rem;
    border-radius: 0 0 18px 18px;
  }

  .site-header.site-header--minimal .site-header__search-form {
    flex-basis: 100%;
    min-width: 0;
  }

  .admin-page__hero-row {
    flex-direction: column;
  }

  .auth-shell {
    padding: calc(1rem + 0.85rem) 1rem 1rem;
  }

  .auth-shell--admin {
    min-height: 100vh;
    padding-top: 1rem;
  }

  .auth-shell__item {
    width: clamp(3rem, 12vw, 4.8rem);
  }

  .auth-shell__item--book {
    left: -0.5rem;
  }

  .auth-shell__item--laptop {
    right: -0.4rem;
  }

  .auth-shell__item--camera,
  .auth-shell__item--headset,
  .auth-shell__item--mug,
  .auth-shell__item--mini-left,
  .auth-shell__item--mini-top,
  .auth-shell__item--mini-bottom,
  .auth-shell__item--mini-grey-left-edge,
  .auth-shell__item--mini-grey-left-upper,
  .auth-shell__item--mini-grey-left-lower,
  .auth-shell__item--mini-grey-top-center,
  .auth-shell__item--mini-grey-right-mid,
  .auth-shell__item--mini-grey-right-top,
  .auth-shell__item--mini-grey-right-lower,
  .auth-shell__item--mini-grey-right-bottom {
    display: none;
  }

  .auth-shell__item--bottle {
    left: 22%;
  }

  .auth-shell__item--tablet {
    right: -0.8rem;
  }
}

@media (max-width: 640px) {
  .auth-shell__orb--sky,
  .auth-shell__orb--mint {
    opacity: 0.5;
  }

  .auth-shell__item--lamp {
    right: 14%;
    bottom: 8%;
  }

  .auth-shell__item--tablet {
    top: 60%;
    right: -0.2rem;
  }
}

@media (max-width: 640px) {
  .site-flash-stack,
  .site-header.site-header--minimal,
  .items-hero__inner,
  .items-main,
  .market-page__hero-inner,
  .market-page__body,
  .market-page__hero-inner--wide,
  .market-page__body--wide,
  .item-show__shell,
  .search-results-page__shell,
  .dashboard-shell {
    width: calc(100% - 1rem);
  }

  .site-header.site-header--minimal .site-header__logo,
  .site-header__scope-toggle,
  .site-header__scope-select,
  .site-header__currency-select,
  .site-header.site-header--minimal .site-header__search-input,
  .site-header.site-header--minimal .site-header__search-submit,
  .site-header__icon-link,
  .site-header__sell-link,
  .site-header__summary {
    min-height: 42px;
    height: 42px;
  }

  .market-summary-grid,
  .market-summary-grid--triple,
  .item-show__facts,
  .auth-form__grid,
  .profile-show__hero-metrics,
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 90%;
  }

  .admin-overview-stats,
  .admin-overview-reports {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 34rem;
  }
}

/* ------------------------------------------------------------------------- */
/* Marketplace polish pass                                                   */
/* ------------------------------------------------------------------------- */

.items-index,
.market-page,
.search-results-page,
.item-show-page {
  min-height: calc(100vh - 3.5rem);
  background: transparent !important;
}

.site-flash-stack {
  width: min(1360px, calc(100% - 1rem));
  margin: 0.4rem auto 0;
}

.site-flash-stack--immersive {
  position: fixed;
  top: 0.95rem;
  left: 50%;
  z-index: 40;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0;
  transform: translateX(-50%);
}

.site-header.site-header--minimal {
  width: min(1360px, calc(100% - 1rem));
  margin: 0 auto 0.45rem;
  padding: 0.45rem 0.55rem;
  gap: 0.4rem;
  border-radius: 0 0 18px 18px;
  will-change: transform;
  transition:
    transform 0.22s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.site-header.site-header--minimal.site-header--hidden {
  transform: translateY(calc(-100% - 1rem));
  pointer-events: none;
}

.site-header.site-header--minimal .site-header__logo,
.site-header__scope-toggle,
.site-header__scope-select,
.site-header__currency-select,
.site-header.site-header--minimal .site-header__search-input,
.site-header.site-header--minimal .site-header__search-submit,
.site-header__icon-link,
.site-header__sell-link,
.site-header__summary {
  min-height: 42px;
  height: 42px;
  border-radius: 14px;
}

.site-header.site-header--minimal .site-header__logo {
  min-width: 96px;
  padding: 0 0.9rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.site-header__scope-select,
.site-header__currency-select,
.site-header__scope-toggle {
  padding: 0 0.8rem;
  font-size: 0.88rem;
}

.site-header__account-actions {
  gap: 0.4rem;
}

.site-header.site-header--minimal .site-header__search-form {
  flex: 1 1 24rem;
  min-width: 14rem;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header.site-header--minimal .site-header__search-input {
  font-size: 0.92rem;
}

.site-header.site-header--minimal .site-header__search-submit,
.site-header__icon-link,
.site-header__summary {
  width: 42px;
  min-width: 42px;
}

.site-header__sell-link {
  min-width: 84px;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

.items-index--floating-nav .items-hero,
.market-page__hero,
.item-show__hero {
  padding-top: 0.18rem;
}

.items-hero,
.market-page__hero,
.item-show__hero {
  padding-bottom: 0.3rem;
}

.items-hero__inner,
.market-page__hero-inner,
.market-page__hero-inner--wide {
  width: min(1360px, calc(100% - 1rem));
}

.market-page__hero-inner,
.market-page__hero-inner--wide,
.notification-page .market-page__hero-inner,
.chat-page .market-page__hero-inner,
.admin-page .market-page__hero-inner,
.listing-form-page .market-page__hero-inner,
.analytics-page .market-page__hero-inner {
  padding: 0.35rem 0 0.2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.items-hero__inner {
  padding: 0.9rem 1rem;
  border-radius: 18px;
}

.items-hero {
  padding: 0.25rem 0 0.15rem;
}

.items-main,
.market-page__body,
.market-page__body--wide,
.item-show__shell,
.search-results-page__shell,
.dashboard-shell {
  width: min(1360px, calc(80% - 1rem));
}

.items-main,
.market-page__body,
.market-page__body--wide {
  padding-top: 0.15rem;
}

.items-hero__title,
.market-page__title {
  font-size: clamp(1.26rem, 1.9vw, 1.72rem);
}

.items-hero__lede,
.market-page__lede {
  max-width: 42rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.items-index-strip {
  margin-bottom: 0.55rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-page__actions,
.notification-card__actions,
.item-show__button-stack,
.market-button-row {
  gap: 0.5rem;
}

.market-button,
.market-button:visited,
.market-button--light,
.market-button--light:visited,
.market-button--ghost-light,
.market-button--ghost-light:visited,
.market-button--secondary,
.market-button--secondary:visited,
.market-button--danger,
.market-button--danger:visited,
.market-back-link,
.profile-action-button,
.item-show__primary-button,
.item-show__primary-button:visited,
.item-show__danger-button,
.item-show__secondary-link,
.item-show__secondary-link:visited {
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
}

.market-button--compact {
  min-height: 34px;
  padding: 0 0.75rem;
  font-size: 0.78rem;
}

.market-surface-card,
.notification-page__controls,
.notification-page__list,
.chat-page__threads,
.chat-page__panel,
.dashboard-card {
  border-radius: 18px;
}

.market-card {
  border-radius: 16px;
}

.market-card__media {
  border-radius: 16px 16px 0 0;
}

.market-card__title {
  font-size: 0.95rem;
  line-height: 1.35;
}

.market-card__excerpt {
  min-height: 2.45em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-show__content {
  margin-top: 0;
  padding-top: 0.15rem;
  padding-bottom: 1.8rem;
}

.item-show__headline {
  grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 13rem);
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
}

.item-show__title {
  font-size: clamp(1.3rem, 2.2vw, 1.82rem);
}

.item-show__subline,
.item-show__inline-link {
  font-size: 0.88rem;
}

.item-show__hero-tag,
.notification-page__count-pill {
  min-height: 1.7rem;
  padding: 0.22rem 0.62rem;
  font-size: 0.74rem;
}

.item-show__price-card {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
}

.item-show__price-value {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}

.item-show__layout {
  gap: 0.9rem;
}

.item-show__surface {
  padding: 0.95rem 1rem;
  border-radius: 18px;
}

.item-show__gallery-main {
  max-height: 32rem;
}

.profile-show__hero-card {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 16rem);
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
}

.profile-show__hero-copy,
.profile-show__hero-panel {
  gap: 0.7rem;
}

.profile-show__hero-copy {
  align-content: start;
}

.profile-show__hero-panel {
  align-self: start;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
}

.profile-show__hero-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
}

.profile-show__hero-panel-title {
  font-size: 1.18rem;
}

.profile-show__hero-panel-subtitle {
  font-size: 0.86rem;
}

.profile-show__hero-metrics {
  gap: 0.55rem;
}

.profile-show__hero-metrics div {
  padding: 0.6rem 0.7rem;
}

.profile-item-row {
  border-radius: 18px;
}

.notification-page__controls,
.notification-page__list {
  padding: 0.85rem 0.95rem;
}

.notification-page__toolbar,
.notification-page__tabs {
  gap: 0.5rem;
}

.notification-page__toggle,
.notification-page__tab {
  min-height: 36px;
  padding: 0 0.72rem;
  border-radius: 12px;
  font-size: 0.82rem;
}

.notification-card {
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
}

.notification-card__title,
.notification-card__title-link {
  font-size: 0.88rem;
}

.notification-card__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.notification-card__actions form {
  margin: 0;
}

.notification-card__timestamp {
  font-size: 0.74rem;
}

.chat-page__layout {
  grid-template-columns: minmax(15.5rem, 19rem) minmax(0, 1fr);
  gap: 0.9rem;
}

.chat-page__threads,
.chat-page__panel {
  padding: 0.85rem 0.9rem;
}

.chat-page__threads-head,
.chat-page__panel-head {
  align-items: flex-start;
  gap: 0.65rem;
}

.chat-page__panel-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
}

.chat-page__thread-list {
  max-height: clamp(24rem, 64vh, 34rem);
  gap: 0.45rem;
}

.chat-page__thread-link,
.chat-page__thread-link:visited {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
}

.chat-page__thread-item {
  margin-top: 0.2rem;
  font-size: 0.84rem;
}

.chat-page__thread-preview {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.chat-page__messages {
  min-height: clamp(20rem, 52vh, 27rem);
  max-height: clamp(20rem, 60vh, 31rem);
  padding: 0.75rem;
  gap: 0.45rem;
  border-radius: 16px;
}

.chat-message {
  max-width: min(32rem, 62%);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
}

.chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
}

.chat-message__meta strong {
  font-size: 0.79rem;
}

.chat-message__meta time {
  color: #64748b;
  font-size: 0.72rem;
  white-space: nowrap;
}

.chat-message__body {
  font-size: 0.85rem;
  line-height: 1.42;
  white-space: pre-wrap;
}

.chat-compose {
  gap: 0.55rem;
  margin-top: 0.65rem;
  align-items: stretch;
}

.chat-compose__textarea {
  min-height: 42px;
  max-height: 96px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
}

.chat-compose__actions .market-button {
  min-width: 76px;
  min-height: 42px;
}

.dashboard-shell {
  margin: 0 auto 1.75rem;
}

.analytics-page .dashboard-shell {
  width: 100%;
  height: var(--dashboard-viewport-height, calc(100vh - 5.5rem));
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.analytics-page {
  padding-bottom: 0;
}

.analytics-page .market-page__body,
.analytics-page .market-page__body--wide {
  padding-top: 0.35rem;
  padding-bottom: 0;
}

.analytics-page .dashboard-card {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(211, 219, 229, 0.94);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(220, 234, 252, 0.72) 0%, rgba(220, 234, 252, 0) 22%),
    radial-gradient(circle at bottom left, rgba(227, 243, 236, 0.66) 0%, rgba(227, 243, 236, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.analytics-page .dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr);
  gap: 0.8rem;
  align-items: start;
}

.analytics-page__title {
  margin: 0 0 0.45rem 1.9rem;
  color: var(--chat-text, #172033);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.analytics-page .dashboard-heading {
  display: grid;
  gap: 0.1rem;
  align-content: start;
}

.analytics-page__mode-label {
  margin: 0 0 0.35rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 30rem;
}

.analytics-page .dashboard-card h1 {
  margin: 0;
  color: var(--chat-text, #172033);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.analytics-page .dashboard-subtitle {
  max-width: 40rem;
  margin: 0;
  color: #5b6678;
  font-size: 0.8rem;
  line-height: 1.3;
}

.analytics-page .dashboard-heading-tools {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.analytics-page .dashboard-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.7rem;
}

.analytics-page .dashboard-scope-control {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.analytics-page .dashboard-scope-control .site-header__scope-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.analytics-page .dashboard-scope-control .site-header__scope-form {
  display: inline-flex;
}

.analytics-page .dashboard-scope-control .site-header__scope-select,
.analytics-page .dashboard-scope-control .site-header__scope-toggle {
  min-height: 2.15rem;
  height: auto;
  padding: 0.46rem 0.84rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 221, 232, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.analytics-page .dashboard-scope-control .site-header__scope-select {
  max-width: 13.5rem;
  padding-right: 2.05rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 1rem) 50%;
  background-size: 0.62rem 0.42rem;
  background-repeat: no-repeat;
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle {
  gap: 0.62rem;
  text-decoration: none;
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle-text {
  max-width: 9rem;
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle:hover,
.analytics-page .dashboard-scope-control .site-header__scope-select:hover,
.analytics-page .dashboard-scope-control .site-header__scope-select:focus-visible {
  transform: translateY(-1px);
  border-color: var(--theme-primary-border-soft);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle.is-college {
  background: linear-gradient(135deg, var(--theme-primary-surface-tint) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--theme-primary-ink-strong);
  border-color: var(--theme-primary-border-soft);
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle-track {
  width: 2.1rem;
  height: 1.15rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.75);
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle-thumb {
  width: 0.9rem;
  height: 0.9rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.analytics-page .dashboard-scope-control .site-header__scope-toggle.is-college .site-header__scope-toggle-track {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
}

.analytics-page .dashboard-side-controls {
  width: 100%;
  gap: 0.4rem;
}

.analytics-page .dashboard-filters {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(211, 219, 229, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 248, 251, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.analytics-page .dashboard-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.analytics-page .dashboard-filters label,
.analytics-page .dashboard-category-filter {
  gap: 0.22rem;
  color: #334155;
  font-size: 0.68rem;
}

.analytics-page .dashboard-date-range label > span,
.analytics-page .dashboard-category-filter legend {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-page .dashboard-category-filter {
  min-width: 0;
}

.analytics-page .dashboard-category-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.28rem;
  overflow: hidden;
  white-space: nowrap;
}

.analytics-page .dashboard-category-option {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  gap: 0.22rem;
  padding: 0.34rem 0.3rem;
  border: 1px solid rgba(214, 221, 233, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.analytics-page .dashboard-category-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-page .dashboard-category-option:hover,
.analytics-page .dashboard-category-option:focus-within {
  border-color: rgba(148, 163, 184, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.analytics-page .dashboard-category-checkbox {
  appearance: none;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.72);
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(148, 163, 184, 0.12);
}

.analytics-page .dashboard-category-checkbox:checked {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.analytics-page .dashboard-category-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.analytics-page .dashboard-category-checkbox:checked + span {
  color: #0f172a;
}

.analytics-page .dashboard-filters input[type="date"] {
  min-height: 2.2rem;
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.78rem;
}

.analytics-page .dashboard-filters input[type="date"]:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.analytics-page .dashboard-toolbar {
  display: grid;
  align-items: center;
  gap: 0.45rem;
  justify-items: start;
}

.analytics-page .dashboard-mode-switch {
  width: fit-content;
  padding: 0.18rem;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(214, 221, 233, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.analytics-page .dashboard-mode-button {
  min-height: 1.95rem;
  padding: 0 0.68rem;
  border-radius: 999px;
  color: #64748b;
  font-weight: 700;
  font-size: 0.74rem;
}

.analytics-page .dashboard-mode-button.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.analytics-page .dashboard-legend {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.32rem;
  min-height: 0;
}

.analytics-page .dashboard-legend-group {
  gap: 0.18rem;
  padding: 0.35rem 0.48rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(214, 221, 233, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.analytics-page .dashboard-legend-heading {
  color: #1e293b;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-page .dashboard-legend-entry {
  color: #475569;
  font-size: 0.65rem;
  gap: 0.22rem;
}

.analytics-page .dashboard-stage {
  min-height: 0;
  position: relative;
  display: grid;
  align-items: center;
  padding: 0.5rem 0.65rem 0.65rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.72) 0%, rgba(226, 232, 240, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(244, 247, 250, 0.94) 100%);
  border: 1px solid rgba(214, 221, 233, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.analytics-page .dashboard-chart-panel {
  border-radius: 16px;
  overflow: hidden;
}

.analytics-page .dashboard-empty-state {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: min(34rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.56);
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.analytics-page .dashboard-empty-state.is-active:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
}

.dashboard-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
}

.dashboard-card h1 {
  font-size: 1.32rem;
}

.dashboard-subtitle {
  font-size: 0.88rem;
}

.dashboard-mode-button {
  min-height: 36px;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.admin-dashboard {
  grid-template-columns: minmax(19rem, 22.5rem) minmax(0, 1fr);
  gap: 0.9rem;
}

@media (max-width: 980px) {
  .admin-dashboard__overview {
    grid-template-columns: 1fr;
  }

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

  .admin-overview-panel__heading {
    flex-direction: column;
  }

  .admin-overview-actions {
    justify-content: flex-start;
  }

  .analytics-page .dashboard-header {
    grid-template-columns: 1fr;
  }

  .analytics-page .dashboard-filters {
    padding: 0.68rem 0.72rem;
  }

  .analytics-page .dashboard-heading-tools {
    grid-template-columns: 1fr;
  }

  .analytics-page .dashboard-toolbar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .item-show__headline,
  .profile-show__hero-card,
  .chat-page__layout,
  .admin-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "invite"
      "users"
      "invite-tools"
      "college";
  }

  .admin-dashboard__invite,
  .admin-dashboard__users,
  .admin-dashboard__college {
    grid-area: auto;
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .site-header.site-header--minimal {
    width: calc(100% - 0.5rem);
    padding: 0.4rem;
    gap: 0.35rem;
  }

  .site-header.site-header--minimal .site-header__search-form {
    flex-basis: 100%;
    min-width: 0;
  }

  .chat-page__panel-head {
    flex-direction: column;
  }

  .analytics-page .dashboard-card {
    height: 100%;
    padding: 0.82rem;
    border-radius: 20px;
  }

  .analytics-page .dashboard-date-range {
    grid-template-columns: 1fr;
  }

  .analytics-page .dashboard-stage {
    padding: 0.45rem 0.55rem 0.55rem;
  }

  .analytics-page .dashboard-category-grid {
    flex-wrap: wrap;
    overflow: visible;
  }

  .analytics-page .dashboard-category-option {
    flex: 1 1 calc(33.333% - 0.28rem);
  }
}

@media (max-width: 640px) {
  .site-flash-stack,
  .site-header.site-header--minimal,
  .items-hero__inner,
  .items-main,
  .market-page__hero-inner,
  .market-page__body,
  .market-page__hero-inner--wide,
  .market-page__body--wide,
  .item-show__shell,
  .search-results-page__shell,
  .dashboard-shell {
    width: calc(100% - 0.5rem);
  }

  .site-header.site-header--minimal .site-header__logo,
  .site-header__scope-toggle,
  .site-header__scope-select,
  .site-header__currency-select,
  .site-header.site-header--minimal .site-header__search-input,
  .site-header.site-header--minimal .site-header__search-submit,
  .site-header__icon-link,
  .site-header__sell-link,
  .site-header__summary,
  .chat-compose__actions .market-button {
    min-height: 40px;
    height: 40px;
  }

  .chat-message {
    max-width: 88%;
  }

  .analytics-page .dashboard-card h1 {
    font-size: 1.18rem;
  }

  .analytics-page .dashboard-subtitle {
    font-size: 0.74rem;
  }

  .analytics-page .dashboard-mode-button {
    padding: 0 0.58rem;
    font-size: 0.7rem;
  }
}

/* ------------------------------------------------------------------------- */
/* Density correction pass                                                   */
/* ------------------------------------------------------------------------- */

.item-show-page {
  font-size: 13px;
}

.item-show-page .item-show__headline {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
}

.item-show-page .item-show__headline-main {
  grid-template-columns: minmax(0, 1fr) fit-content(12rem);
  gap: 0.75rem;
}

.item-show-page .item-show__title {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  line-height: 1.28;
}

.item-show-page .item-show__subline,
.item-show-page .item-show__inline-link,
.item-show-page .item-show__seller-subtitle,
.item-show-page .item-show__section-note,
.item-show-page,
.item-show-page .item-show__media-copy,
.item-show-page .item-show__price-status {
  font-size: 0.8rem;
}

.item-show-page .item-show__hero-tag,
.item-show-page .item-show__seller-stat,
.item-show-page .item-show__media-chip {
  min-height: 1.5rem;
  padding: 0.14rem 0.52rem;
  font-size: 0.68rem;
}

.item-show-page .item-show__price-card {
  padding: 0.68rem 0.75rem;
}

.item-show-page .item-show__price-label,
.item-show-page .item-show__eyebrow,
.item-show-page .item-show__fact-label,
.item-show-page .item-show__media-label {
  font-size: 0.64rem;
}

.item-show-page .item-show__price-value {
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
}

.item-show-page .item-show__surface {
  padding: 0.85rem 0.9rem;
}

.item-show-page .item-show__main,
.item-show-page .item-show__sidebar,
.item-show-page .item-show__button-stack {
  gap: 0.5rem;
}

.item-show-page .item-show__headline {
  gap: 0.5rem;
}

.item-show-page .item-show__layout {
  gap: 0.65rem;
}

.item-show-page .item-show__section-title,
.item-show-page .item-show__seller-name {
  font-size: 1rem;
}

.item-show-page .item-show__fact-value {
  font-size: 0.82rem;
}

.item-show-page .item-show__description {
  color: #334155;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
}

.item-show-page .item-show__section-head {
  margin-bottom: 0.65rem;
}

.admin-page .market-page__hero-inner,
.notification-page .market-page__hero-inner {
  width: min(1080px, calc(100% - 2rem));
}

.admin-page .market-page__title,
.notification-page .market-page__title,
.listing-form-page--edit .market-page__title,
.listing-form-page--new .market-page__title {
  color: var(--chat-text, #16233d);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.profile-show__hero {
  padding-bottom: 0.1rem;
}

.profile-show__hero-card {
  grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 16vw, 13rem);
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
}

.profile-show__hero-copy {
  gap: 0.5rem;
  align-content: center;
}

.profile-show__hero .market-page__title {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  line-height: 1.05;
}

.profile-show__hero .market-page__lede {
  max-width: 32rem;
  font-size: 0.84rem;
}

.profile-show__hero-tags {
  gap: 0.32rem;
}

.profile-show__hero-panel {
  width: min(100%, 13rem);
  max-height: 13rem;
  aspect-ratio: 1 / 1;
  justify-self: end;
  align-self: center;
  padding: 0.8rem;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 0.45rem;
}

.profile-show__hero-avatar {
  width: 3.15rem;
  height: 3.15rem;
  font-size: 1.26rem;
  justify-self: center;
}

.profile-show__hero-panel-copy {
  justify-self: center;
  text-align: center;
}

.profile-show__hero-panel-title {
  font-size: 1.05rem;
}

.profile-show__hero-panel-subtitle,
.profile-show__hero-panel-label,
.profile-show__hero-metrics {
  display: none;
}

.profile-show__hero .market-page__actions {
  gap: 0.5rem;
}

.profile-show__hero .market-button,
.profile-show__hero .market-button:visited,
.profile-show__hero .market-button--light,
.profile-show__hero .market-button--light:visited,
.profile-show__hero .market-button--ghost-light,
.profile-show__hero .market-button--ghost-light:visited {
  min-height: 2.35rem;
  padding: 0.48rem 0.9rem;
  font-size: 0.81rem;
}

.item-show-page .item-show__gallery-main {
  max-height: 26rem;
}

.item-show-page .item-show__gallery-thumb-image {
  border-radius: 10px;
}

.item-show-page .item-show__distance-value {
  font-size: 1.05rem;
}

.item-show-page .item-show__media-initials {
  font-size: clamp(3rem, 5vw, 4.2rem);
}

.notification-page__controls {
  /*padding: 0.7rem 0.8rem;*/
}

.notification-page__toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.notification-page__toggle-form {
  margin: 0;
}

.notification-page__toggle {
  min-height: 34px;
  padding: 0 0.68rem;
  font-size: 0.79rem;
}

.notification-page__mark-all {
  margin: 0;
}

.notification-page__tabs-strip {
  margin-top: 0.2rem;
}

.notification-page__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.notification-page__tabs::-webkit-scrollbar {
  display: none;
}

.notification-page__tab {
  flex: 0 0 auto;
}

.notification-page__list {
  padding: 0.7rem 0.8rem;
  overflow: hidden;
}

.notification-page__stack {
  display: grid;
  gap: 0.65rem;
  max-height: 34rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary-scrollbar) transparent;
}

.notification-page__stack > * {
  width: 100%;
}

.notification-page__stack::-webkit-scrollbar,
.profile-show__rows::-webkit-scrollbar {
  width: 8px;
}

.notification-page__stack::-webkit-scrollbar-thumb,
.profile-show__rows::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
}

.notification-card,
.notification-card:visited {
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
}

.notification-card--actionable {
  /* Use a single-column layout for actionable notifications so
     the content fills the card consistently (matches offer/standard styles).
     Previously this used a two-column layout (8rem + content) which
     caused visual misalignment when no avatar/icon occupied the left column. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 5.65rem;
}

.notification-card__rail {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.notification-card__rail form {
  margin: 0;
}

.notification-card__rail .market-button,
.notification-card__rail .market-button:visited {
  width: 100%;
  justify-content: center;
}

.notification-card__content {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.notification-card__content--actionable {
  gap: 0.55rem;
}

.notification-card__header {
  align-items: flex-start;
  gap: 0.45rem;
}

.notification-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.notification-card__title,
.notification-card__title-link {
  font-size: 0.82rem;
  line-height: 1.4;
}

.notification-card__detail {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.notification-card__timestamp {
  margin: 0.05rem 0 0;
  color: #94a3b8;
  font-size: 0.7rem;
}

.notification-card__badge {
  min-height: 1.55rem;
  padding: 0.14rem 0.52rem;
  font-size: 0.68rem;
}

.chat-page__messages {
  min-height: clamp(18rem, 48vh, 24rem);
  max-height: clamp(20rem, 58vh, 28rem);
  display: grid;
  align-content: start;
  justify-items: start;
  grid-auto-rows: max-content;
}

.chat-message {
  display: inline-grid;
  width: fit-content;
  min-width: 7.5rem;
  max-width: min(28rem, 62%);
  align-self: start;
  padding: 0.42rem 0.56rem;
  border-radius: 10px;
}

.chat-message--mine {
  justify-self: end;
  align-self: start;
}

.chat-message__meta {
  margin-bottom: 0.16rem;
}

.chat-message__body {
  width: fit-content;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.38;
}

.profile-show__sections--dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "favorites favorites"
    "selling live"
    "buying live";
  gap: 0.9rem;
  align-items: start;
}

.profile-show__section--dashboard-selling {
  grid-area: selling;
}

.profile-show__section--dashboard-buying {
  grid-area: buying;
}

.profile-show__section--dashboard-live {
  grid-area: live;
  align-self: start;
}

.profile-show__section {
  min-width: 0;
  min-height: 0;
}

.profile-show__section-heading {
  gap: 0.55rem;
}

.profile-show__section-action {
  min-width: 7.75rem;
  white-space: nowrap;
}

.profile-show__rows {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  max-height: 34rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-show__rows::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profile-scroll-shell,
.profile-favorites__scroll-shell {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}

.profile-scrollbar {
  position: absolute;
  top: 0.9rem;
  right: 0.28rem;
  bottom: 0.9rem;
  width: 0.42rem;
}

.profile-scrollbar--horizontal {
  left: 0.35rem;
  right: 0.35rem;
  top: auto;
  bottom: 0.15rem;
  width: auto;
  height: 0.42rem;
}

.profile-scrollbar__thumb {
  width: 100%;
  min-height: 1.75rem;
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  touch-action: none;
}

.profile-scrollbar--horizontal .profile-scrollbar__thumb {
  height: 100%;
  min-height: 0;
  min-width: 1.75rem;
}

.profile-scroll-shell.is-scrollable .profile-show__rows {
  padding-right: 1.15rem;
}

.profile-show__rows > * {
  width: 100%;
}

.profile-show__sections--dashboard .profile-item-row,
.profile-show__section .profile-item-row {
  width: 100%;
}

.profile-item-row {
  gap: 0.6rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
}

.profile-item-row__top {
  gap: 0.65rem;
}

.profile-item-row__meta {
  font-size: 0.7rem;
}

.profile-item-row__title,
.profile-item-row__title-link {
  font-size: 0.9rem;
  line-height: 1.32;
}

.profile-status-badge {
  min-height: 1.45rem;
  padding: 0.14rem 0.5rem;
  font-size: 0.66rem;
}

.profile-item-row__price-block {
  min-width: 7.75rem;
  padding: 0.58rem 0.65rem;
  border-radius: 12px;
}

.profile-item-row__price-value {
  font-size: 1.04rem;
}

.profile-item-row__details {
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

.profile-show__sections--dashboard .profile-item-row__details {
  max-height: 13rem;
  overflow-y: auto;
  padding-right: 0.12rem;
}

.profile-item-panel {
  gap: 0.45rem;
  padding: 0.72rem;
  border-radius: 12px;
}

.profile-item-panel__label,
.profile-item-row__price-label {
  font-size: 0.66rem;
}

.profile-item-panel__copy,
.profile-inline-offer__meta {
  font-size: 0.74rem;
  line-height: 1.4;
}

.profile-inline-offer {
  gap: 0.5rem;
  padding: 0.58rem;
  border-radius: 12px;
  align-items: start;
}

.profile-inline-offer__headline {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-action-button,
.profile-action-button:visited {
  min-height: 32px;
  padding: 0 0.7rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.profile-pin-grid__digit {
  height: 40px;
  font-size: 1rem;
}

.profile-pin-display__value {
  font-size: 1.1rem;
}

.profile-show__hero .market-page__title {
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
}

.profile-show__hero .market-page__lede {
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .profile-show__sections--dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .notification-card--actionable {
    grid-template-columns: 1fr;
  }

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

  .item-show-page .item-show__headline {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------- */
/* Notification readability fix                                              */
/* ------------------------------------------------------------------------- */

.notification-page__stack {
  max-height: 38rem;
  gap: 0.75rem;
  padding: 0.15rem 0.25rem 0.2rem 0.05rem;
  overflow-anchor: none;
}

.notification-page__tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.notification-page .market-page__hero-inner {
  width: min(1080px, calc(100% - 2rem));
}

.notification-page__controls {
  width: min(1080px, 100%);
  max-width: 1080px;
  margin-inline: auto;
  padding-top: 0rem;
  padding-bottom: 0rem;
}

.notification-page__list {
  width: min(1080px, 100%);
  max-width: 1080px;
  margin-inline: auto;
}

.notification-page__toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: auto;
  margin-left: auto;
}

.notification-page__toggle-form {
  width: auto;
}

.notification-page__toggle {
  min-height: 32px;
  padding: 0 0.62rem;
  font-size: 0.76rem;
}

.notification-page__mark-all {
  min-height: 32px;
  padding: 0 0.68rem;
  font-size: 0.75rem;
}

.notification-page__tabs-strip {
  margin-top: 0;
}

.notification-page__tabs {
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin-right: auto;
}

.notification-page__tab,
.notification-page__toggle,
.notification-page__mark-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-page__tab {
  min-height: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.notification-page__toggle {
  min-height: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.notification-page__mark-all {
  min-height: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.notification-card,
.notification-card:visited {
  align-items: stretch;
  align-content: start;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.notification-card--actionable {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  min-height: 6rem;
  padding: 0.85rem 0.95rem;
}

.notification-card__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  grid-auto-rows: minmax(34px, auto);
  gap: 0.5rem;
  align-self: end;
  align-content: center;
  min-width: 0;
}

.notification-card__rail .market-button,
.notification-card__rail .market-button:visited {
  width: auto;
  min-height: 34px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.notification-card__content {
  gap: 0rem;
  align-content: start;
  min-width: 0;
}

.notification-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.notification-card__title,
.notification-card__title-link {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notification-card--actionable .notification-card__detail {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-size: 0.77rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;



}

.notification-card__timestamp {
  font-size: 0.72rem;
}

.notification-card__badge {
  flex: 0 0 auto;
  align-self: flex-start;
}

.notification-card--offer {
  position: relative;
  gap: 0.4rem;
  min-height: 5.65rem;
  padding: 0.72rem 0.86rem;
  align-content: center;
}

.notification-card--standard {
  gap: 0.4rem;
  min-height: 5.65rem;
  padding: 0.72rem 0.86rem;
  align-content: center;
}

.notification-card__message {
  display: block;
  color: #0f172a;
  font-size: 0.82rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notification-card__overlay-link,
.notification-card__overlay-link:visited {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.notification-card__overlay-link:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 3px;
}

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

.notification-card__message .notification-card__inline-link,
.notification-card__inline-link {
  position: relative;
  z-index: 2;
  color: var(--theme-primary-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.notification-card__message .notification-card__inline-link:hover,
.notification-card__message .notification-card__inline-link:focus-visible,
.notification-card__inline-link:hover,
.notification-card__inline-link:focus-visible {
  text-decoration: underline;
}

.notification-card__amount {
  color: #0f172a;
  font-weight: 800;
}

.notification-card--offer .notification-card__detail {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 0.77rem;
  line-height: 1.32;
  margin-top: 0;
}

.notification-card--standard .notification-card__detail {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 0.77rem;
  line-height: 1.32;
  margin-top: 0;
}

.notification-card__badge--offer {
  background: rgba(111, 33, 138, 0.1);
  color: var(--theme-primary-accent-text);
}

.notification-card--offer .notification-card__header,
.notification-card--standard .notification-card__header {
  align-items: center;
}

.notification-card--offer .notification-card__message,
.notification-card--standard .notification-card__message,
.notification-card--offer .notification-card__detail,
.notification-card--standard .notification-card__detail,
.notification-card--offer .notification-card__timestamp,
.notification-card--standard .notification-card__timestamp {
  text-align: left;
}

@media (max-width: 900px) {
  .notification-page__tabs-row {
    align-items: stretch;
  }

  .notification-page__toolbar {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .notification-page__toolbar {
    width: 100%;
  }

  .notification-card--actionable {
    min-height: 0;
  }

  .notification-card__rail {
    grid-auto-rows: auto;
  }
}

/* ------------------------------------------------------------------------- */
/* Navbar UI polish                                                          */
/* ------------------------------------------------------------------------- */

.site-header.site-header--minimal .site-header__home-link {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  box-shadow: 0 14px 30px var(--theme-primary-shadow);
}

.site-header.site-header--minimal .site-header__icon-link .site-header__icon-image,
.site-header.site-header--minimal .site-header__summary .site-header__icon-image {
  filter: none;
}

.site-header.site-header--minimal .site-header__home-link .site-header__icon-image {
  filter: brightness(0) invert(1);
}

.site-header.site-header--minimal .site-header__home-link.is-active,
.site-header.site-header--minimal .site-header__home-link[aria-current="page"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  box-shadow: 0 14px 30px var(--theme-primary-shadow);
}

.site-header.site-header--minimal .site-header__home-link.is-active .site-header__icon-image,
.site-header.site-header--minimal .site-header__home-link[aria-current="page"] .site-header__icon-image {
  filter: brightness(0) invert(1);
}

.site-header.site-header--minimal .site-header__home-link.is-active:hover,
.site-header.site-header--minimal .site-header__home-link[aria-current="page"]:hover {
  filter: brightness(1.08);
}

.site-header.site-header--minimal .site-header__hover-shell:hover > .site-header__summary,
.site-header.site-header--minimal .site-header__hover-shell:focus-within > .site-header__summary,
.site-header.site-header--minimal .site-header__hover-shell:hover > .site-header__currency-select,
.site-header.site-header--minimal .site-header__hover-shell:focus-within > .site-header__currency-select {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(190, 200, 214, 0.96);
}

.site-header__menu-shell::after,
.site-header__profile-shell::after {
  left: 0;
  width: 100%;
  height: 0.95rem;
  transform: none;
}

.site-header__notification-shell::after {
  left: 0;
  width: 100%;
  height: 0.95rem;
  transform: none;
}

.site-header.site-header--minimal .site-header__dropdown,
.site-header.site-header--minimal .site-header__notification-dropdown,
.site-header.site-header--minimal .site-header__currency-dropdown {
  margin-top: 0;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.97) 100%);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.site-header--minimal .site-header__dropdown,
.site-header.site-header--minimal .site-header__notification-dropdown {
  top: calc(100% + 0.22rem);
}

.site-header.site-header--minimal .site-header__currency-dropdown {
  top: calc(100% + 0.22rem);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 5rem;
  display: none;
  gap: 0.25rem;
}

.site-header.site-header--minimal .site-header__hover-shell:hover .site-header__currency-dropdown,
.site-header.site-header--minimal .site-header__hover-shell:focus-within .site-header__currency-dropdown {
  display: grid;
}

.site-header__currency-form {
  width: 100%;
}

.site-header__currency-option {
  position: relative;
  justify-content: center;
  min-height: 0;
  padding: 0.56rem 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  color: #172033;
}

.site-header__currency-option:hover,
.site-header__currency-option:focus-visible {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(203, 213, 225, 0.95);
  color: #0f172a;
}

.site-header__currency-option--active {
  gap: 0.52rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, var(--theme-primary-surface-tint) 100%);
  border-color: var(--theme-primary-border-soft);
  color: var(--theme-primary-ink-strong);
}

.site-header__currency-option--active::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  box-shadow: 0 0 0 4px var(--theme-primary-surface-tint);
}

.site-header__currency-option-code {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.site-header.site-header--minimal .site-header__dropdown {
  min-width: 9.5rem;
  overflow: hidden;
}

.site-header.site-header--minimal .site-header__profile-dropdown {
  min-width: 9rem;
}

.site-header.site-header--minimal .site-header__account-dropdown,
.site-header.site-header--minimal .site-header__profile-dropdown {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.site-header__summary--static {
  cursor: default;
}

.site-header__dropdown-link,
.site-header__signout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 560;
  line-height: 1.25;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header__dropdown-link {
  color: #172033;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, var(--theme-primary-surface-tint) 100%);
  color: var(--theme-primary-ink-strong);
}

.site-header__dropdown-link--border {
  border-top-color: rgba(226, 232, 240, 0.9);
}

.site-header__dropdown-rule {
  margin: 0.35rem 0;
  border-top-color: rgba(226, 232, 240, 0.9);
}

.site-header__signout-form {
  width: 100%;
}

.site-header__signout {
  border: 0;
  background: transparent;
  color: #c0392b;
}

.site-header__signout:hover,
.site-header__signout:focus-visible {
  background: rgba(254, 242, 242, 0.96);
  color: #a32020;
  outline: none;
}

/* ------------------------------------------------------------------------- */
/* Homepage feature carousel                                                 */
/* ------------------------------------------------------------------------- */

.items-hero-title {
  padding: 0.4rem 0 0.85rem;
  background: transparent;
}

.items-hero-title__inner {
  width: min(1360px, calc(100% - 1rem));
  margin: 0 auto;
}

.items-hero--carousel {
  padding: 0 0 1.2rem;
  background: transparent;
}

.items-hero--carousel::after {
  display: none;
}

.items-hero__inner--carousel {
  width: min(1360px, calc(100% - 1rem));
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.items-hero-carousel {
  position: relative;
}

.items-hero-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8.8rem;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(222, 228, 238, 0.92);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82) 0%, transparent 28%),
    linear-gradient(120deg, rgba(243, 235, 252, 0.55) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(236, 245, 252, 0.74) 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.items-hero-brand::before,
.items-hero-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.items-hero-brand::before {
  left: -3.5rem;
  top: -5rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, var(--theme-primary-surface-tint) 0%, transparent 72%);
}

.items-hero-brand::after {
  right: -3rem;
  bottom: -5.5rem;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, transparent 70%);
}

.items-hero-brand__core {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.items-hero-brand__title {
  margin: 0;
  color: #14213a;
  font-size: clamp(1.5rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
}

.items-hero-brand__subtitle {
  max-width: 34rem;
  margin: 0;
  color: rgba(20, 33, 58, 0.68);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.items-hero-brand__icon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
  animation-fill-mode: both;
  animation-delay: var(--brand-icon-delay, 0s);
}

.items-hero-brand__icon--from-left {
  animation-name: items-hero-brand-slide-in-left;
}

.items-hero-brand__icon--from-right {
  animation-name: items-hero-brand-slide-in-right;
}

.items-hero-brand__icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.04);
}

.items-hero-brand__icon--book {
  top: 0.9rem;
  left: 1.5rem;
  width: 4.25rem;
  height: 4.25rem;
}

.items-hero-brand__icon--bottle {
  top: 0.95rem;
  left: 10.2rem;
  width: 2.95rem;
  height: 2.95rem;
}

.items-hero-brand__icon--calculator {
  bottom: 1.05rem;
  right: 2.2rem;
  width: 3.15rem;
  height: 3.15rem;
}

.items-hero-brand__icon--camera {
  bottom: 0.9rem;
  left: 14rem;
  width: 3.6rem;
  height: 3.6rem;
}

.items-hero-brand__icon--laptop {
  top: 1rem;
  right: 14.4rem;
  width: 4.1rem;
  height: 4.1rem;
}

.items-hero-brand__icon--headphones {
  top: 1.1rem;
  right: 6rem;
  width: 4.1rem;
  height: 4.1rem;
}

.items-hero-brand__icon--lamp {
  bottom: 0.85rem;
  left: 7.3rem;
  width: 3.3rem;
  height: 3.3rem;
}

.items-hero-brand__icon--mug {
  bottom: 0.7rem;
  right: 10rem;
  width: 3.45rem;
  height: 3.45rem;
}

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

.items-hero-carousel__viewport {
  position: relative;
  min-height: clamp(25rem, 39vw, 28rem);
}

.items-hero-banner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: clamp(4rem, 7vw, 4.9rem);
  border-radius: 34px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(1.8rem) scale(0.985);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
  z-index: 0;
  color: #f8fafc;
  box-shadow: none;
}

.items-hero-banner::before,
.items-hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.items-hero-banner::before {
  inset: auto auto -6rem -5rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 72%);
}

.items-hero-banner::after {
  inset: -8rem -4rem auto auto;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 68%);
}

.items-hero-banner.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.items-hero-banner--chat {
  background: linear-gradient(135deg, #12263f 0%, #1a4b68 54%, #5ab0df 100%);
}

.items-hero-banner--analytics {
  background: linear-gradient(135deg, #162238 0%, #254d63 46%, #f0a648 100%);
}

.items-hero-banner--sell {
  background: linear-gradient(135deg, #331a12 0%, #8f4621 54%, #f2bf68 100%);
}

.items-hero-banner--search {
  background: linear-gradient(135deg, #132538 0%, #2c6158 50%, #9ad9bb 100%);
}

.items-hero-banner__content,
.items-hero-banner__visual {
  position: relative;
  z-index: 1;
}

.items-hero-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: flex-start;
}

.items-hero-banner__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.items-hero-banner__title {
  margin: 0;
  max-width: 11.5ch;
  font-size: clamp(1.85rem, 3.7vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.items-hero-banner__copy {
  max-width: 29rem;
  margin: 0;
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.94rem;
  line-height: 1.58;
}

.items-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.items-hero-banner__cta,
.items-hero-banner__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease;
}

.items-hero-banner__cta {
  background: #f8fafc;
  color: #10213b;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.items-hero-banner__secondary {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.items-hero-banner__cta:hover,
.items-hero-banner__secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.items-hero-banner__visual {
  display: flex;
  justify-content: flex-end;
}

.items-hero-showcase {
  display: grid;
  gap: 1rem;
  width: min(100%, 29rem);
}

.items-hero-showcase--chat {
  justify-items: stretch;
}

.items-hero-banner--analytics .items-hero-showcase {
  gap: 0.8rem;
  transform: translateY(-1.25rem);
}

.items-hero-chat-bubble,
.items-hero-chat-card,
.items-hero-chart-card,
.items-hero-insight-card,
.items-hero-checklist-card,
.items-hero-listing-card,
.items-hero-search-card,
.items-hero-alert-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 32, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.items-hero-chat-bubble {
  max-width: 19rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.items-hero-chat-bubble--incoming {
  justify-self: flex-start;
  background: rgba(248, 250, 252, 0.2);
}

.items-hero-chat-bubble--outgoing {
  justify-self: flex-end;
  background: rgba(248, 250, 252, 0.9);
  color: #11243d;
}

.items-hero-chat-card,
.items-hero-insight-card,
.items-hero-listing-card,
.items-hero-alert-card {
  padding: 1.1rem 1.15rem;
}

.items-hero-chat-card strong,
.items-hero-insight-card strong,
.items-hero-listing-card strong,
.items-hero-alert-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.items-hero-chat-card p,
.items-hero-insight-card p,
.items-hero-listing-card p,
.items-hero-alert-card p {
  margin: 0.45rem 0 0;
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.88rem;
  line-height: 1.55;
}

.items-hero-chat-card__label,
.items-hero-insight-card__label,
.items-hero-chart-card__eyebrow,
.items-hero-checklist-card__eyebrow,
.items-hero-alert-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.items-hero-chart-card {
  padding: 1rem 1rem 0.9rem;
}

.items-hero-chart-card__bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.7rem;
  height: 10.5rem;
  margin-top: 0.95rem;
}

.items-hero-banner--analytics .items-hero-chart-card__bars {
  height: 9rem;
}

.items-hero-chart-card__bars span {
  height: var(--bar-height);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 219, 161, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.items-hero-chart-card__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.items-hero-checklist-card {
  padding: 1rem 1.05rem;
}

.items-hero-checklist-card ul {
  display: grid;
  gap: 0.75rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.items-hero-checklist-card li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.items-hero-checklist-card li::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3d3 0%, #f8fafc 100%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.items-hero-listing-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #5a2b10;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.items-hero-search-card {
  padding: 1rem;
}

.items-hero-search-card__bar {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
}

.items-hero-search-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.items-hero-search-card__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}

.items-hero-carousel__controls {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.3rem);
  right: clamp(0.9rem, 2vw, 1.3rem);
  bottom: clamp(0.85rem, 2vw, 1.15rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 0;
  pointer-events: none;
}

.items-hero-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.items-hero-carousel__arrow:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.96);
}

.items-hero-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  pointer-events: auto;
}

.items-hero-carousel__dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, width 180ms ease;
}

.items-hero-carousel__dot.is-active {
  width: 2.4rem;
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .items-hero-brand {
    min-height: 9.6rem;
  }

  .items-hero-brand__icon--bottle,
  .items-hero-brand__icon--camera {
    display: none;
  }

  .items-hero-brand__icon--headphones {
    right: 7.2rem;
  }

  .items-hero-brand__icon--laptop {
    right: 10.4rem;
  }

  .items-hero-brand__icon--mug {
    right: 8.2rem;
  }

  .items-hero-carousel__viewport {
    min-height: 44rem;
  }

  .items-hero-banner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .items-hero-banner__title {
    max-width: 12ch;
  }

  .items-hero-banner__copy {
    max-width: 100%;
  }

  .items-hero-banner__visual {
    justify-content: stretch;
  }

  .items-hero-showcase {
    width: 100%;
  }

  .items-hero-banner--analytics .items-hero-showcase {
    transform: none;
  }
}

@media (max-width: 640px) {
  .items-hero-brand {
    min-height: 9rem;
    padding: 1rem 0.9rem;
    border-radius: 24px;
  }

  .items-hero-brand__subtitle {
    max-width: 20rem;
    font-size: 0.84rem;
  }

  .items-hero-brand__title {
    letter-spacing: 0.12em;
  }

  .items-hero-brand__icon--laptop,
  .items-hero-brand__icon--mug,
  .items-hero-brand__icon--calculator {
    display: none;
  }

  .items-hero-brand__icon--book {
    width: 3.35rem;
    height: 3.35rem;
    left: 1rem;
  }

  .items-hero-brand__icon--headphones {
    width: 3.25rem;
    height: 3.25rem;
    right: 1.2rem;
  }

  .items-hero-brand__icon--lamp {
    width: 3.15rem;
    height: 3.15rem;
    left: 2.25rem;
  }

  .items-hero-brand__icon--headphones {
    right: 1.1rem;
  }

  .items-hero--carousel {
    padding-bottom: 0.9rem;
  }

  .items-hero-carousel__viewport {
    min-height: 46rem;
  }

  .items-hero-banner {
    padding: 1.2rem;
    padding-bottom: 4.25rem;
    border-radius: 28px;
  }

  .items-hero-banner__title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .items-hero-banner__actions {
    width: 100%;
  }

  .items-hero-banner__cta,
  .items-hero-banner__secondary {
    flex: 1 1 100%;
  }

  .items-hero-carousel__controls {
    justify-content: center;
  }

  .items-hero-carousel__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@keyframes items-hero-brand-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-2.75rem) scale(0.92);
  }

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

@keyframes items-hero-brand-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(2.75rem) scale(0.92);
  }

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

/* ------------------------------------------------------------------------- */
/* Marketplace card refresh                                                  */
/* ------------------------------------------------------------------------- */

.site-header__currency-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.site-header__dropdown-chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-0.06rem) rotate(45deg);
  opacity: 0.62;
  flex: 0 0 auto;
}

.market-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 232, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 253, 1) 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.market-card:hover {
  transform: translateY(-5px);
  border-color: rgba(195, 205, 220, 0.98);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.market-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.market-card__favorite,
.item-show__favorite {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
}

.favorite-toggle__frame,
.favorite-toggle__form {
  display: block;
}

.favorite-toggle__form {
  margin: 0;
}

.favorite-toggle,
.favorite-toggle:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.28rem;
  height: 2.28rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #b91c1c;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.favorite-toggle--disabled,
.favorite-toggle--disabled:visited {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.favorite-toggle:focus-visible {
  outline: 2px solid rgba(239, 68, 68, 0.24);
  outline-offset: 2px;
}

.favorite-toggle.is-active {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(239, 68, 68, 0.72);
  color: #dc2626;
}

.favorite-toggle__icon {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  line-height: 0;
}

.favorite-toggle__heart {
  display: block;
  width: 100%;
  height: 100%;
}

.favorite-toggle__heart path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorite-toggle.is-active .favorite-toggle__heart path {
  fill: currentColor;
}

@media (max-width: 640px) {
  .market-card__favorite,
  .item-show__favorite {
    top: 0.7rem;
    right: 0.7rem;
  }

  .favorite-toggle,
  .favorite-toggle:visited {
    width: 2.16rem;
    height: 2.16rem;
  }
}

.market-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28) 0%, transparent 28%),
    linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-card-gradient-mid) 55%, var(--theme-card-gradient-end) 100%);
}

.market-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 360ms ease, filter 360ms ease;
}

.market-card:hover .market-card__image {
  transform: scale(1.05);
}

.market-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
}

.market-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 44%),
    linear-gradient(145deg, var(--theme-card-gradient-start) 0%, var(--theme-card-gradient-mid) 55%, var(--theme-card-gradient-end) 100%);
}

.market-card__placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-card__placeholder-initials {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.market-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.58rem;
  padding: 1rem 1rem 1.05rem;
}

.market-card__badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
}

.market-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 1.45rem;
  padding: 0.08rem 0.46rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-card__badge--category {
  flex: 0 1 auto;
  background: var(--theme-primary-surface-tint);
  color: var(--theme-primary-ink-strong);
  box-shadow: inset 0 0 0 1px var(--theme-primary-border-soft);
}

.market-card__badge--location {
  flex: 0 1 auto;
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.market-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.market-card__price {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--theme-primary-ink-strong);
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(111, 33, 138, 0.18);
}

.market-card__price--empty {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(241, 245, 249, 0.92);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.95);
}

.market-card__age {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .market-card {
    border-radius: 20px;
  }

  .market-card__body {
    padding: 0.9rem 0.9rem 0.95rem;
  }

  .market-card__title {
    font-size: 1rem;
  }

  .market-card__price {
    font-size: 1.1rem;
  }
}

.items-category-strip {
  margin: 0 0 1.1rem;
}

.items-category-strip__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 100%;
}

.items-category-strip .site-header__scope-switch {
  display: inline-flex;
  align-items: center;
  margin-right: 0.15rem;
}

.items-category-strip .site-header__scope-form {
  display: inline-flex;
}

.items-category-strip .site-header__scope-select,
.items-category-strip .site-header__scope-toggle {
  min-height: 2.55rem;
  height: auto;
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 221, 232, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.items-category-strip .site-header__scope-select {
  padding-right: 2.1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 1.1rem) 50%;
  background-size: 0.62rem 0.42rem;
  background-repeat: no-repeat;
}

.items-category-strip .site-header__scope-toggle {
  gap: 0.62rem;
  text-decoration: none;
}

.items-category-strip .site-header__scope-toggle:hover,
.items-category-strip .site-header__scope-select:hover,
.items-category-strip .site-header__scope-select:focus-visible {
  transform: translateY(-1px);
  border-color: var(--theme-primary-border-soft);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
}

.items-category-strip .site-header__scope-toggle.is-college {
  background: linear-gradient(135deg, var(--theme-primary-surface-tint) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--theme-primary-ink-strong);
  border-color: var(--theme-primary-border-soft);
}

.items-category-strip .site-header__scope-toggle-track {
  width: 2.1rem;
  height: 1.15rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.75);
}

.items-category-strip .site-header__scope-toggle-thumb {
  width: 0.9rem;
  height: 0.9rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.items-category-strip .site-header__scope-toggle.is-college .site-header__scope-toggle-track {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
}

.items-category-strip__item {
  min-height: 2.55rem;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 208, 235, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 253, 0.95) 100%);
  color: var(--theme-primary-ink-strong);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.items-category-strip__item:hover,
.items-category-strip__item:focus-visible {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border-color: transparent;
  color: var(--theme-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px var(--theme-primary-shadow);
}

.items-category-strip__item.is-active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  border-color: transparent;
  color: var(--theme-on-primary);
  box-shadow: 0 14px 26px var(--theme-primary-shadow);
}

.items-main.items-main--homepage {
  position: relative;
  margin-top: -0.2rem;
  padding-top: 1.2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1.1rem;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.98) 100%);
  border: 1px solid rgba(220, 227, 236, 0.98);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.08);
}

.items-main.items-main--homepage::before {
  display: none;
}

.items-main__intro {
  display: grid;
  gap: 0.38rem;
  justify-items: center;
  margin: 0 0 1rem;
  text-align: center;
}

.items-index-strip {
  margin: 0;
  color: #1b2a44;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.items-main__subcopy {
  max-width: 40rem;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.items-home-browse {
  display: grid;
  gap: 1.15rem;
}

.items-home-section {
  display: grid;
  gap: 0.7rem;
}

.items-home-section__header {
  display: grid;
  gap: 0.1rem;
}

.items-home-section__eyebrow {
  margin: 0 0 0.14rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.items-home-section__title {
  margin: 0;
  color: #18253e;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.items-home-section__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.items-home-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #172740 0%, #2f5c78 52%, #8bc1a9 100%);
  color: #f8fafc;
}

.items-home-promo__content,
.items-home-promo__visual {
  position: relative;
  z-index: 1;
}

.items-home-promo__eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.items-home-promo__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.items-home-promo__copy {
  max-width: 31rem;
  margin: 0.75rem 0 0;
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.92rem;
  line-height: 1.58;
}

.items-home-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.items-home-promo__cta,
.items-home-promo__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.items-home-promo__cta {
  background: #ffffff;
  color: #17304c;
}

.items-home-promo__secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.items-home-promo__cta:hover,
.items-home-promo__secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.items-home-promo__visual {
  display: grid;
  gap: 0.9rem;
}

.items-home-promo__card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.items-home-promo__card-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.4rem;
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.items-home-promo__card strong {
  display: block;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.items-home-promo__card p {
  margin: 0.38rem 0 0;
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.84rem;
  line-height: 1.5;
}

.items-home-promo__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.items-home-promo__stats span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 700;
}

.items-home-browse__footer {
  display: flex;
  justify-content: center;
  padding-top: 0.15rem;
}

.items-home-browse__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 28px var(--theme-primary-shadow);
}

.items-home-browse__link:hover {
  filter: brightness(1.05);
}

.search-results-page__shell {
  width: min(1450px, calc(100% - 1.25rem));
}

.search-results-page__layout {
  grid-template-columns: minmax(14.5rem, 16rem) minmax(0, 1fr);
  gap: 1.15rem;
}

.search-results-page__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.market-card__footer--compact {
  gap: 0.5rem;
}

.market-card__price--compact {
  font-size: 0.96rem;
  padding-left: 0.48rem;
  padding-right: 0.48rem;
}

.market-card__age {
  flex: 0 1 auto;
  text-align: right;
}

.market-card__age--compact {
  font-size: 0.68rem;
}

.market-card--skeleton {
  pointer-events: none;
  box-shadow: none;
  opacity: 0.76;
}

.market-card--skeleton:hover {
  transform: none;
  box-shadow: none;
}

.market-card__media--skeleton {
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.78) 0%, rgba(248, 250, 252, 0.84) 100%);
}

.market-card__skeleton-block,
.market-card__skeleton-line,
.market-card__skeleton-pill {
  display: block;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.58);
  opacity: 0.56;
}

.market-card__skeleton-block--shine {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.market-card__skeleton-lines {
  display: grid;
  gap: 0.5rem;
}

.market-card__skeleton-line--title {
  width: 76%;
  height: 1rem;
}

.market-card__skeleton-line--title-short {
  width: 52%;
  height: 1rem;
}

.market-card__skeleton-line--time {
  width: 4rem;
  height: 0.78rem;
}

.market-card__skeleton-pill {
  width: 4.8rem;
  height: 1.45rem;
}

.market-card__skeleton-pill--wide {
  width: 6.2rem;
}

.market-card__skeleton-pill--price {
  width: 6.8rem;
  height: 2rem;
}

@media (max-width: 1399px) {
  .items-home-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .search-results-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .items-home-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .items-home-promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 799px) {
  .search-results-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .search-results-page__shell {
    width: min(1450px, calc(100% - 0.9rem));
  }

  .search-results-page__layout {
    grid-template-columns: 1fr;
  }

  .search-results-page__grid {
    grid-template-columns: 1fr;
  }

  .items-main.items-main--homepage {
    padding-top: 1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    border-radius: 26px;
  }

  .items-main.items-main--homepage::before {
    left: 1rem;
    right: 1rem;
    top: -0.9rem;
  }

  .items-main__intro {
    gap: 0.3rem;
    margin-bottom: 0.85rem;
  }

  .items-main__subcopy {
    font-size: 0.85rem;
  }

  .items-home-browse {
    gap: 0.95rem;
  }

  .items-home-section__grid {
    grid-template-columns: 1fr;
  }

  .items-home-promo {
    padding: 1rem;
    border-radius: 22px;
  }

  .items-home-promo__title {
    max-width: none;
  }

  .items-home-promo__actions {
    width: 100%;
  }

  .items-home-promo__cta,
  .items-home-promo__secondary,
  .items-home-browse__link {
    width: 100%;
  }
}


.site-footer {
  margin-top: 1.1rem;
  padding: 0;
}

.site-footer__inner {
  width: min(1320px, calc(100% - 1.5rem));
  margin: 0 auto 0;
  padding: 1rem 1.15rem;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(214, 221, 232, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 247, 250, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: grid;
  gap: 0.2rem;
}

.site-footer__eyebrow {
  margin: 0;
  color: #18253e;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__copy {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.site-footer__dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--theme-primary);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 0.9rem;
    padding-bottom: 0;
  }

  .site-footer__inner {
    padding: 0.9rem 0.95rem;
    border-radius: 18px 18px 0 0;
  }

  .site-footer__meta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------------------- */
/* Item show refinements                                                     */
/* ------------------------------------------------------------------------- */

.item-show-page {
  /* Change this value to make the purple section headers bigger or smaller. */
  --item-show-eyebrow-size: 15px;
  /* Change this value to adjust the "Listed by <user>" font size. */
  --item-show-subline-size: 18px;
  /* Change this value to adjust the item price size. */
  --item-show-price-size: clamp(1.55rem, 2.7vw, 2.8rem);
}

.item-show-page .item-show__shell {
  width: min(1240px, calc(100% - 6rem));
}

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

.item-show-page .item-show__headline {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.item-show-page .item-show__headline-card {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(111, 33, 138, 0.1) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(211, 219, 229, 0.94);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.item-show-page .item-show__headline-main {
  grid-template-columns: minmax(0, 1fr) fit-content(15rem);
  justify-items: stretch;
  align-items: start;
  align-self: start;
  gap: 0.65rem;
  padding: 0;
  max-width: none;
}

.item-show-page .item-show__title {
  color: #16233d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-show-page .item-show__subline,
.item-show-page .item-show__inline-link {
  color: #61708b;
  font-size: 0.95rem;
  line-height: 1.45;
}

.item-show-page .item-show__inline-link {
  color: #24385e;
  font-weight: 700;
  text-decoration-color: rgba(36, 56, 94, 0.24);
}

.item-show-page .item-show__price-card {
  justify-self: end;
  align-self: start;
  width: max-content;
  gap: 0.6rem;
  max-width: min(100%, 37rem);
  padding: 1rem 1.1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  text-align: left;
}

.item-show-page .item-show__price-label {
  color: #7a8798;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.item-show-page .item-show__price-value {
  display: block;
  color: #16233d;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: var(--item-show-price-size);
  line-height: 0.90;
  letter-spacing: -0.05em;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.item-show-page .item-show__price-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(22, 35, 61, 0.06);
  border: 1px solid rgba(22, 35, 61, 0.08);
  color: #6a778c;
  font-weight: 700;
}

.item-show-page .item-show__eyebrow {
  font-size: var(--item-show-eyebrow-size);
  line-height: 1;
}

.item-show-page .item-show__gallery-main {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: auto;
  max-height: none;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(226, 232, 240, 0.72) 100%);
}

.item-show-page .item-show__gallery-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.item-show-page .item-show__offer-card {
  gap: 0.85rem;
}

.item-show-page .item-show__offer-inline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.item-show-page .item-show__offer-form--inline {
  display: grid;
  gap: 0.75rem;
}

.item-show-page .item-show__offer-field {
  gap: 0;
}

.item-show-page .item-show__offer-field .item-show__input {
  min-height: 3.1rem;
  height: 100%;
  text-align: left;
  font-weight: 700;
}

.item-show-page .item-show__offer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.item-show-page .item-show__offer-action-form,
.item-show-page .item-show__offer-action-form .item-show__danger-button {
  height: 100%;
}

.item-show-page .item-show__offer-action-button {
  min-width: 7rem;
}

.item-show-page .item-show__action-card--final {
  gap: 0.85rem;
}

@media (max-width: 1100px) {
  .item-show-page .item-show__headline {
    grid-template-columns: 1fr;
  }

  .item-show-page .item-show__headline-main {
    grid-template-columns: 1fr;
  }

  .notification-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-card__rail {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .item-show-page .item-show__headline-main {
    grid-template-columns: 1fr;
  }

  .item-show-page .item-show__offer-inline-layout {
    grid-template-columns: 1fr;
  }

  .item-show-page .item-show__offer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .item-show-page .item-show__offer-actions--single {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------- */
/* Conversation page refinements                                             */

.chat-page {
  --chat-page-bg: #f4f6fb;
  --chat-card: rgba(255, 255, 255, 0.96);
  --chat-border: rgba(205, 214, 227, 0.92);
  --chat-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
  --chat-muted: #60708a;
  --chat-text: #16233d;
  --chat-accent: #312e81;
  --chat-accent-soft: #f3f0ff;
  --chat-accent-border: rgba(92, 84, 180, 0.24);
  background:
    radial-gradient(circle at top left, rgba(232, 238, 251, 0.95) 0%, rgba(244, 246, 251, 0) 28%),
    radial-gradient(circle at bottom right, rgba(233, 228, 255, 0.82) 0%, rgba(244, 246, 251, 0) 26%),
    linear-gradient(180deg, #f9fbff 0%, var(--chat-page-bg) 100%);
}

.chat-page .market-page__hero-inner--wide,
.chat-page .market-page__body--wide {
  width: min(1240px, calc(100% - 6rem));
}

.chat-page .market-page__hero {
  padding: 0.3rem 0 0.55rem;
}

.chat-page .market-page__hero-inner {
  gap: 0.35rem;
}

.chat-page .market-page__title {
  color: var(--chat-text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; 
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.notification-page .market-page__title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.chat-page__layout {
  grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.chat-page__threads,
.chat-page__panel {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%);
  border: 1px solid var(--chat-border);
  box-shadow: var(--chat-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.chat-page__threads {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 0.65rem;
}

.chat-page__threads-head {
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
  padding: 0.05rem 0.1rem 0;
}

.chat-page__threads .chat-page__section-title {
  font-size: 1.1rem;
  line-height: 1.1;
}

.chat-page__thread-count {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #f5f7fc;
  border: 1px solid rgba(214, 221, 233, 0.95);
  color: var(--chat-muted);
  font-size: 0.74rem;
  line-height: 1;
}

.chat-page__thread-search {
  position: relative;
}

.chat-page__thread-search-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.72rem 0.95rem 0.72rem 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(214, 221, 233, 0.95);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238395ad' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") no-repeat 0.85rem center / 1rem,
    linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
  color: var(--chat-text);
  font-size: 0.89rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.chat-page__thread-search-input::placeholder {
  color: #8794ab;
}

.chat-page__thread-search-input:focus {
  outline: none;
  border-color: rgba(90, 86, 176, 0.36);
  box-shadow: 0 0 0 4px rgba(90, 86, 176, 0.08);
}

.chat-page__thread-list {
  max-height: clamp(26rem, 61vh, 38rem);
  display: grid;
  grid-auto-rows: max-content;
  overflow-y: auto;
  align-content: start;
  gap: 0.3rem;
  padding-right: 0.28rem;
}

.chat-page__thread-link,
.chat-page__thread-link:visited {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  min-height: 4rem;
  padding: 0.58rem 0.72rem 0.58rem 0.82rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 231, 239, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-page__thread-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease;
}

.chat-page__thread-link:hover,
.chat-page__thread-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(193, 202, 217, 0.98);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.chat-page__thread-link:focus-visible {
  outline: none;
}

.chat-page__thread-link.is-active {
  background: linear-gradient(135deg, #f7f4ff 0%, #eef2ff 100%);
  border-color: var(--chat-accent-border);
  box-shadow: 0 16px 32px rgba(49, 46, 129, 0.12);
}

.chat-page__thread-link.is-active::before {
  background: linear-gradient(180deg, #4338ca 0%, #7c3aed 100%);
}

.chat-page__thread-top {
  min-width: 0;
  align-items: baseline;
  gap: 0.6rem;
}

.chat-page__thread-heading {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  flex: 1 1 auto;
  align-items: baseline;
  gap: 0.36rem;
  min-width: 0;
  overflow: hidden;
}

.chat-page__thread-name {
  color: var(--chat-text);
  font-size: 0.93rem;
  line-height: 1.15;
  white-space: nowrap;
}

.chat-page__thread-name-divider {
  flex-shrink: 0;
  color: #9aa7bc;
  font-size: 0.74rem;
  line-height: 1;
}

.chat-page__thread-item-inline {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #72809a;
  font-size: 0.76rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-page__thread-time {
  flex-shrink: 0;
  color: #72809a;
  font-size: 0.69rem;
  line-height: 1;
}

.chat-page__thread-preview {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--chat-muted);
  font-size: 0.76rem;
  line-height: 1.15;
}

.chat-page__thread-topic {
  color: #42516e;
  font-weight: 600;
}

.chat-page__thread-divider {
  color: #94a3b8;
  margin: 0 0.16rem;
}

.chat-page__thread-empty {
  margin: 0;
  padding: 0.7rem 0.35rem 0.1rem;
  color: var(--chat-muted);
  font-size: 0.82rem;
  text-align: center;
}

.chat-page__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(214, 221, 233, 0.92);
}

.chat-page__panel-copy {
  display: grid;
  gap: 0.90rem;
  min-width: 0;
}

.chat-page__panel .chat-page__section-title {
  color: var(--chat-text);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.chat-page__person-link,
.chat-page__person-link:visited {
  color: inherit;
  text-decoration: none;
}

.chat-page__person-link:hover,
.chat-page__person-link:focus-visible {
  color: var(--chat-accent);
}

.chat-page__person-link:focus-visible {
  outline: none;
}

.chat-page__panel .market-note {
  margin: 0;
  color: var(--chat-muted);
  font-size: 0.92rem;
}

.chat-page__panel-price {
  margin: 0.08rem 0 0;
  color: #6e7a90;
  font-size: 0.8rem;
  line-height: 1.2;
}

.chat-page__panel-price-label {
  display: none;
}

.chat-page__panel-copy[data-conversation-role="buyer"] .chat-page__panel-price-label--buyer,
.chat-page__panel-copy[data-conversation-role="seller"] .chat-page__panel-price-label--seller {
  display: inline;
}

.chat-page__panel-price strong {
  color: var(--chat-accent);
  font-size: 0.86rem;
}

.chat-page__listing-card,
.chat-page__listing-card:visited {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, auto);
  gap: 0.6rem;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 20rem);
  min-width: 0;
  padding: 0.38rem 0.52rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid rgba(214, 221, 233, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 32px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}

.chat-page__listing-card--link {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-page__listing-card--link:hover,
.chat-page__listing-card--link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 177, 198, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 34px rgba(15, 23, 42, 0.09);
}

.chat-page__listing-card--link:focus-visible {
  outline: none;
}

.chat-page__listing-media,
.chat-page__listing-placeholder {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 13px;
}

.chat-page__listing-media {
  object-fit: cover;
}

.chat-page__listing-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dfe7ff 0%, #ece8ff 100%);
  color: #273469;
  font-size: 1.28rem;
  font-weight: 700;
}

.chat-page__listing-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.chat-page__listing-eyebrow {
  margin: 0;
  color: #7b86aa;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-page__listing-title {
  color: var(--chat-text);
  font-size: 0.88rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-page__listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
}

.chat-page__listing-price {
  color: var(--chat-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.chat-page__listing-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.34rem;
  padding: 0 0.48rem;
  border-radius: 999px;
  background: rgba(49, 46, 129, 0.08);
  color: #4c4998;
  font-size: 0.68rem;
  font-weight: 700;
}

.chat-page__messages-shell {
  position: relative;
  width: 100%;
  height: clamp(22rem, 61vh, 34rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(230, 235, 255, 0.92) 0%, rgba(230, 235, 255, 0) 24%),
    radial-gradient(circle at bottom left, rgba(237, 241, 249, 0.96) 0%, rgba(237, 241, 249, 0) 32%),
    linear-gradient(180deg, #fdfefe 0%, #f4f7fb 100%);
  border: 1px solid rgba(216, 224, 236, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.chat-page__messages {
  display: grid;
  align-content: start;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 1.1rem 1rem 1.1rem 1.1rem;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-page__messages::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.chat-page__custom-scrollbar {
  position: absolute;
  top: 0.9rem;
  right: 0.28rem;
  bottom: 0.9rem;
  width: 0.42rem;
}

.chat-page__custom-scrollbar-thumb {
  width: 100%;
  min-height: 1.75rem;
  border-radius: 999px;
  background: rgba(114, 103, 215, 0.42);
  box-shadow: inset 0 0 0 1px rgba(114, 103, 215, 0.16);
  cursor: pointer;
}

.chat-page__messages-shell.is-scrollable .chat-page__messages {
  padding-right: 1.25rem;
}

.chat-message {
  display: inline-grid;
  width: fit-content;
  min-width: 7.5rem;
  max-width: min(30rem, 64%);
  align-self: start;
  gap: 0.02rem;
  padding: 0.55rem 0.72rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(218, 226, 238, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.chat-message--mine {
  justify-self: end;
  align-self: start;
  background: linear-gradient(135deg, #f5f1ff 0%, #ebeefe 100%);
  border-color: rgba(129, 118, 214, 0.24);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.1);
}

.chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0;
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1.05;
}

.chat-message__meta strong {
  color: var(--chat-text);
  font-size: 0.8rem;
}

.chat-message__meta time {
  color: #72809a;
  font-size: 0.71rem;
  white-space: nowrap;
}

.chat-message__body {
  width: fit-content;
  max-width: 100%;
  color: #22314c;
  font-size: 0.83rem;
  line-height: 1.32;
  white-space: pre-wrap;
}

.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding: 0.2rem;
}

.chat-compose__field {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.chat-compose__textarea {
  min-height: 52px;
  max-height: 192px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(204, 213, 227, 0.98);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 20px rgba(15, 23, 42, 0.04);
  color: var(--chat-text);
  font-size: 0.94rem;
  line-height: 1.42;
  overflow-y: hidden;
  resize: vertical;
}

.chat-compose__textarea::placeholder {
  color: #8290a8;
}

.chat-compose__textarea:focus {
  outline: none;
  border-color: rgba(90, 86, 176, 0.36);
  box-shadow: 0 0 0 4px rgba(90, 86, 176, 0.08);
}

.chat-compose__actions .market-button {
  min-width: 92px;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(49, 46, 129, 0.24);
}

.chat-compose__actions .market-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(49, 46, 129, 0.28);
}

/* CONVERSATIONS PAGE SCROLLBAR */

.chat-page__thread-list::-webkit-scrollbar {
  width: 0.45rem;
}

.chat-page__thread-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
}

.chat-page__thread-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.chat-page__thread-list::-webkit-scrollbar-button:single-button,
.chat-page__thread-list::-webkit-scrollbar-button:single-button:vertical:decrement,
.chat-page__thread-list::-webkit-scrollbar-button:single-button:vertical:increment {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .chat-page__layout {
    grid-template-columns: minmax(15.5rem, 18.5rem) minmax(0, 1fr);
  }

  .chat-page__panel-head {
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .chat-page__layout {
    grid-template-columns: 1fr;
  }

  .chat-page__threads {
    grid-template-rows: auto auto minmax(0, 16rem) auto;
  }

  .chat-page__messages-shell {
    height: clamp(20rem, 58vh, 24rem);
  }
}

@media (max-width: 640px) {
  .chat-page .market-page__title {
    font-size: 2rem;
  }

  .notification-page .market-page__title {
    font-size: 2rem;
  }

  .chat-page__threads,
  .chat-page__panel {
    padding: 0.85rem;
  }

  .chat-page__messages-shell {
    border-radius: 22px;
  }

  .chat-page__messages {
    padding: 0.85rem 0.9rem 0.85rem 0.85rem;
  }

  .chat-page__messages-shell.is-scrollable .chat-page__messages {
    padding-right: 1.1rem;
  }

  .chat-page__custom-scrollbar {
    top: 0.75rem;
    right: 0.22rem;
    bottom: 0.75rem;
  }

  .chat-message {
    max-width: 88%;
  }

  .chat-page__panel-head {
    gap: 0.8rem;
  }

  .chat-page__listing-card {
    grid-template-columns: 3.3rem minmax(0, 1fr);
  }

  .chat-page__listing-media,
  .chat-page__listing-placeholder {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 13px;
  }

  .chat-compose {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-compose__actions .market-button {
    width: 100%;
  }
}

/* ------------------------------------------------------------------------- */
/* Profile, Notifications, and Chat polish                                   */
/* ------------------------------------------------------------------------- */

.profile-show__hero {
  padding-bottom: 0.25rem;
}

.profile-show__hero-card {
  min-height: 0;
  padding: 0.45rem 0.85rem;
}

.profile-show__hero-panel {
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 0.7rem 0.85rem;
}

.profile-show__hero-avatar {
  justify-self: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-block: 0.05rem;
  font-size: 1.28rem;
}

.profile-show__hero-panel-copy {
  justify-self: center;
  text-align: center;
}

.profile-show__hero-metrics {
  width: 100%;
  justify-items: center;
  text-align: center;
}

.profile-show__content {
  gap: 0.9rem;
  margin-top: 0;
}

.profile-show__dashboard-header {
  display: flex;
  justify-content: left;
  margin-top: 0.1rem;
  margin-left: 1rem;
}

.profile-show__dashboard-title {
  margin: 0;
  color: #173057;
  font-size: clamp(1.18rem, 1.55vw, 1.52rem);
  font-weight: 800;
  line-height: 1.05;
}

.notification-page .market-page__body {
  gap: 0.3125rem;
}

/*.notification-page__controls {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
}*/

.notification-page__tabs-strip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100%;
  margin-top: 0;
}

.notification-page__tabs-row {
  min-height: 100%;
  align-items: center;
}

.notification-page__tab,
.notification-page__tab:hover,
.notification-page__tab:focus-visible,
.notification-page__tab.is-active {
  box-shadow: none;
}

.chat-page__thread-list {
  overflow-y: auto;
  padding-right: 0.18rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary-scrollbar) transparent;
}

.chat-page__panel-head {
  padding-bottom: 0.72rem;
  margin-bottom: 0.55rem;
}

.chat-page__messages {
  width: 100%;
  margin-right: 0;
  padding: 1.1rem 1rem 1.1rem 1.1rem;
  gap: 0.48rem;
}

.chat-page__messages-shell.is-scrollable .chat-page__messages {
  padding-right: 1.25rem;
}

.chat-compose {
  margin-top: 0.42rem;
}

.chat-offer-notice {
  justify-self: center;
  width: fit-content;
  max-width: min(100%, 28rem);
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: #f5f7fc;
  border: 1px solid rgba(214, 221, 233, 0.95);
  box-shadow: none;
}

.chat-offer-notice__text {
  margin: 0;
  color: var(--chat-muted);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: center;
}

.chat-offer-notice__text strong {
  color: var(--chat-text);
  font-size: 0.65rem;
}

@media (max-width: 900px) {
  .profile-show__hero-panel {
    justify-items: start;
  }

  .admin-page__hero-row {
    padding-left: 0;
  }

  .profile-show__hero-avatar,
  .profile-show__hero-panel-copy {
    justify-self: start;
    text-align: left;
  }

  .notification-page__controls {
    min-height: 0;
  }
}

/* ------------------------------------------------------------------------- */
/* Profile dashboard rows simplification                                     */
/* ------------------------------------------------------------------------- */

.profile-show__rows--dashboard-flat {
  max-height: 34rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.profile-item-row--flat {
  gap: 0.7rem;
}

.profile-item-row__footer {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.profile-item-row__footer--pin-card {
  width: 100%;
}

.profile-item-row__footer--inventory-card {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.profile-item-row__footer--tracking-card {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.profile-item-row__footer--offer-card {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.profile-item-row__summary {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.profile-item-row__summary-line {
  margin: 0;
  color: #23324f;
  font-size: 0.79rem;
  line-height: 1.45;
}

.profile-item-row__summary-line--muted {
  color: #64748b;
}

.profile-item-row__title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem;
  min-width: 0;
}

.profile-item-row__counterparty {
  min-width: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.profile-item-row__action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.profile-item-row__action-bar form,
.profile-pin-inline-form {
  margin: 0;
}

.profile-item-row__action-bar--wrap {
  row-gap: 0.65rem;
}

.profile-item-row--pin-card {
  gap: 0.82rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.profile-item-row__top--pin-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 1rem 1.35rem;
}

.profile-item-row__pin-panel {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.profile-item-row__pin-header {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.profile-item-row__identity--pin-card {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  align-content: start;
  text-align: right;
}

.profile-item-row__listing-shortcut,
.profile-item-row__listing-shortcut:visited {
  width: fit-content;
  max-width: 100%;
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(214, 221, 233, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #172033;
  text-decoration: none;
}

.profile-item-row__listing-shortcut:hover,
.profile-item-row__listing-shortcut:focus-visible {
  border-color: rgba(111, 33, 138, 0.28);
  box-shadow: 0 0 0 4px rgba(111, 33, 138, 0.08);
}

.profile-item-row__price-shortcut,
.profile-item-row__price-shortcut:visited {
  color: inherit;
  text-decoration: none;
}

.profile-item-row__price-shortcut:hover,
.profile-item-row__price-shortcut:focus-visible {
  border-color: rgba(111, 33, 138, 0.28);
  box-shadow: 0 0 0 4px rgba(111, 33, 138, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.profile-item-row__listing-shortcut-label,
.profile-item-row__listing-shortcut-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-item-row__listing-shortcut-label {
  color: #52627e;
}

.profile-item-row__listing-shortcut-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.42rem;
}

.profile-item-row__listing-shortcut-meta {
  color: var(--theme-primary-accent-text);
}

.profile-item-row__listing-shortcut-detail strong {
  color: #172033;
  font-size: 1rem;
  line-height: 1;
}

.profile-item-row__summary-line--headline {
  color: #172033;
  font-size: 0.95rem;
}

.profile-item-row__meta--pin-panel {
  font-size: 0.76rem;
}

.profile-item-row__summary-line--label {
  color: #52627e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-item-row__title--pin-panel {
  font-size: 1.1rem;
  line-height: 1.15;
}

.profile-item-row__inline-link,
.profile-item-row__inline-link:visited {
  color: var(--theme-primary-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.profile-item-row__inline-link:hover,
.profile-item-row__inline-link:focus-visible {
  text-decoration: underline;
}

.profile-item-row__inline-emphasis {
  color: var(--theme-primary-accent-text);
  font-weight: 700;
}

.profile-pin-entry-form {
  display: grid;
  flex: 1 1 20rem;
  justify-items: start;
  align-items: start;
  gap: 0.85rem;
}

.profile-seller-pin-offer {
  gap: 0.82rem;
}

.profile-seller-pin-offer__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem 1rem;
}

.profile-seller-pin-offer__identity,
.profile-seller-pin-offer__price {
  min-width: 0;
}

.profile-seller-pin-offer__price {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.4rem;
  text-align: right;
}

.profile-seller-pin-offer__controls {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.profile-seller-pin-offer__form {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.profile-seller-pin-offer__pin-group {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.profile-seller-pin-offer__submit {
  flex: 0 0 auto;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0 0.8rem;
}

.profile-seller-pin-offer__cancel {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-end;
  justify-content: flex-end;
}

.profile-pin-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.7rem;
}

.profile-pin-entry-form__group {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.profile-pin-code {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 17rem);
}

.profile-pin-code__digit {
  min-width: 0;
  min-height: 3.2rem;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--theme-primary-outline);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #172033;
}

.profile-pin-code__digit--input {
  padding: 0;
  text-align: center;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: 0;
  caret-color: var(--theme-primary);
}

.profile-pin-code__digit--input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-primary-outline-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.96);
}

.profile-pin-code__digit--filled {
  display: grid;
  place-items: center;
  font-size: 1.36rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(244, 238, 252, 0.9) 100%);
}

.profile-item-row__price-block--pin-card {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(214, 221, 233, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.profile-item-row__action-bar--pin-footer {
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
}

.profile-item-row__action-bar--inventory {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.profile-item-row__action-bar--inventory > .market-button,
.profile-item-row__action-bar--inventory > form {
  width: auto;
}

.profile-item-row__action-bar--tracking {
  justify-content: flex-end;
  align-self: end;
}

.profile-item-row__footer--offer-card .profile-item-row__action-bar {
  justify-content: flex-end;
}

.profile-item-row--inventory-card .profile-item-row__price-block {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(214, 221, 233, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.profile-item-row__price-shortcut.profile-item-row__price-block:hover,
.profile-item-row__price-shortcut.profile-item-row__price-block:focus-visible {
  border-color: rgba(111, 33, 138, 0.28);
  box-shadow: 0 0 0 4px rgba(111, 33, 138, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

@media (max-width: 720px) {
  .profile-show-page--dashboard .profile-item-row__title-line {
    flex-wrap: wrap;
  }

  .profile-item-row--buyer-accepted .profile-item-row__top {
    grid-template-columns: 1fr;
  }

  .profile-item-row__top--pin-card {
    grid-template-columns: 1fr;
  }

  .profile-item-row__identity--pin-card {
    justify-items: start;
    text-align: left;
  }

  .profile-pin-entry-form {
    width: 100%;
  }

  .profile-pin-entry-actions {
    width: 100%;
    align-items: stretch;
  }

  .profile-seller-pin-offer__header {
    grid-template-columns: 1fr;
  }

  .profile-seller-pin-offer__price {
    justify-items: start;
    text-align: left;
  }

  .profile-seller-pin-offer__controls {
    flex-wrap: wrap;
  }

  .profile-seller-pin-offer__cancel {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .profile-pin-entry-form__group {
    width: 100%;
  }

  .profile-item-row__action-bar--pin-footer {
    width: 100%;
  }

  .profile-item-row__action-bar--pin-inline {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-item-row__footer--inventory-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-item-row__footer--tracking-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-item-row__footer--offer-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-item-row__action-bar--inventory {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-item-row__action-bar--tracking {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-item-row__footer--offer-card .profile-item-row__action-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-item-row__price-block--pin-card {
    justify-items: start;
  }
}

/* ------------------------------------------------------------------------- */
/* Profile show/edit refresh                                                 */
/* ------------------------------------------------------------------------- */

.profile-show__hero-card {
  grid-template-columns: minmax(0, 1fr) clamp(11.5rem, 18vw, 14.5rem);
  align-items: center;
}

.profile-show__hero-copy {
  gap: 0.42rem;
  align-content: center;
  min-width: 0;
}

.profile-show__hero .market-page__eyebrow {
  margin: 0;
}

.profile-show__hero .market-page__title {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.02;
}

.profile-show__hero .market-page__lede {
  max-width: 36rem;
  margin: 0;
  color: #52627e;
  font-size: 0.84rem;
}

.profile-show__hero-panel {
  width: min(100%, 14.5rem);
  aspect-ratio: 1 / 1;
  max-height: 14.5rem;
  align-self: center;
  justify-self: end;
  align-content: center;
  justify-items: start;
  text-align: left;
  gap: 0.42rem;
}

.profile-show__hero-panel-copy,
.profile-show__hero-metrics {
  justify-self: stretch;
  text-align: left;
}

.profile-show__hero-tags {
  gap: 0.28rem;
}

.profile-show__hero-panel-title {
  font-size: 1.16rem;
}

.profile-show__hero-panel-subtitle {
  font-size: 0.84rem;
}

.profile-show__hero-metrics div {
  padding: 0.52rem 0.65rem;
}

.profile-show__hero .market-page__actions {
  gap: 0.55rem;
}

.profile-show__hero .market-button,
.profile-show__hero .market-button:visited,
.profile-show__hero .market-button--light,
.profile-show__hero .market-button--light:visited,
.profile-show__hero .market-button--ghost-light,
.profile-show__hero .market-button--ghost-light:visited {
  min-height: 2.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.profile-show__section-heading {
  margin-bottom: 0.3rem;
}

#dashboard_favorite_items_section .items-grid {
  margin-top: 0.15rem;
}

#dashboard_favorite_items_section {
  grid-area: favorites;
}

#dashboard_favorite_items_section .market-card,
#dashboard_favorite_items_section .market-card:hover {
  box-shadow: none;
}

.profile-show__section--full {
  grid-column: 1 / -1;
}

.profile-favorites__scroller {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-favorites__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profile-favorites__grid {
  width: max-content;
  min-width: 100%;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.75rem, 15.75rem);
  gap: 1rem;
}

.profile-favorites__scroll-shell.is-scrollable .profile-favorites__scroller {
  padding-bottom: 0.9rem;
}

.profile-show__rows {
  gap: 0.8rem;
}

.profile-item-row__summary-line strong {
  color: #172033;
}

.profile-edit-page .market-page__hero-inner {
  display: grid;
  gap: 0.85rem;
}

.profile-edit-page .market-page__lede {
  max-width: 42rem;
  margin: 0;
}

.profile-edit__section-heading {
  margin-bottom: 0.7rem;
}

.profile-edit__form {
  gap: 1rem;
}

.profile-form__section {
  display: grid;
  gap: 0.9rem;
}

.profile-form__section-copy {
  display: grid;
  gap: 0.22rem;
}

.profile-form__section-title {
  margin: 0;
  color: #172033;
  font-size: 1.05rem;
  line-height: 1.25;
}

.profile-edit__map-shell {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.profile-edit__map-note {
  font-size: 0.84rem;
}

.profile-inline-edit {
  display: grid;
  gap: 0.35rem;
}

.profile-inline-edit__detail {
  margin-top: 0;
}

.profile-inline-edit__trigger {
  flex: 0 0 auto;
}

.profile-inline-edit__read-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-inline-edit__value {
  display: inline-flex;
  align-items: center;
}

.profile-inline-edit__form {
  display: grid;
  gap: 0.45rem;
}

.profile-inline-edit__row {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
}

.profile-inline-edit [hidden] {
  display: none !important;
}

.profile-inline-edit__edit-row {
  display: ruby;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-inline-edit__input {
  flex: 1 1 15rem;
  width: auto;
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
}

.profile-inline-edit__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.profile-inline-edit__hint {
  margin: 0;
}

.profile-inline-edit__error {
  margin: 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .profile-inline-edit__row {
    align-items: stretch;
    min-height: 0;
  }

  .profile-inline-edit__read-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-inline-edit__edit-row,
  .profile-inline-edit__actions {
    width: 100%;
  }

  .profile-inline-edit__input {
    width: 100%;
  }

  .profile-inline-edit__actions {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .profile-show__hero-card {
    grid-template-columns: 1fr;
  }

  .profile-show__hero-panel {
    width: min(100%, 12rem);
    max-height: 12rem;
    justify-self: start;
  }

  .profile-show__hero-panel,
  .profile-show__hero-panel-copy,
  .profile-show__hero-metrics {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .item-show-page .item-show__shell,
  .chat-page .market-page__hero-inner--wide,
  .chat-page .market-page__body--wide {
    width: calc(100% - 1rem);
  }
}

/* ------------------------------------------------------------------------- */
/* Teammate UI merge: chat, search sidebar, item form polish                 */
/* ------------------------------------------------------------------------- */

.search-results-page__sidebar-card {
  position: relative;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
}

.search-results-page__sidebar-scroll {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.15rem 1.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-results-page__sidebar-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.search-results-page__custom-scrollbar {
  position: absolute;
  top: 0.9rem;
  right: 0.3rem;
  bottom: 0.9rem;
  width: 0.42rem;
}

.search-results-page__custom-scrollbar-thumb {
  width: 100%;
  min-height: 1.75rem;
  border-radius: 999px;
  background: var(--theme-primary-scrollbar);
  cursor: pointer;
}

.search-results-page__sidebar-card.is-scrollable .search-results-page__sidebar-scroll {
  padding-right: 1.4rem;
}

.listing-form-page__split {
  grid-template-columns: minmax(18.5rem, 19.5rem) minmax(0, 1fr);
  gap: 1rem;
}

.listing-form-page--edit .listing-form-page__split {
  grid-template-columns: minmax(0, 1fr) minmax(20.75rem, 21.75rem);
  align-items: start;
}

.listing-form-page--new .listing-form-page__split {
  grid-template-columns: minmax(0, 1fr) minmax(20.75rem, 21.75rem);
  align-items: start;
}

.listing-form-page__checklist {
  width: 100%;
  max-width: 21.75rem;
  padding: 1.45rem 1.7rem;
}

.listing-form-page__details {
  width: 100%;
}

.listing-form-page__details-head {
  display: grid;
  gap: 0.32rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(214, 221, 233, 0.92);
}

.listing-form-page__details-title {
  margin: 0;
  color: var(--chat-text, #172033);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.listing-form-page .listing-form {
  gap: 1.45rem;
}

.listing-form-page .market-form-field,
.listing-form-page .profile-form__field {
  gap: 0.32rem;
}

.listing-form-page .listing-form__grid {
  gap: 1.15rem;
}

.listing-form__grid + .listing-form__toggle {
  margin-top: 2px;
}

.listing-form-page .listing-form__grid + .listing-form__toggle {
  margin-top: 0.15rem;
}

.market-form-field__label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #172033;
  font-weight: 700;
}

.market-form-field--upload {
  margin-bottom: 5px;
}

.listing-form-page .market-form-field--upload {
  margin-top: 0.2rem;
}

.listing-form-page .market-button-row {
  margin-top: 0.4rem;
}

.listing-form-page--edit .listing-form-page__checklist .market-section-title {
  margin-bottom: 1rem;
}

.listing-form-page--edit .listing-form-page__checklist .market-data-list {
  gap: 1.15rem;
}

.listing-form__upload {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(214, 222, 232, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.listing-form__upload-callout {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  min-height: 8.25rem;
  padding: 1.25rem 1.1rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.96) 100%),
    linear-gradient(145deg, var(--theme-primary-surface-tint) 0%, rgba(255, 255, 255, 0.2) 100%);
  border: 1px dashed var(--theme-primary-outline-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.listing-form__upload-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.listing-form__upload-callout:focus-within {
  border-color: var(--theme-primary-outline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 18px 34px var(--theme-primary-shadow);
}

.listing-form__upload-copy,
.listing-form__upload-action {
  position: relative;
  z-index: 1;
}

.listing-form__upload-copy {
  display: grid;
  gap: 0.18rem;
  justify-items: center;
  text-align: center;
}

.listing-form__upload-copy strong {
  color: var(--theme-primary-ink-strong);
  font-size: 1rem;
}

.listing-form__upload-copy span {
  max-width: 28rem;
  color: #5d6b84;
  font-size: 0.88rem;
  line-height: 1.45;
}

.listing-form__upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 24px var(--theme-primary-shadow);
  cursor: pointer;
}

.listing-form__upload-action:hover,
.listing-form__upload-action:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.listing-form__upload-action-icon,
.listing-form__upload-action-icon::before {
  position: relative;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.listing-form__upload-action-icon {
  width: 0.9rem;
  height: 0.16rem;
}

.listing-form__upload-action-icon::before {
  position: absolute;
  left: 0.37rem;
  top: -0.37rem;
  width: 0.16rem;
  height: 0.9rem;
}

.listing-form__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.listing-form__upload-note {
  margin: 0;
  color: #5d6b84;
  font-size: 0.85rem;
  line-height: 1.45;
}

.listing-form__upload.has-files .listing-form__upload-action {
  background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary-deep) 100%);
}

.listing-form__upload.has-files .listing-form__upload-copy span {
  color: var(--theme-primary-ink);
  font-weight: 600;
}

.chat-page__messages-shell {
  position: relative;
  width: 100%;
  height: clamp(22rem, 61vh, 34rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(230, 235, 255, 0.92) 0%, rgba(230, 235, 255, 0) 24%),
    linear-gradient(180deg, #fdfefe 0%, #f4f7fb 100%);
  border: 1px solid rgba(216, 224, 236, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.chat-page__messages {
  display: grid;
  align-content: start;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 1.1rem 1rem 1.1rem 1.1rem;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-page__messages::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.chat-page__custom-scrollbar {
  position: absolute;
  top: 0.9rem;
  right: 0.28rem;
  bottom: 0.9rem;
  width: 0.42rem;
}

.chat-page__custom-scrollbar-thumb {
  width: 100%;
  min-height: 1.75rem;
  border-radius: 999px;
  background: rgba(114, 103, 215, 0.42);
  box-shadow: inset 0 0 0 1px rgba(114, 103, 215, 0.16);
  cursor: pointer;
}

.chat-page__messages-shell.is-scrollable .chat-page__messages {
  padding-right: 1.25rem;
}

.notification-page__tab,
.notification-page__tab:hover,
.notification-page__tab:focus-visible,
.notification-page__tab.is-active {
  box-shadow: none;
}

.admin-page__hero-row {
  padding-left: 0;
}

.listing-form-page--edit .market-page__hero-inner {
  gap: 0.45rem;
}

.listing-form-page--new .market-page__hero-inner {
  gap: 0.45rem;
}

.listing-form-page--edit .market-page__lede {
  margin-top: 0.15rem;
  max-width: 44rem;
}

@media (max-width: 1024px) {
  .listing-form-page__split {
    grid-template-columns: 1fr;
  }

  .listing-form-page__checklist {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .search-results-page__sidebar-card,
  .search-results-page__sidebar-scroll {
    max-height: none;
  }

  .search-results-page__sidebar-scroll {
    overflow: visible;
  }

  .chat-page__messages-shell {
    height: clamp(20rem, 58vh, 24rem);
  }
}

@media (max-width: 640px) {
  .search-results-page__sidebar-scroll {
    padding: 1rem;
  }

  .search-results-page__sidebar-card.is-scrollable .search-results-page__sidebar-scroll {
    padding-right: 1.3rem;
  }

  .search-results-page__custom-scrollbar {
    top: 0.8rem;
    right: 0.25rem;
    bottom: 0.8rem;
  }

  .chat-page__messages-shell {
    border-radius: 22px;
  }

  .chat-page__messages {
    padding: 0.85rem 0.9rem 0.85rem 0.85rem;
  }

  .chat-page__messages-shell.is-scrollable .chat-page__messages {
    padding-right: 1.1rem;
  }

  .chat-page__custom-scrollbar {
    top: 0.75rem;
    right: 0.22rem;
    bottom: 0.75rem;
  }
}

/* ------------------------------------------------------------------------- */
/* Final hero alignment overrides                                            */
/* ------------------------------------------------------------------------- */

.admin-page .market-page__hero-inner,
.admin-page .market-page__hero-inner--wide {
  width: min(1360px, calc(100% - 1rem));
}

.admin-page__hero-row {
  padding-left: 0;
}

.profile-dashboard__hero {
  padding: 0.3rem 0 0.55rem;
}

.profile-dashboard__hero-inner {
  width: min(1360px, calc(80% - 1rem));
  gap: 0.35rem;
}

.profile-edit-page__hero {
  padding: 0.3rem 0 0.55rem;
}

.profile-edit-page__hero-inner {
  width: min(1360px, calc(80% - 1rem));
  gap: 0.35rem;
}

.profile-show-page--dashboard .market-page__title {
  color: var(--chat-text, #16233d);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.profile-show-page--dashboard .profile-show__rows--dashboard-flat {
  gap: 0.55rem;
  overflow-x: hidden;
}

.profile-show-page--dashboard .profile-item-row--dashboard-linkable {
  position: relative;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-show-page--dashboard .profile-item-row--dashboard-linkable:hover,
.profile-show-page--dashboard .profile-item-row--dashboard-linkable:focus-within {
  transform: translateY(-1px);
  border-color: rgba(183, 163, 214, 0.55);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.profile-show-page--dashboard .profile-item-row__dashboard-overlay-link,
.profile-show-page--dashboard .profile-item-row__dashboard-overlay-link:visited {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.profile-show-page--dashboard .profile-item-row__dashboard-overlay-link:hover,
.profile-show-page--dashboard .profile-item-row__dashboard-overlay-link:focus-visible {
  text-decoration: none;
}

.profile-show-page--dashboard .profile-pin-entry-form,
.profile-show-page--dashboard .profile-item-row__action-bar {
  position: relative;
  z-index: 2;
}

.profile-show-page--dashboard .profile-item-row__summary {
  position: relative;
  z-index: 2;
}

.profile-show-page--dashboard .profile-seller-pin-offer__form,
.profile-show-page--dashboard .profile-seller-pin-offer__submit,
.profile-show-page--dashboard .profile-seller-pin-offer__cancel {
  position: relative;
  z-index: 2;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-pin-entry-form {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-pin-entry-actions {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-pin-entry-form__group {
  flex: 0 1 auto;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-pin-entry-form {
  display: grid;
  flex: 0 0 auto;
  gap: 0;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-pin-entry-form__submit {
  flex: 0 0 auto;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0 0.8rem;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-item-row__action-bar--pin-inline {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-end;
  justify-content: flex-end;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-item-row__identity--pin-card {
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
}

.profile-show-page--dashboard .profile-item-row__price-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
}

.profile-show-page--dashboard .profile-item-row__title-line {
  max-width: 100%;
  flex-wrap: nowrap;
}

.profile-show-page--dashboard .profile-item-row__title-line .profile-item-row__title,
.profile-show-page--dashboard .profile-item-row__title-line .profile-item-row__title--pin-panel {
  flex: 0 1 auto;
}

.profile-show-page--dashboard .profile-item-row__counterparty {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-show-page--dashboard .profile-item-row__counterparty--pin-card {
  font-size: 0.74rem;
}

.profile-show-page--dashboard .profile-item-row__price-block--dashboard {
  min-width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-items: end;
  align-self: start;
}

.profile-show-page--dashboard .profile-item-row__price-block--dashboard .profile-item-row__price-value {
  font-size: 1.15rem;
}

.profile-show-page:not(.profile-show-page--dashboard) .profile-item-row__price-block--dashboard {
  min-width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-items: end;
  align-self: center;
}

.profile-show-page:not(.profile-show-page--dashboard) .profile-item-row__price-block--dashboard .profile-item-row__price-value {
  font-size: 1.24rem;
  font-weight: 650;
}

.profile-show-page:not(.profile-show-page--dashboard) .profile-item-row__title-line .profile-item-row__title {
  font-size: 1.42rem;
}

.profile-show-page--dashboard .profile-item-row__action-bar--pin-side {
  justify-content: flex-end;
  align-self: end;
}

.profile-show-page--dashboard .profile-item-row--pin-card {
  gap: 0.6rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-show-page--dashboard .profile-item-row__top--pin-card {
  gap: 0.65rem;
}

.profile-show-page--dashboard .profile-item-row__pin-panel {
  gap: 0.45rem;
}

.profile-show-page--dashboard .profile-item-row__pin-header {
  gap: 0.2rem;
}

.profile-show-page--dashboard .profile-item-row__identity--pin-card {
  gap: 0.3rem;
}

.profile-show-page--dashboard .profile-item-row__title--pin-panel {
  font-size: 0.9rem;
}

.profile-show-page--dashboard .profile-item-row__meta--pin-panel,
.profile-show-page--dashboard .profile-item-row__summary-line,
.profile-show-page--dashboard .profile-item-row__summary-line--headline {
  font-size: 0.74rem;
}

.profile-show-page--dashboard .profile-item-row__summary-line--label {
  font-size: 0.68rem;
}

.profile-show-page--dashboard .profile-pin-code {
  width: min(100%, 11.5rem);
  gap: 0.4rem;
}

.profile-show-page--dashboard .profile-pin-code__digit {
  min-height: 2.35rem;
  border-radius: 12px;
}

.profile-show-page--dashboard .profile-pin-code__digit--input,
.profile-show-page--dashboard .profile-pin-code__digit--filled {
  font-size: 1.1rem;
}

.profile-show-page--dashboard .profile-pin-code__digit--input {
  border-color: var(--theme-primary-outline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.profile-show-page--dashboard .profile-pin-code__digit--input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-primary-outline-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.profile-show-page--dashboard .profile-item-row__summary--tooltip {
  display: flex;
  align-items: center;
}

.profile-show-page--dashboard .profile-item-row__info-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid rgba(154, 167, 191, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #52627e;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.profile-show-page--dashboard .profile-item-row__info-trigger:hover,
.profile-show-page--dashboard .profile-item-row__info-trigger:focus-visible {
  border-color: rgba(111, 33, 138, 0.3);
  box-shadow: 0 0 0 4px rgba(111, 33, 138, 0.08);
  outline: none;
}

.profile-show-page--dashboard .profile-item-row__info-popover {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 0.45rem);
  z-index: 4;
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 3rem));
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 221, 233, 0.92);
  background: rgba(255, 255, 255, 0.98);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  pointer-events: none;
}

.profile-show-page--dashboard .profile-item-row__info-trigger:hover .profile-item-row__info-popover,
.profile-show-page--dashboard .profile-item-row__info-trigger:focus-visible .profile-item-row__info-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-show-page--dashboard .profile-item-row__action-bar--pin-footer > .market-button:not(.market-button--danger) {
  display: none;
}

.profile-show-page--dashboard .profile-item-row__action-bar--pin-footer {
  width: 100%;
  justify-content: flex-end;
}

.profile-show-page--dashboard .profile-item-row--seller-accepted .profile-item-row__summary--pin-help {
  display: none;
}

.profile-show-page--dashboard .profile-item-row__footer--pin-card,
.profile-show-page--dashboard .profile-item-row__footer--tracking-card,
.profile-show-page--dashboard .profile-item-row__footer--inventory-card {
  gap: 0.45rem;
}

.profile-show-page--dashboard .profile-item-row__footer--offer-card {
  gap: 0.45rem;
}

.profile-show-page--dashboard .profile-item-row__footer--inventory-card {
  grid-template-columns: 1fr;
  justify-items: end;
}

.profile-show-page--dashboard .profile-item-row__action-bar--inventory {
  width: auto;
  align-items: flex-end;
  justify-content: flex-end;
}

.profile-show-page--dashboard .profile-show__rows--dashboard-selling,
.profile-show-page--dashboard .profile-show__rows--dashboard-live,
.profile-show-page--dashboard .profile-show__rows--dashboard-buying {
  padding-right: 0.3rem;
}

@media (max-width: 900px) {
  .profile-show__sections--dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "selling"
      "live"
      "buying";
  }
}

.profile-edit-page .market-page__title {
  color: var(--chat-text, #16233d);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.profile-show__hero {
  padding-bottom: 0.15rem;
}

.profile-show__hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 22rem);
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(111, 33, 138, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(111, 33, 138, 0.08) 0%, rgba(255, 255, 255, 0.97) 34%, rgba(248, 250, 252, 0.96) 66%, rgba(111, 33, 138, 0.05) 100%);
  border: 1px solid rgba(211, 219, 229, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-show__hero-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 33, 138, 0.12) 0%, transparent 72%);
}

.profile-show__hero-copy,
.profile-show__hero-panel {
  position: relative;
  z-index: 1;
}

.profile-show__hero-copy {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-width: 0;
}

.profile-show__hero .market-page__title {
  color: #16233d;
  font-size: clamp(1.38rem, 2.15vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.profile-show__hero-tags {
  gap: 0.35rem;
}

.profile-show__hero .item-show__hero-tag {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(183, 163, 214, 0.45);
  color: #334155;
}

.profile-show__hero .market-page__lede {
  max-width: 36rem;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-show__hero .market-page__actions {
  gap: 0.6rem;
}

.profile-show__hero .market-button,
.profile-show__hero .market-button:visited,
.profile-show__hero .market-button--light,
.profile-show__hero .market-button--light:visited,
.profile-show__hero .market-button--ghost-light,
.profile-show__hero .market-button--ghost-light:visited {
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
}

.profile-show__hero-panel {
  width: min(100%, 12rem);
  aspect-ratio: 1 / 1;
  max-height: 12rem;
  align-self: center;
  justify-self: end;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.95rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 244, 252, 0.9) 100%);
  border: 1px solid rgba(211, 219, 229, 0.92);
}

.profile-edit-page .market-page__body {
  margin-top: 0.2rem;
}

.profile-show__hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--theme-primary-ink-strong);
  font-size: 1.14rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.profile-show__hero-panel-copy {
  display: grid;
  gap: 0.3rem;
  justify-self: center;
  text-align: center;
}

.profile-show__hero-panel-title {
  margin: 0;
  color: #16233d;
  font-size: 1.2rem;
  line-height: 1.08;
}

.profile-show__hero-panel-subtitle,
.profile-show__hero-panel-label,
.profile-show__hero-metrics {
  display: none;
}

.profile-item-row__card-link,
.profile-item-row__card-link:visited {
  display: grid;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}

.profile-item-row__card-link:hover,
.profile-item-row__card-link:focus-visible {
  text-decoration: none;
}

.profile-item-row--linkable {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-item-row--linkable:hover,
.profile-item-row--linkable:focus-within {
  transform: translateY(-1px);
  border-color: rgba(183, 163, 214, 0.55);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .profile-dashboard__hero-inner {
    width: calc(100% - 1rem);
  }

  .profile-edit-page__hero-inner {
    width: calc(100% - 1rem);
  }

  .profile-show__hero-card {
    grid-template-columns: 1fr;
  }

  .profile-show__hero-panel {
    width: min(100%, 10.5rem);
    max-height: 10.5rem;
    justify-self: start;
  }

  .profile-show__hero-panel,
  .profile-show__hero-panel-copy {
    justify-items: start;
    text-align: left;
  }
}
