:root {
  --ehas-navy: var(--navy, #00275c);
  --ehas-red: var(--red, #ec1018);
  --ehas-green: var(--green, #08783e);
  --ehas-soft: var(--soft, #f4f7fb);
  --ehas-line: var(--line, #d8e2ef);
  --ehas-muted: var(--muted, #60718a);
  --ehas-shadow: var(--shadow, 0 18px 46px rgba(0,31,77,.08));
}

.ehas-swiper {
  min-height: 760px;
  background: var(--ehas-soft);
}

.ehas-swiper .work-view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 24px;
  align-items: center;
  margin: 18px;
  padding: 34px;
  border-radius: 24px;
  background: radial-gradient(circle at 82% 18%, #174f88, var(--ehas-navy) 62%);
  color: #fff;
  box-shadow: var(--ehas-shadow);
}

.ehas-swiper .work-view-header > .swiper-hero-copy,
body.is-unseen-swiper .ehas-swiper .work-view-header > .swiper-hero-copy {
  display: grid;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.ehas-swiper .swiper-breadcrumb-row,
body.is-unseen-swiper .ehas-swiper .swiper-breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: flex-start;
}

.ehas-swiper .back-home {
  display: inline-flex;
  margin: 0;
  color: #ff969a;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.ehas-swiper .eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #ff969a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ehas-swiper .swiper-breadcrumb-row .eyebrow i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.ehas-swiper h1 {
  max-width: 830px;
  margin: 0 0 2px;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}

.ehas-swiper .work-view-header p {
  max-width: 730px;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.55;
}

.ehas-swiper .swiper-keyboard-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  color: #d9e4f3;
  font-size: 10px;
  font-weight: 800;
}

.ehas-swiper .swiper-keyboard-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
}

.ehas-swiper .unseen-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 11px;
  align-items: center;
  padding: 17px;
  border-radius: 18px;
  background: #fff;
  color: var(--ehas-navy);
  scroll-margin-top: 8px;
}

.ehas-swiper .unseen-summary strong {
  grid-row: 1 / 3;
  color: var(--ehas-navy);
  font-size: 42px;
  line-height: .9;
}

.ehas-swiper .unseen-summary span,
.ehas-swiper .unseen-summary small {
  color: var(--ehas-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ehas-swiper .unseen-summary button {
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--ehas-red);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.ehas-swiper .unseen-summary button:last-child {
  grid-column: 1 / -1;
  background: var(--ehas-navy);
}

.ehas-swiper .unseen-swiper-layout {
  display: grid;
  grid-template-columns: 280px minmax(420px, 620px) 230px;
  justify-content: center;
  align-items: start;
  gap: 22px;
  padding: 26px 18px 80px;
}

.ehas-swiper .unseen-filter-panel,
.ehas-swiper .swipe-progress {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--ehas-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ehas-shadow);
}

.ehas-swiper .filter-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ehas-swiper .filter-heading span,
.ehas-swiper .filter-block strong,
.ehas-swiper .swipe-progress strong {
  color: var(--ehas-navy);
  font-size: 11px;
  font-weight: 900;
}

.ehas-swiper .filter-heading button,
.ehas-swiper .swipe-progress button,
.ehas-swiper .swipe-progress a,
.ehas-swiper .swiper-empty button {
  display: inline-flex;
  justify-content: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--ehas-navy);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.ehas-swiper .filter-block {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ehas-line);
}

.ehas-swiper .unseen-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ehas-swiper .unseen-category-grid button {
  min-height: 34px;
  padding: 8px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  color: var(--ehas-navy);
  font-size: 8px;
  font-weight: 900;
}

.ehas-swiper .unseen-category-grid button.active {
  border-color: rgba(236,16,24,.28);
  background: #fff2f3;
  color: var(--ehas-red);
}

.ehas-swiper .rating-filter {
  display: grid;
  gap: 7px;
  color: var(--ehas-navy);
  font-size: 10px;
  font-weight: 900;
}

.ehas-swiper .rating-filter output {
  justify-self: end;
  margin-top: -20px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ehas-soft);
  color: var(--ehas-red);
  font-size: 10px;
}

.ehas-swiper .rating-filter input {
  width: 100%;
  accent-color: var(--ehas-red);
}

.ehas-swiper .unseen-filter-panel p {
  margin: 0;
  color: var(--ehas-muted);
  font-size: 9px;
  line-height: 1.45;
}

.ehas-swiper .swiper-stage {
  position: relative;
  display: grid;
  align-items: start;
}

.ehas-swiper #auction-swiper-stage {
  scroll-margin-top: 8px;
}

.ehas-swiper .swiper-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--ehas-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0,31,77,.16);
  transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease;
  touch-action: pan-y;
  will-change: transform;
}

