/* Daily color — mobile-first, 44px targets, horizontal week swipe */

.page-colors .colors-disclaimer,
.colors-disclaimer {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(11, 16, 38, 0.45);
  font-size: 0.88rem;
  line-height: 1.45;
}

.colors-natal,
.colors-today,
.colors-match,
.colors-week-block,
.colors-age,
.colors-schools-block {
  margin: 1.15rem 0;
}

.colors-schools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.35rem;
}

.colors-chip {
  appearance: none;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(11, 16, 38, 0.45);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  touch-action: manipulation;
}

.colors-chip.is-on {
  border-color: #e8c547;
  color: #f0d878;
  background: rgba(232, 197, 71, 0.12);
}

.colors-season-line,
.colors-occasion-line {
  margin: 0.35rem 0 0.8rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.colors-face-block {
  margin: 1.15rem 0;
}

.colors-face-result {
  margin-top: 0.8rem;
  max-width: 17.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.colors-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
}

.colors-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 237, 224, 0.18);
  background: rgba(11, 16, 38, 0.35);
  font-size: 0.85rem;
}

.colors-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.colors-age-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.colors-age-row label {
  flex: 1 1 8rem;
}

.colors-age-row input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(11, 16, 38, 0.5);
  color: inherit;
  font-size: 1rem;
}

.colors-age-row button,
.colors-consent,
.colors-photo-btn,
.colors-like,
.colors-upgrade,
.colors-tryon-btn {
  min-height: 44px;
  min-width: 44px;
}

.colors-match-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.colors-match-card {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.22);
  background: rgba(11, 16, 38, 0.4);
}

.colors-match-card img,
.colors-match-fallback {
  width: 4.4rem;
  height: 5.6rem;
  object-fit: cover;
  border-radius: 10px;
}

.colors-match-fallback {
  background:
    linear-gradient(160deg, var(--look-a, #c41e3a), var(--look-b, #1a1224));
}

.colors-match-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.colors-match-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

#bezel.colors-week,
.colors-week#bezel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.15rem 0.85rem;
  margin: 0.4rem 0 0;
  touch-action: pan-x;
}

.colors-day {
  flex: 0 0 min(78vw, 17.5rem);
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(11, 16, 38, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.colors-day.is-selected {
  outline: 2px solid #e8c547;
}

.colors-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(232, 197, 71, 0.45);
}

.colors-avatar-pin,
.colors-silhouette,
.colors-day-visual .colors-avatar-pin,
.colors-day-visual .colors-silhouette {
  display: none !important;
}

.colors-day-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(165deg, var(--look-a, #c41e3a) 0%, var(--look-b, #1a1224) 100%);
}

.colors-day-visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: #f4f4f2;
}

.colors-silhouette {
  position: absolute;
  inset: 12% 28% 8%;
  border-radius: 50% 50% 42% 42%;
  background: rgba(11, 16, 38, 0.55);
  box-shadow: inset 0 0 0 2px rgba(243, 237, 224, 0.25);
}

.colors-avatar-pin {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8c547;
  background: #1a1224;
}

.colors-day-body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.colors-day-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.colors-day-body p {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.colors-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.colors-like-q {
  flex: 1 1 100%;
  font-size: 0.86rem;
}

.colors-like {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(243, 237, 224, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
}

.colors-like.is-on {
  border-color: #e8c547;
  color: #f0d878;
}

.colors-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.7rem 0;
  font-size: 0.86rem;
}

.colors-consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.colors-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.colors-locked {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(232, 197, 71, 0.4);
}

.colors-pdpa {
  font-size: 0.8rem;
  opacity: 0.85;
}

@media (min-width: 720px) {
  .colors-day {
    flex-basis: 15.5rem;
  }

  .colors-match-list {
    grid-template-columns: 1fr 1fr;
  }
}

.colors-tabs {
  display: flex;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.colors-tab,
.craft-cat,
.craft-item,
.craft-tools .btn {
  min-height: 44px;
  min-width: 44px;
}

.colors-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
}

.colors-tab.is-on,
.craft-cat.is-on,
.craft-item.is-on {
  border-color: #e8c547;
  color: #f0d878;
}

.craft-studio {
  display: grid;
  gap: 0.7rem;
}

.craft-cats,
.craft-rail {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.35rem;
  touch-action: pan-x;
}

.craft-cat,
.craft-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(243, 237, 224, 0.2);
  background: rgba(11, 16, 38, 0.45);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
}

.craft-cat svg {
  display: block;
}

.craft-stage#bezel,
#bezel.craft-stage {
  min-height: 22rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: #0b1026;
  overflow: hidden;
}

.craft-preview {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
}

.craft-preview img {
  max-width: 100%;
  max-height: 28rem;
  object-fit: contain;
}

.craft-drop-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 0.7rem;
  right: 0.7rem;
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.8;
}

.craft-plate {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.craft-item img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  border-radius: 8px;
}

.craft-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

@media (min-width: 900px) {
  .craft-studio {
    grid-template-columns: 6.5rem 1fr 8.5rem;
    grid-template-areas:
      "cats stage rail"
      "tools tools tools";
  }

  .craft-cats {
    grid-area: cats;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 28rem;
  }

  .craft-stage {
    grid-area: stage;
  }

  .craft-rail {
    grid-area: rail;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 28rem;
  }

  .craft-tools {
    grid-area: tools;
  }
}

.colors-gender-line {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.88;
}

.colors-tryon-btn {
  margin: 0.55rem 0.7rem 0.35rem;
  width: calc(100% - 1.4rem);
}

.colors-day-body .colors-tryon-btn {
  min-height: 44px;
}

#colors-tryon-status {
  min-height: 1.2em;
}

.colors-perfume {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.7rem 0 0;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 71, 0.22);
  background: rgba(11, 16, 38, 0.35);
}

.colors-perfume img,
.colors-acc img {
  width: 4.5rem;
  height: 4.5rem;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #f4f4f2;
}

.colors-perfume h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.colors-perfume p {
  margin: 0 0 0.3rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.colors-acc-list,
.colors-garment-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.colors-acc {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  font-size: 0.84rem;
}

.colors-acc img {
  width: 3rem;
  height: 3rem;
}

.colors-garment-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.88rem;
}

.colors-garment-list code,
.colors-sheet-palette code {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.colors-sheet {
  margin: 1rem 0 0;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(11, 16, 38, 0.4);
}

.colors-sheet-head {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.colors-sheet-face,
.colors-sheet-blank {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8c547;
  background: rgba(11, 16, 38, 0.6);
}

.colors-sheet-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.15rem;
}

.colors-sheet-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.colors-sheet-plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.55rem;
  margin: 0.5rem 0 0.9rem;
}

.colors-sheet-plates figure {
  margin: 0;
}

.colors-sheet-plates img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f4f2;
}

.colors-sheet-plates figcaption {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  text-align: center;
}

.colors-day .colors-perfume {
  grid-template-columns: 3rem 1fr;
}

.colors-day .colors-perfume img {
  width: 3rem;
  height: 3rem;
}

@media (min-width: 720px) {
  .colors-sheet-plates {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #bezel.colors-week {
    scroll-snap-type: none;
  }
}
