/* Project workflow + gallery — large tap targets, kid-friendly spacing */

.gs-workflow-hero {
  background: linear-gradient(180deg, #fff9e6 0%, #ffffff 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.gs-workflow-timer-wrap {
  display: flex;
  justify-content: center;
}

/* Timer + primary action: stacked on md and below; side-by-side from lg up */
.gs-workflow-timer-bar {
  width: 100%;
}

/* Digital stopwatch — monospace segment-style readout */
.gs-workflow-timer {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: #7fdbca;
  background: linear-gradient(180deg, #0d1b2a 0%, #0a1628 45%, #050a12 100%);
  border: 3px solid #1b263b;
  border-radius: 0.5rem;
  padding: 0.55rem 1.15rem;
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(127, 219, 202, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.35);
  text-shadow: 0 0 12px rgba(127, 219, 202, 0.45);
  display: inline-block;
  min-width: 9ch;
  text-align: center;
}

.project-workflow-hunt-page .gs-workflow-hunt-header {
  align-items: center;
}

.gs-workflow-hunt-title {
  font-family: var(--bs-header-font-family, "Jua", sans-serif);
  color: var(--gs-dark-purple, #3c0777);
  line-height: 1.2;
}

.gs-workflow-hunt-tagline {
  color: var(--gs-teal, #008080);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.gs-workflow-hunt-hint {
  color: var(--bs-secondary-color, #6c757d);
}

.gs-workflow-hunt-header-mascot .mascot-lottie dotlottie-wc {
  display: block;
}

.gs-workflow-header-buddy-ring {
  width: 96px;
  height: 96px;
  padding: 2px;
}

.gs-workflow-header-buddy-ring--large {
  width: 124px;
  height: 124px;
  padding: 3px;
}

.gs-workflow-header-buddy-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

/* Responsive grid: at most three columns so cards stay wide enough for long names */
.gs-hunt-supplies-grid {
  display: grid;
  gap: 1rem;
  /*
   * Auto-switch between 1 and 2 columns based on real space, not a hard breakpoint.
   * This avoids awkward widths right around the previous 768px transition.
   */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
}

@media (min-width: 992px) {
  .gs-hunt-supplies-grid {
    /* Auto-fallback to two columns when cards get too narrow for normal word wraps */
    grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
  }
}

/* Thumbnail: same yellow ring as supply cupboard (.gs-image-ring in glue_stick_app.css) */
.gs-supply-hunt-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.gs-supply-hunt-thumb-wrap .gs-supply-hunt-thumb-ring {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 7px;
  box-sizing: border-box;
}

/* Inset artwork so line art clears the yellow ring */
.gs-supply-hunt-thumb-wrap .gs-supply-hunt-thumb-ring .supply-item-thumb-img {
  width: 62%;
  height: 62%;
  max-width: 62%;
  max-height: 62%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.gs-supply-hunt-thumb-wrap .gs-supply-hunt-thumb-ring .supply-item-lottie {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gs-supply-hunt-card.is-done .supply-item-thumb-img {
  opacity: 0;
  visibility: hidden;
}

.gs-supply-hunt-card.is-done .supply-item-lottie {
  opacity: 1;
  visibility: visible;
}

/* Locked until timer starts: grey overlay; card still tappable */
.gs-workflow-hunt--locked .gs-supply-hunt-card {
  position: relative;
  filter: grayscale(0.9);
  opacity: 0.72;
  pointer-events: auto;
}

.gs-workflow-hunt--locked .gs-supply-hunt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.gs-workflow-hunt--locked .gs-supply-hunt-card > * {
  pointer-events: none;
}

/* Timer paused (or stopped at completion): supplies grayscale; taps still resume the timer */
.gs-workflow-hunt--paused .gs-supply-hunt-card {
  filter: grayscale(0.9);
  opacity: 0.72;
}

#gsHuntHoorayModal .modal-content {
  border-radius: var(--bs-modal-border-radius, 12px);
  border: 3px solid var(--gs-dark-purple, #3c0777);
}

.gs-supply-hunt-card {
  border: 3px solid #ced4da;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  min-height: 5rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.1s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.gs-workflow-hunt-supply-label,
.gs-workflow-hunt-hint {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

/* Hunt active (timer started): unchecked cards */
.project-workflow-hunt-page [data-workflow-hunt]:not(.gs-workflow-hunt--locked) .gs-supply-hunt-card:not(.is-done) {
  border-color: var(--gs-light-purple, #e5dcf4);
}

.project-workflow-hunt-page [data-workflow-hunt]:not(.gs-workflow-hunt--locked) .gs-supply-hunt-card:not(.is-done):hover {
  box-shadow: 0 4px 16px rgba(60, 7, 119, 0.12);
}

.gs-supply-hunt-card.is-done {
  border-color: var(--gs-dark-purple, #3c0777);
  background: var(--gs-light-purple, #e5dcf4);
}

.gs-supply-hunt-card .form-check-input {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0;
}

.gs-btn-xl {
  padding: 0.85rem 1.5rem;
  font-size: 1.15rem;
  border-radius: 0.75rem;
}

/* Flex layout: space between switch and label, bottom-align with label text */
.gs-messy-toggle.form-check.form-switch {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.85rem;
  padding-left: 0;
}

.gs-messy-toggle .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0;
  flex-shrink: 0;
  width: 3rem;
  height: 1.5rem;
}

.gs-messy-toggle .form-check-label {
  padding-left: 0;
  line-height: 1.3;
}

.gs-messy-popover .popover-body {
  padding: 0.65rem 0.75rem;
}

.gs-messy-popover-inner p {
  max-width: 16rem;
}

.gs-messy-toggle-wrap .gs-messy-info-btn {
  color: var(--gs-teal, #008080);
  line-height: 1;
  text-decoration: none;
}

.gs-messy-toggle-wrap .gs-messy-info-btn:hover,
.gs-messy-toggle-wrap .gs-messy-info-btn:focus-visible {
  color: var(--gs-dark-purple, #3c0777);
}

/* Instructions page — header matches hunt (mascot + Jua title + teal tagline) */
.project-workflow-instructions-page .gs-workflow-instructions-header .gs-workflow-hunt-header-mascot .mascot-lottie dotlottie-wc {
  display: block;
}

.gs-workflow-back-link {
  display: inline-block;
  font-weight: 600;
  color: var(--gs-teal, #008080);
  text-decoration: none;
  border-bottom: 2px solid var(--gs-light-yellow, #f9e3ab);
}

.gs-workflow-back-link:hover {
  color: var(--gs-dark-purple, #3c0777);
  border-bottom-color: var(--gs-yellow, #fdb515);
}

.gs-workflow-instructions-toolbar {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 0.125rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  /* Covers any stray mascot overflow above the back link */
  background: var(--bs-body-bg, #f9fafb);
}

/* Steps panel — white card like home .value-prop */
.gs-instructions-steps-panel {
  background: #fff;
  border-radius: var(--home-card-radius, 24px);
  padding: 1.25rem 1rem;
  box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.project-workflow-instructions-page .gs-workflow-instructions-toolbar + .gs-instructions-steps-panel {
  margin-top: 0.5rem;
}

/* Step layout: compact image beside text on lg+; stacked on small screens */
.gs-step-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gs-light-light-purple, #efe8f7);
}

.project-workflow-instructions-page .gs-instructions-steps-panel .gs-step-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gs-step-block__title {
  font-family: var(--bs-header-font-family, "Jua", sans-serif);
  color: var(--gs-dark-purple, #3c0777);
}

.gs-step-media {
  background: var(--gs-light-light-purple, #efe8f7);
  border: 2px solid var(--gs-light-purple, #e5dcf4);
  border-radius: 0.75rem;
  padding: 0.5rem;
  max-width: 100%;
}

/* Column matches image max width so “Make photo bigger” aligns with image’s right edge */
.gs-step-img-column {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.gs-step-img-thumb {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 220px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
}

@media (min-width: 992px) {
  .gs-step-img-thumb {
    max-height: 200px;
  }
}

.gs-step-enlarge-btn {
  border: 2px solid var(--gs-dark-purple, #3c0777);
  color: var(--gs-dark-purple, #3c0777);
  background: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
}

.gs-step-enlarge-btn:hover {
  background: var(--gs-light-purple, #e5dcf4);
  color: var(--gs-dark-purple, #3c0777);
}

.project-step-body {
  line-height: 1.55;
}

/* Safety badges — GlueStick yellow (caution / help) and red (heat) */
.gs-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  border: 3px solid;
  box-shadow: 0 2px 0 rgba(8, 2, 15, 0.12);
}

.gs-step-badge--sharp {
  background: var(--gs-light-yellow, #f9e3ab);
  color: var(--gs-black, #08020f);
  border-color: var(--gs-yellow, #fdb515);
}

.gs-step-badge--hot {
  background: #ffe8e0;
  color: #5c1a0a;
  border-color: var(--gs-red, #f44708);
  box-shadow: 0 2px 0 rgba(244, 71, 8, 0.2);
}

.gs-step-badge--adult {
  background: var(--gs-light-yellow, #f9e3ab);
  color: var(--gs-black, #08020f);
  border-color: #e5a30a;
  border-width: 3px;
}

.gs-instructions-modal-img {
  max-height: min(85vh, 720px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.gs-rating-face {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 3px solid #333;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  margin: 0 0.35rem;
}

.gs-rating-face i.fa-face-smile {
  color: var(--gs-teal);
}
.gs-rating-face i.fa-face-meh {
  color: var(--gs-yellow);
}
.gs-rating-face i.fa-face-frown {
  color: var(--gs-red);
}

.gs-rating-face.is-selected {
  border-color: var(--gs-dark-purple, #3c0777);
  background: #f3e9ff;
}

.gs-gallery-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid var(--gs-light-purple, #e5dcf4);
  box-shadow: 0 4px 0 var(--gs-light-purple, #e5dcf4);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gs-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--gs-light-purple, #e5dcf4), 0 8px 20px rgba(106, 13, 173, 0.1);
}

.gs-gallery-card__celebrate {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gs-yellow, #fdb515);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--gs-btn-shadow-yellow-deep, #b87708);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Camera chrome: .gs-camera-layer on markup (alias) inherits .supply-snap-camera-layer from supply_snap_page.css */

.gs-gallery-card__media-root {
  position: relative;
}

.gs-gallery-card__media,
.gs-gallery-carousel {
  position: relative;
  background: #fff;
}

.gs-gallery-card__media img,
.gs-gallery-carousel__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gs-gallery-card__media--placeholder {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(145deg, #fff 0%, var(--gs-light-light-purple, #efe8f7) 100%);
  color: var(--gs-purple, #6a0dad);
  font-size: 2.5rem;
  padding: 1rem;
  text-align: center;
}

.gs-gallery-card__placeholder-hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gs-dark-purple, #3c0777);
  line-height: 1.3;
  max-width: 12rem;
}

.gs-gallery-carousel__viewport {
  position: relative;
  background: #fff;
}

.gs-gallery-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #495057;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gs-gallery-carousel__nav:hover {
  background: #fff;
  color: #212529;
}

.gs-gallery-carousel__nav--prev {
  left: 0.5rem;
}

.gs-gallery-carousel__nav--next {
  right: 0.5rem;
}

.gs-gallery-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0 0.25rem;
}

.gs-gallery-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #ced4da;
}

.gs-gallery-carousel__dot.is-active {
  background: #6f42c1;
  transform: scale(1.15);
}

/* Add-photo modal: cap camera / preview height so stills fit without modal scrollbars */
#gsGalleryAddPhotoModal .supply-snap-camera-viewport {
  max-height: min(42vh, 220px);
  min-height: 8rem;
}

#gsGalleryAddPhotoModal .supply-snap-camera-video {
  max-height: min(42vh, 220px);
  min-height: 8rem;
}

#gsGalleryAddPhotoModal .supply-snap-camera-preview {
  max-height: min(42vh, 220px);
}

#gsGalleryAddPhotoModal .supply-snap-camera-preview__img {
  max-height: min(42vh, 220px);
}

/* Thumbnail strip: same constraints as .project-workflow-complete-page (gallery body lacks that wrapper) */
#gsGalleryAddPhotoModal .pw-complete-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

#gsGalleryAddPhotoModal .pw-complete-photo-chip-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.35rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bs-tertiary-bg, #e9ecef);
}

#gsGalleryAddPhotoModal .pw-complete-photo-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#gsGalleryAddPhotoModal .pw-complete-photo-gallery {
  max-width: 100%;
}

.gs-gallery-card__body {
  padding: 0.85rem 0.85rem 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--gs-light-light-purple, #efe8f7) 100%);
  border-top: none;
  color: var(--gs-black, #08020f);
}

.gs-gallery-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gs-dark-purple, #3c0777);
  text-align: left;
}

.gs-gallery-card__title-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-size: 0.95rem;
  color: var(--gs-yellow, #fdb515);
}

.gs-gallery-card__meta {
  margin-top: 0.45rem;
}

.gs-gallery-card__meta-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: #fff;
  border: 1px solid var(--gs-light-purple, #e5dcf4);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gs-dark-purple, #3c0777);
  line-height: 1.3;
}

.gs-gallery-card__meta-icon {
  color: var(--gs-teal, #008080);
  font-size: 0.9rem;
}

.gs-gallery-card__meta-dot {
  opacity: 0.45;
}

.gs-gallery-card__meta-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-gallery-card__ratings {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.gs-gallery-card__rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.2rem 0.55rem 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--gs-light-purple, #e5dcf4);
  font-size: 1.15rem;
  line-height: 1;
}

.gs-gallery-card__rating-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  font-size: 0.62rem;
  line-height: 1.15;
  color: var(--gs-dark-purple, #3c0777);
}

.gs-gallery-card__rating-kind {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gs-purple, #6a0dad);
}

.gs-gallery-card__rating-label {
  font-weight: 600;
}

.gs-gallery-card__actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.gs-gallery-card__action {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.2rem;
  border-radius: 0.85rem;
  border: 2px solid var(--gs-light-purple, #e5dcf4);
  background: #fff;
  text-decoration: none;
  color: var(--gs-dark-purple, #3c0777);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.gs-gallery-card__action:hover,
.gs-gallery-card__action:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gs-purple, #6a0dad);
  color: var(--gs-dark-purple, #3c0777);
}

.gs-gallery-card__action-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.gs-gallery-card__action-label {
  text-align: center;
}

.gs-gallery-card__action--again .gs-gallery-card__action-icon {
  background: var(--gs-teal, #008080);
  color: #fff;
}

.gs-gallery-card__action--share .gs-gallery-card__action-icon {
  background: var(--gs-light-purple, #e5dcf4);
  color: var(--gs-dark-purple, #3c0777);
}

.gs-gallery-card__action--snap .gs-gallery-card__action-icon {
  background: var(--gs-yellow, #fdb515);
  color: var(--gs-black, #08020f);
}

.gs-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, var(--gs-light-light-purple, #efe8f7) 100%);
  border: 2px dashed var(--gs-light-purple, #e5dcf4);
}

.gs-gallery-empty__icon {
  font-size: 2.5rem;
  color: var(--gs-purple, #6a0dad);
}

.gs-gallery-empty__text {
  font-weight: 600;
  color: var(--gs-dark-purple, #3c0777);
  max-width: 22rem;
}

.gs-gallery-rating__icon--1 {
  color: var(--gs-red);
}

.gs-gallery-rating__icon--2 {
  color: var(--gs-yellow);
}

.gs-gallery-rating__icon--3 {
  color: var(--gs-teal);
}

/* Freemium: completions older than the N most recent household-wide (see projects.txt ART GALLERY) */
.gs-gallery-card--freemium-muted .gs-gallery-card__media-root {
  filter: grayscale(0.95);
}

.gs-gallery-table-row--freemium-muted {
  filter: grayscale(0.95);
}

.gs-freemium-banner {
  background: #fff3cd;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.gs-gallery-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gs-gallery-view-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 2px solid #dee2e6;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  background: #fff;
}

.gs-gallery-view-tab:hover,
.gs-gallery-view-tab:focus-visible {
  border-color: #6f42c1;
  color: inherit;
}

.gs-gallery-view-tab.is-active {
  border-color: #6f42c1;
  background: #f3e9ff;
}

.gs-gallery-view-combo {
  display: inline-flex;
}

.gs-gallery-view-combo__toggle {
  cursor: pointer;
}

.gs-gallery-view-combo__toggle.dropdown-toggle::after {
  margin-left: 0.45rem;
  vertical-align: 0.15em;
}

.gs-gallery-view-combo__menu {
  border-radius: 0.75rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.5rem 1rem rgba(8, 2, 15, 0.12);
  min-width: 12rem;
}

.gs-gallery-view-combo__menu .dropdown-item.active {
  background: #f3e9ff;
  color: inherit;
}

.gs-gallery-card__creator-avatar {
  flex-shrink: 0;
  object-fit: cover;
}

/* Art Gallery — share finished project modal (avatar grid) */
.gs-gallery-share-modal__content {
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 1rem 2.5rem rgba(8, 2, 15, 0.18);
}

.gs-gallery-share-hero__eyebrow {
  font-size: 2rem;
  line-height: 1;
}

.gs-gallery-share-hero__lead {
  color: var(--bs-secondary-color, #6c757d);
  font-size: 1.05rem;
}

.gs-gallery-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.75rem 0.5rem;
  justify-items: center;
  padding: 0.25rem 0;
}

.gs-gallery-share-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.gs-gallery-share-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gs-dark-purple, #3c0777);
}

.gs-gallery-share-loading__label {
  color: var(--bs-secondary-color, #6c757d);
}

.gs-gallery-share-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 6.5rem;
  padding: 0.5rem 0.25rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.gs-gallery-share-person:hover,
.gs-gallery-share-person:focus-visible {
  border-color: rgba(0, 128, 128, 0.35);
  background: rgba(0, 128, 128, 0.05);
}

.gs-gallery-share-person.is-selected {
  border-color: var(--gs-yellow, #fdb515);
  background: var(--gs-light-yellow, #f9e3ab);
}

.gs-gallery-share-person__ring {
  width: 4.5rem;
  height: 4.5rem;
  padding: 3px;
}

.gs-gallery-share-person__ring .gs-nav-avatar {
  width: 100% !important;
  height: 100% !important;
}

.gs-gallery-share-person__name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-gallery-share-profile-extra {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(253, 181, 21, 0.12);
  border: 1px solid rgba(253, 181, 21, 0.35);
}

.gs-gallery-share-recipient-emails {
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0;
}

.gs-gallery-share-recipient-emails strong {
  color: var(--bs-body-color, #212529);
  font-weight: 600;
}

.gs-gallery-share-someone-new {
  margin-top: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(0, 128, 128, 0.06);
  border: 2px dashed rgba(0, 128, 128, 0.25);
  overflow: hidden;
}

.gs-gallery-share-someone-new__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.gs-gallery-share-someone-new__toggle:hover,
.gs-gallery-share-someone-new__toggle:focus-visible {
  background: rgba(0, 128, 128, 0.08);
}

.gs-gallery-share-someone-new__chevron {
  font-size: 0.75rem;
  color: var(--gs-teal, #008080);
  transition: transform 0.15s ease;
}

.gs-gallery-share-someone-new.is-expanded .gs-gallery-share-someone-new__chevron {
  transform: rotate(180deg);
}

.gs-gallery-share-email-wrap {
  padding: 0 1rem 1rem;
}

.gs-gallery-share-someone-new:not(.is-expanded) .gs-gallery-share-email-wrap {
  display: none;
}

.gs-gallery-share-status.text-success {
  color: var(--gs-teal, #008080) !important;
  font-weight: 600;
}

/* Cleanup — cupboard-style put-away tables + Lottie reward on “Put away” */
.project-workflow-cleanup-page {
  overflow-x: clip;
}

.project-workflow-cleanup-page main[data-workflow-cleanup] {
  min-width: 0;
  max-width: 100%;
}

.project-workflow-cleanup-page .gs-workflow-cleanup-putaway-section {
  min-width: 0;
  max-width: 100%;
}

.project-workflow-cleanup-page .gs-workflow-cleanup-putaway-section > .text-muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Replace horizontal scroll with wrapping: fixed layout + shrinkable text columns */
.project-workflow-cleanup-page .hs-cupboard__table-responsive {
  max-width: 100%;
  min-width: 0;
  overflow-x: visible;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table thead th {
  white-space: normal;
  line-height: 1.25;
  hyphens: auto;
  vertical-align: bottom;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cleanup__th-putaway {
  width: 3.25rem;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__th-image {
  width: 3.75rem;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__th-qty {
  min-width: 0;
  width: 28%;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-title,
.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-qty,
.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-location {
  min-width: 0;
  max-width: 100%;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__supply-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-qty .hs-tile__qty-block {
  max-width: 100%;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-qty .hs-tile__qty-slider-wrap {
  min-width: 0;
}

/* Below md: static qty + edit (slider hidden) — tighter padding */
@media (max-width: 767.98px) {
  .project-workflow-cleanup-page .hs-cleanup-putaway-table tbody td {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__cell-image {
    padding-left: 0.25rem;
    padding-right: 0.35rem;
  }

  .project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__th-qty {
    width: 32%;
  }
}

@media (min-width: 768px) {
  /* Slider visible from md up: room for tick labels */
  .project-workflow-cleanup-page .hs-cleanup-putaway-table .hs-cupboard__th-qty {
    width: 38%;
    min-width: min(12rem, 42vw);
  }
}

.project-workflow-cleanup-page .hs-cleanup-qty-static-row {
  align-items: center;
}

.project-workflow-cleanup-page .hs-cleanup-qty-static-row .hs-cupboard__icon-btn--edit {
  margin-top: 0;
}

/* First data row: vertically center checkbox, thumb, title, and qty (no rowspan). */
.project-workflow-cleanup-page .hs-cleanup-putaway-table tbody tr.hs-cupboard-row td {
  vertical-align: middle;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-table tbody tr.hs-cupboard-row-loc td.hs-cleanup__spacer-cell {
  padding: 0;
  border-top: 0;
  vertical-align: top;
  width: 1%;
}

.project-workflow-cleanup-page .gs-workflow-cleanup-subhd {
  font-family: var(--bs-header-font-family, "Jua", sans-serif);
  color: var(--gs-dark-purple, #3c0777);
}

.project-workflow-cleanup-page .hs-cleanup__th-putaway,
.project-workflow-cleanup-page .hs-cleanup__cell-putaway {
  width: 1%;
  text-align: center;
  vertical-align: middle;
}

.project-workflow-cleanup-page .hs-cleanup__cell-putaway .form-check-input {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
}

/* Yellow ring + inset art: reuse hunt thumb (see .gs-supply-hunt-thumb-wrap above). */
.project-workflow-cleanup-page .hs-cleanup-putaway-row.is-done .supply-item-thumb-img {
  opacity: 0;
  visibility: hidden;
}

.project-workflow-cleanup-page .hs-cleanup-putaway-row.is-done .supply-item-lottie {
  opacity: 1;
  visibility: visible;
}

.project-workflow-cleanup-page .gs-workflow-cleanup-putaway-section + .gs-workflow-cleanup-putaway-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

/* Buddy unlock modal: same-size circular avatars for “You” and each new buddy */
.project-workflow-cleanup-page #buddyUnlockModal .gs-buddy-unlock-modal__buddy-ring {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  padding: 3px;
  border-radius: 50%;
}

.project-workflow-cleanup-page #buddyUnlockModal .gs-buddy-unlock-modal__buddy-ring .gs-nav-avatar,
.project-workflow-cleanup-page #buddyUnlockModal .gs-buddy-unlock-modal__buddy-ring .gs-creative-buddy-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}

.project-workflow-complete-page .gs-workflow-instructions-header .gs-workflow-hunt-header-mascot dotlottie-wc {
  display: block;
}

.project-workflow-complete-page .pw-complete-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.project-workflow-complete-page .pw-complete-photo-chip-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.35rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bs-tertiary-bg, #e9ecef);
}

.project-workflow-complete-page .pw-complete-photo-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