.ehas-swiper .swiper-card.swiping-left {
  box-shadow: 0 0 0 5px rgba(236,16,24,.18), 0 22px 55px rgba(0,31,77,.16);
}

.ehas-swiper .swiper-card.swiping-right,
.ehas-swiper .swiper-card.bid-saved {
  box-shadow: 0 0 0 5px rgba(8,120,62,.2), 0 22px 55px rgba(0,31,77,.16);
}

.ehas-swiper .swiper-card.swipe-exit-left {
  opacity: 0;
  transform: translateX(-125%) rotate(-13deg);
}

.ehas-swiper .swiper-card.swipe-exit-right {
  opacity: 0;
  transform: translateX(125%) rotate(13deg);
}

.ehas-swiper .large-swipe-photo {
  position: relative;
  width: 100%;
  height: 340px;
  border: 0;
  background-color: #dfe7f0;
  background-image: linear-gradient(135deg, #aebdca, #71879d);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
  background-blend-mode: normal, soft-light;
  cursor: grab;
}

.ehas-swiper .large-swipe-photo.has-image {
  background-color: #dfe7f0;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
  background-blend-mode: normal, soft-light;
}

.ehas-swiper .large-swipe-photo.has-image::after,
.ehas-swiper .gallery-hero.has-image::after {
  display: none;
}

.ehas-swiper .large-swipe-photo:not(.has-image)::after,
.ehas-swiper .gallery-hero:not(.has-image)::after {
  position: absolute;
  top: 30%;
  left: 28%;
  width: 44%;
  height: 34%;
  border-radius: 24% 38% 20% 28%;
  background: rgba(255,255,255,.36);
  box-shadow: 20px 18px 35px rgba(0,0,0,.18);
  content: "";
  transform: rotate(-8deg);
}

.ehas-swiper .large-swipe-copy {
  padding: 16px;
}

.ehas-swiper .large-swipe-copy small {
  color: var(--ehas-red);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ehas-swiper .large-swipe-copy h2 {
  margin: 6px 0;
  color: var(--ehas-navy);
  font-size: 25px;
  line-height: 1.08;
}

.ehas-swiper .large-swipe-copy p {
  margin: 0;
  color: var(--ehas-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ehas-swiper .swipe-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ehas-swiper .swipe-score-row span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 11px 9px;
  border-radius: 12px;
  background: #f1f5fb;
  color: var(--ehas-navy);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ehas-swiper .swipe-score-row span.high {
  background: #eaf9ef;
  color: var(--ehas-green);
}

.ehas-swiper .swipe-score-row span.low {
  background: #fff0f0;
  color: #9a0a11;
}

.ehas-swiper .swipe-score-row strong {
  font-size: 24px;
  line-height: 1;
}

.ehas-swiper .swiper-condition {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fb;
}

.ehas-swiper .swiper-condition b {
  color: var(--ehas-navy);
  font-size: 12px;
  line-height: 1.45;
}

.ehas-swiper .swiper-condition button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ehas-green);
  font-size: 10px;
  font-weight: 900;
}

.ehas-swiper .large-swipe-card footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 9px;
  padding: 0 16px 16px;
}

.ehas-swiper .large-swipe-card footer button {
  min-height: 45px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.ehas-swiper .large-swipe-card .dismiss,
.ehas-swiper .large-swipe-card .details {
  border: 1px solid #f1b9bc;
  background: #fff;
  color: var(--ehas-red);
}

.ehas-swiper .large-swipe-card .details {
  border-color: var(--ehas-line);
  color: var(--ehas-navy);
}

.ehas-swiper .large-swipe-card .keep {
  border: 1px solid var(--ehas-green);
  background: var(--ehas-green);
  color: #fff;
}

.ehas-swiper .swiper-decision {
  position: absolute;
  z-index: 1;
  top: 145px;
  padding: 12px 15px;
  border: 3px solid;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.ehas-swiper .swiper-decision.left {
  left: 4px;
  color: var(--ehas-red);
  transform: rotate(-10deg);
}

.ehas-swiper .swiper-decision.right {
  right: 4px;
  color: var(--ehas-green);
  transform: rotate(10deg);
}

.ehas-swiper .swiper-stage:has(.swiping-left) .swiper-decision.left,
.ehas-swiper .swiper-stage:has(.swiping-right) .swiper-decision.right {
  opacity: 1;
}

.ehas-swiper .swiper-empty {
  display: grid;
  gap: 9px;
  align-self: start;
  padding: 35px;
  border: 1px dashed #c6d3e2;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ehas-swiper .swiper-empty strong {
  color: var(--ehas-navy);
  font-size: 20px;
}

.ehas-swiper .swiper-empty p {
  margin: 0;
  color: var(--ehas-muted);
  font-size: 12px;
}

.ehas-swiper .swipe-progress span {
  padding: 9px;
  border-radius: 9px;
  background: var(--ehas-soft);
  color: var(--ehas-muted);
  font-size: 9px;
}

.ehas-swiper .swipe-progress span b {
  color: var(--ehas-navy);
  font-size: 18px;
}

.ehas-swiper .swipe-progress .reswipe-button {
  background: var(--ehas-red);
}

.ehas-swiper .swiper-card[hidden],
.ehas-swiper .swiper-empty[hidden],
.ehas-swiper .swiper-gallery-modal[hidden] {
  display: none;
}

.ehas-swiper .swiper-gallery-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,12,24,.78);
}

.ehas-swiper .swiper-gallery-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 720px) minmax(240px, 360px);
  gap: 18px;
  width: min(1120px, 96vw);
  max-height: 92vh;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.ehas-swiper .gallery-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--ehas-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.ehas-swiper .gallery-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #aebdca, #71879d);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.ehas-swiper .gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,31,77,.88);
  color: #fff;
  font-size: 24px;
  transform: translateY(-50%);
}

