.mood-studio { max-width: 1240px; margin: 0 auto; padding: clamp(28px,5vw,60px) var(--gutter) 64px; }
.mood-studio [hidden] { display: none !important; }
.mood-intro { display: flex; align-items: end; gap: 26px 70px; flex-wrap: wrap; margin-bottom: clamp(23px,4vw,38px); }
.mood-intro h1, .mood-result h2, .mood-word-step h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -.055em;
  line-height: .92;
}
.mood-intro h1 { font-size: clamp(42px,6.1vw,82px); }
.mood-intro p { max-width: 335px; color: var(--muted); font-size: 16px; margin: 0 0 2px; }

.mood-progress {
  display: grid; grid-template-columns: auto minmax(32px,1fr) auto;
  align-items: center; gap: 15px;
  border-top: 1px solid var(--line); padding: 12px 0 18px;
  font-size: 12px; color: var(--muted);
}
.mood-progress progress { width: 100%; height: 3px; border: 0; appearance: none; color: var(--ink); background: #dad5cf; }
.mood-progress progress::-webkit-progress-bar { background: #dad5cf; }
.mood-progress progress::-webkit-progress-value { background: var(--ink); }
.mood-progress progress::-moz-progress-bar { background: var(--ink); }
#mood-count { font-variant-numeric: tabular-nums; }
.mood-word-step { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.18fr); gap: 42px; padding: clamp(17px,3vw,32px) 0; }
.mood-word-step h2 { font-size: clamp(50px,7vw,99px); margin: 2px 0 16px; }
.mood-word-step p { max-width: 350px; margin-bottom: 10px; }
.mood-help { color: var(--muted); font-size: 14px; }
.mood-error { margin: 0; padding: 0; color: #87382d; font-size: 14px; }
.mood-error:not(:empty) { margin-bottom: 10px; }
.mood-rating { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 49px; gap: 8px; border-bottom: 1px solid var(--line); }
.mood-rating:first-child { border-top: 1px solid var(--line); }
.mood-rating > span { font-size: 15px; }
.mood-choices { display: flex; gap: 5px; }
.mood-choices label { position: relative; cursor: pointer; margin: 0; }
.mood-choices label span {
  display: grid; place-items: center; width: clamp(34px,4vw,53px); min-height: 44px;
  border: 1px solid transparent; background: #eae6e1; font-variant-numeric: tabular-nums;
}
.mood-choices input:checked + span { background: var(--ink); color: #fff; }
.mood-choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.mood-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0 0; }
#mood-next { margin-left: auto; }
.mood-studio button.text-link { background: transparent; border: 0; color: inherit; cursor: pointer; padding-inline: 0; }
.mood-studio h2[tabindex="-1"]:focus { outline: none; }
#mood-now-step { padding: 12px 0 22px; }
#mood-now-step h2 { font-size: clamp(24px,4vw,41px); line-height: 1.08; margin: 0 0 8px; }
.mood-result { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); gap: clamp(25px,5vw,68px); align-items: start; }
.mood-picture { display: grid; justify-items: center; margin: 0; padding: clamp(16px,3.6vw,40px); background: #e8e4df; }
.mood-picture canvas { display: block; width: min(100%,470px); height: auto; aspect-ratio: 4 / 5; box-shadow: 0 12px 28px #22161330; }
.mood-result-copy { padding-top: 7px; }
.mood-result h2 { font-size: clamp(48px,6vw,86px); }
.mood-generation-status { margin: 13px 0 16px; }
.mood-result:not(.has-picture) { grid-template-columns: minmax(0,650px); }
.mood-score-details { margin-top: 12px; }
.mood-actions { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.mood-downloads { display: flex; flex-wrap: wrap; gap: 2px 15px; }
.mood-downloads button { min-height: 44px; }
.mood-source, .mood-commission { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 13px; }
.mood-source { color: var(--muted); font-size: 14px; }
.mood-source summary { cursor: pointer; color: var(--ink); min-height: 29px; }
.mood-source p { margin-bottom: 9px; }
.mood-source a { text-decoration: underline; }
.mood-source h3 { color: var(--ink); font-size: 21px; margin: 0 0 10px; line-height: 1.2; }
.mood-source h4 { color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.mood-methods h4 { margin-top: 14px; }
.mood-now-result { padding-top: 11px; }
.mood-scores { display: flex; gap: 18px; margin: 12px 0; }
.mood-scores > div { flex: 1; padding: 9px 10px; background: #eae6e1; }
.mood-scores dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.mood-scores strong { font-size: 22px; }
.mood-scores small { font-size: 12px; }
.mood-rating-key { display: flex; flex-wrap: wrap; column-gap: 30px; row-gap: 4px; padding-left: 25px; margin: 12px 0 18px; color: var(--muted); font-size: 13px; }
#mood-now-ratings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
#mood-now-ratings .mood-choices label span { width: clamp(34px,4vw,48px); }
@media (min-width: 731px) and (max-width: 1000px) {
  #mood-now-ratings { grid-template-columns: 1fr; }
}
.mood-commission h3 { font-size: 21px; margin: 0 0 6px; }
.mood-commission .mood-help { margin-bottom: 10px; }
.mood-commission form { max-width: 430px; }
.mood-commission .mood-consent { display: flex; align-items: start; gap: 8px; margin: 12px 0; }
.mood-commission .mood-consent input { margin: 4px 0 0; }
#mood-inquiry-status { margin-top: 8px; }
.mood-restart { margin-top: 12px; }
@media (max-width: 730px) {
  .mood-intro { gap: 10px; }
  .mood-intro h1 br { display: none; }
  .mood-intro p { font-size: 14px; }
  .mood-word-step { grid-template-columns: 1fr; gap: 8px; padding-top: 6px; }
  .mood-word-step h2 { margin-bottom: 10px; }
  .mood-word-step p { font-size: 14px; }
  .mood-result { grid-template-columns: 1fr; }
  #mood-now-ratings { grid-template-columns: 1fr; }
  .mood-picture canvas { max-width: 360px; }
}
@media (max-width: 360px) {
  .mood-rating > span { font-size: 13px; }
  .mood-choices label span { width: 30px; }
  #mood-now-ratings .mood-choices label span { width: 29px; }
}
