.dress-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  color: #1f1c18;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.dress-main *,
.dress-main *::before,
.dress-main *::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-top {
  margin-bottom: 12px;
}

.app-top h1 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #1c1814;
  letter-spacing: -0.01em;
}

.almanac-line {
  font-size: 13px;
  color: #5c5347;
  font-variant-numeric: tabular-nums;
}

.almanac-line b {
  color: #a63429;
  font-weight: 700;
}

.control-card,
.hero-card,
.tiers-section,
.forecast-section {
  background: #ffffff;
  border: 1px solid #e7e0d4;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(31, 28, 24, 0.04);
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.control-row + .control-row {
  margin-top: 10px;
}

.day-pills,
.scene-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-btn,
.scene-btn {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid #dfd6c7;
  background: #faf7f2;
  color: #3a332a;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pill-btn.is-active,
.scene-btn.is-active {
  background: #a63429;
  border-color: #a63429;
  color: #ffffff;
  font-weight: 600;
}

.date-wrap input[type="date"],
.zodiac-wrap select {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d9cfbf;
  background: #fffdf9;
  color: #1f1c18;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.date-wrap {
  flex: 1 1 142px;
  max-width: 180px;
}

.zodiac-wrap {
  flex: 1 1 148px;
  max-width: 190px;
}

.hero-card {
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  border-color: #dfcfb8;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #faecea;
  color: #9e2d23;
  font-size: 12px;
  font-weight: 700;
}

.hero-tag {
  font-size: 12px;
  color: #847767;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
  color: #1c1814;
}

.hero-reason {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #554c41;
}

.swatch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.swatch-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px solid #ebe3d6;
  min-width: 0;
}

.swatch-dot {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.swatch-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swatch-meta strong {
  font-size: 13px;
  color: #1f1c18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch-meta small {
  font-size: 11px;
  color: #6d6356;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zodiac-alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f6f3ed;
  border-left: 3px solid #9c6f26;
}

.zodiac-alert.is-warn {
  background: #fdf2f0;
  border-left-color: #b43b2a;
}

.zodiac-alert.is-good {
  background: #eff7f2;
  border-left-color: #2e6f5e;
}

.outfit-box {
  background: #faf7f2;
  border: 1px solid #e7dfd1;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.outfit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #3b3329;
  margin-bottom: 8px;
}

.outfit-sub {
  font-size: 12px;
  font-weight: 600;
  color: #9c6f26;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.outfit-item {
  background: #ffffff;
  border: 1px solid #ebe3d6;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.outfit-item span {
  font-size: 11px;
  color: #7c7164;
}

.outfit-item strong {
  font-size: 13px;
  line-height: 1.35;
  color: #1f1c18;
}

.outfit-tip {
  font-size: 12.5px;
  color: #5c5246;
}

.copy-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #a63429;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:active {
  opacity: 0.9;
}

.copy-status {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #2e6f5e;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  color: #1c1814;
}

.section-head span {
  font-size: 12px;
  color: #7d7265;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tier-card {
  text-align: left;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #e6ded0;
  background: #faf8f4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tier-card.is-active {
  border-color: #a63429;
  background: #fff6f4;
  box-shadow: 0 0 0 1px #a63429;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.tier-badge {
  font-size: 12px;
  font-weight: 700;
  color: #362e25;
}

.tier-el {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ede6da;
  color: #5c5246;
}

.tier-names {
  font-size: 13px;
  font-weight: 600;
  color: #1f1c18;
}

.tier-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.tier-rel {
  font-size: 11.5px;
  color: #776c5e;
}

.forecast-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.forecast-pill {
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid #e6ded0;
  background: #faf8f4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.forecast-pill.is-active {
  border-color: #a63429;
  background: #fff6f4;
}

.fc-date {
  font-size: 11.5px;
  color: #6a6053;
}

.fc-gz {
  font-size: 12px;
  font-weight: 700;
  color: #1f1c18;
}

.fc-color {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #3d352c;
}

.related-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e6ded0;
  background: #ffffff;
  color: #463d33;
  font-size: 13px;
  text-decoration: none;
}

.app-footnote {
  font-size: 12px;
  color: #7c7164;
  line-height: 1.5;
  padding: 2px 2px 0;
}

@media (max-width: 560px) {
  .swatch-list,
  .outfit-grid {
    grid-template-columns: 1fr;
  }

  .forecast-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