.ehas-swiper .gallery-prev { left: 14px; }
.ehas-swiper .gallery-next { right: 14px; }
.ehas-swiper .gallery-hero > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0,31,77,.88);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.ehas-swiper .swiper-gallery-card > div:last-child {
  display: grid;
  align-content: center;
  gap: 10px;
}

.ehas-swiper .swiper-gallery-card span {
  color: var(--ehas-red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ehas-swiper .swiper-gallery-card h2 {
  margin: 0;
  color: var(--ehas-navy);
  font-size: 31px;
  line-height: 1.05;
}

.ehas-swiper .swiper-gallery-card p,
.ehas-swiper .gallery-hint {
  margin: 0;
  color: var(--ehas-muted);
  font-size: 12px;
  line-height: 1.55;
}

body.ehas-gallery-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .ehas-swiper .unseen-swiper-layout {
    grid-template-columns: 210px minmax(360px, 560px);
  }
  .ehas-swiper .swipe-progress {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
  .ehas-swiper .swipe-progress strong,
  .ehas-swiper .swipe-progress a,
  .ehas-swiper .swipe-progress button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ehas-swiper .work-view-header {
    grid-template-columns: 1fr;
    margin: 8px;
    padding: 20px 13px;
    border-radius: 16px;
  }
  .ehas-swiper h1 {
    font-size: 38px;
  }
  .ehas-swiper .work-view-header p {
    font-size: 12px;
  }
  .ehas-swiper .swiper-keyboard-hint {
    display: none;
  }
  .ehas-swiper .unseen-summary {
    grid-template-columns: auto 1fr;
    padding: 12px;
  }
  .ehas-swiper .unseen-summary strong {
    font-size: 30px;
  }
  .ehas-swiper .unseen-swiper-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 8px 105px;
  }
  .ehas-swiper .swiper-stage {
    order: 1;
  }
  .ehas-swiper .unseen-filter-panel {
    position: static;
    order: 2;
  }
  .ehas-swiper .swipe-progress {
    position: static;
    order: 3;
    grid-template-columns: repeat(3, 1fr);
  }
  .ehas-swiper .large-swipe-photo {
    height: 250px;
  }
  .ehas-swiper .large-swipe-copy {
    padding: 13px;
  }
  .ehas-swiper .large-swipe-copy h2 {
    font-size: 21px;
  }
  .ehas-swiper .swipe-score-row span {
    min-height: 62px;
  }
  .ehas-swiper .large-swipe-card footer {
    grid-template-columns: 1fr;
    padding: 0 13px 13px;
  }
  .ehas-swiper .swiper-gallery-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100dvh - 18px);
    overflow: auto;
    border-radius: 18px;
  }
  .ehas-swiper .gallery-hero {
    min-height: 330px;
  }
}
