/* Six discrete moods. The native range supplies touch, keyboard and RTL input. */
html[data-design="gallery"] #page-today #moodPanel {
  margin-block: 20px 28px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface, #fffdf7);
  border: 1px solid var(--line-strong, #9eaa91);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgb(30 44 30 / 5%);
}
html[data-design="gallery"] #page-today #moodOptions { max-width: none; padding-top: 12px; }
html[data-design="gallery"] #page-today #moodPanel .mood-heading-row { min-height: 0; }
html[data-design="gallery"] #page-today #moodPanel .mood-heading-row h2 { color: var(--ink, #243124); font-size: 26px; }
html[data-design="gallery"] #moodPanel .mood-selection-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 9px 4px; }
html[data-design="gallery"] #moodValue { color: var(--primary, #3d5137); font: 650 19px/1.4 var(--sans, sans-serif); }
html[data-design="gallery"] #moodPosition { flex: none; color: var(--ink, #243124); font: 600 13px/1.5 var(--sans, sans-serif); font-variant-numeric: tabular-nums; padding: 5px 10px; border: 1px solid var(--line-strong, #9eaa91); border-radius: 99px; }
html[data-design="gallery"] #moodSliderHint { margin: 8px 0 6px; color: var(--muted, #4b5549); font: 400 14px/1.65 var(--sans, sans-serif); }
html[data-design="gallery"] .mood-track-wrap { position: relative; min-height: 54px; margin-block: 4px 9px; padding-inline: 2px; }
html[data-design="gallery"] .mood-slider { --mood-progress: 40%; display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 54px; padding: 0; margin: 0; background: transparent; cursor: grab; position: relative; z-index: 2; accent-color: var(--primary, #3d5137); touch-action: pan-y; }
html[data-design="gallery"] .mood-slider:active { cursor: grabbing; }
html[data-design="gallery"] .mood-slider:focus { outline: none; }
html[data-design="gallery"] .mood-slider:focus-visible { outline: 3px solid var(--primary, #3d5137); outline-offset: 5px; border-radius: 10px; }
html[data-design="gallery"] .mood-slider::-webkit-slider-runnable-track { height: 10px; border: 1px solid var(--line-strong, #9eaa91); border-radius: 9px; background: linear-gradient(to right, var(--primary, #3d5137) 0 var(--mood-progress), var(--surface-soft, #e9eddf) var(--mood-progress) 100%); }
html[data-design="gallery"][dir="rtl"] .mood-slider::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--primary, #3d5137) 0 var(--mood-progress), var(--surface-soft, #e9eddf) var(--mood-progress) 100%); }
html[data-design="gallery"] .mood-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border: 5px solid var(--surface, #fffdf7); border-radius: 50%; background: var(--primary, #3d5137); box-shadow: 0 0 0 2px var(--primary, #3d5137), 0 3px 9px rgb(25 40 25 / 20%); }
html[data-design="gallery"] .mood-slider::-moz-range-track { height: 9px; border: 1px solid var(--line-strong, #9eaa91); border-radius: 9px; background: var(--surface-soft, #e9eddf); }
html[data-design="gallery"] .mood-slider::-moz-range-progress { height: 9px; background: var(--primary, #3d5137); border-radius: 9px; }
html[data-design="gallery"] .mood-slider::-moz-range-thumb { width: 25px; height: 25px; border: 5px solid var(--surface, #fffdf7); border-radius: 50%; background: var(--primary, #3d5137); box-shadow: 0 0 0 2px var(--primary, #3d5137); }
html[data-design="gallery"] .mood-scale-ticks { position: absolute; inset-inline: 18px; top: 22px; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
html[data-design="gallery"] .mood-scale-ticks span { width: 9px; height: 9px; border: 2px solid var(--surface, #fffdf7); border-radius: 50%; background: var(--primary, #3d5137); }
html[data-design="gallery"] .mood-choices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html[data-design="gallery"] .mood-stop { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 7px; border: 1px solid var(--line-strong, #9eaa91); border-radius: 9px; background: var(--surface, #fffdf7); color: var(--ink, #243124); font: 550 13px/1.4 var(--sans, sans-serif); cursor: pointer; }
html[data-design="gallery"] .mood-stop:hover { background: var(--surface-soft, #e9eddf); }
html[data-design="gallery"] .mood-stop:focus-visible { outline: 3px solid var(--primary, #3d5137); outline-offset: 3px; }
html[data-design="gallery"] .mood-stop[aria-pressed="true"] { background: var(--primary, #3d5137); border-color: var(--primary, #3d5137); color: var(--button-ink, #fffdf7); }
html[data-design="gallery"] .mood-symbol { display: none; width: 25px; height: 25px; flex: none; }
html[data-design="gallery"] #page-today #moodMessage { margin: 15px 0 0; padding: 13px 15px; border-inline-start: 3px solid var(--primary, #3d5137); border-radius: 0 7px 7px 0; color: var(--ink, #243124); background: var(--surface-soft, #e9eddf); font: 400 16px/1.65 var(--sans, sans-serif); }
html[data-design="gallery"][dir="rtl"] #page-today #moodMessage { border-radius: 7px 0 0 7px; }
html[data-design="gallery"] #page-today .today-composition > .format-choice { margin-block: 12px 0; }
html[data-design="gallery"][lang="ar"] #moodSliderHint { font-size: 16px; }
html[data-design="gallery"][lang="ar"] .mood-stop { font-size: 16px; }
@media (max-width: 760px) {
  html[data-design="gallery"] .mood-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-design="gallery"] .mood-stop { font-size: 13px; min-height: 46px; }
}
@media (max-width: 440px) {
  html[data-design="gallery"] #page-today #moodPanel { padding: 12px 10px; border-radius: 14px; margin-block: 10px 20px; }
  html[data-design="gallery"] #page-today #moodOptions { padding-top: 4px; }
  html[data-design="gallery"] #page-today #moodPanel .mood-heading-row h2 { font-size: 21px; line-height: 1.35; }
  html[data-design="gallery"] #moodPanel .mood-selection-row { margin-block: 2px 0; gap: 10px; }
  html[data-design="gallery"] #moodValue { font-size: 17px; line-height: 1.35; }
  html[data-design="gallery"] #moodPosition { padding: 3px 8px; font-size: 12px; line-height: 1.4; }
  html[data-design="gallery"] #moodSliderHint { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
  html[data-design="gallery"] .mood-track-wrap { min-height: 42px; margin-block: 10px 8px; }
  html[data-design="gallery"] .mood-slider { height: 42px; }
  html[data-design="gallery"] .mood-scale-ticks { top: 17px; }
  html[data-design="gallery"] .mood-choices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  html[data-design="gallery"] .mood-stop { min-width: 0; min-height: 44px; height: 44px; padding: 6px 0; border-radius: 8px; }
  html[data-design="gallery"] .mood-symbol { display: block; }
  html[data-design="gallery"] .mood-stop-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  html[data-design="gallery"] #page-today #moodMessage { margin-top: 8px; padding: 8px 10px; font-size: 15px; line-height: 1.45; }
  html[data-design="gallery"][lang="ar"] #moodSliderHint { font-size: 14px; line-height: 1.45; }
  html[data-design="gallery"][lang="ar"] #page-today #moodMessage { font-size: 16px; line-height: 1.55; }
}
