.move-page { color: #243047; }
.move-page [hidden] { display: none !important; }
.move-page button, .move-page input, .move-page select { font: inherit; letter-spacing: 0; }
.move-page button { min-height: 44px; margin: 0; border-radius: 6px; }
.move-page h1, .move-page h2, .move-page h3, .move-page p { letter-spacing: 0; }
.move-page h2 { color: #172033; font-size: 1.45rem; line-height: 1.35; }
.move-page h3 { color: #1d293d; font-size: 1rem; line-height: 1.45; }
.move-eyebrow { margin: 0 0 7px; color: #087f6d; font-size: .78rem; font-weight: 900; }
.move-heading { margin-bottom: 26px; }
.move-heading h1 { margin: 0 0 10px; color: #142238; font-size: 2rem; line-height: 1.25; }
.move-heading > p:last-child { max-width: 760px; margin: 0; color: #5d6b7f; font-size: .94rem; line-height: 1.75; word-break: keep-all; }
.next-date-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 24px; border: 1px solid #cfe0dd; border-left: 4px solid #087f6d; border-radius: 8px; background: #f6fbfa; }
.next-date-main { display: flex; gap: 22px; align-items: center; min-width: 0; }
.next-date-main h2 { margin: 0 0 8px; font-size: 1.05rem; }
.next-date-main strong { display: block; color: #10233b; font-size: 1.65rem; line-height: 1.3; }
.next-date-main span, .next-date-main p { display: block; margin: 5px 0 0; color: #607086; font-size: .82rem; }
.next-date-main > b { flex: 0 0 auto; min-width: 76px; padding: 18px 12px; border-radius: 8px; background: #087f6d; color: #fff; font-size: 1.25rem; text-align: center; }
.primary-button, .move-page #viewNextDate { background: #087f6d !important; color: #fff !important; }
.upcoming-section, .calendar-section, .candidate-section, .annual-section, .move-content, .move-faq, .source-section, .move-related { margin-top: 34px; padding-top: 30px; border-top: 1px solid #dce4ec; }
.section-heading, .calendar-head, .annual-section > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.section-heading h2, .calendar-head h2, .annual-section h2 { margin: 0; }
.section-heading > span { color: #78869a; font-size: .78rem; font-weight: 800; }
.upcoming-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.upcoming-list button { position: relative; display: grid; gap: 3px; min-width: 0; height: auto; padding: 13px; border: 1px solid #d6e0ea; background: #fff; color: #243047; text-align: left; text-transform: none; white-space: normal; }
.upcoming-list button span { font-weight: 900; }
.upcoming-list button small { color: #718096; }
.upcoming-list button b { color: #087f6d; font-size: .76rem; }
.upcoming-list button i { position: absolute; top: 10px; right: 9px; color: #b45309; font-size: .66rem; font-style: normal; font-weight: 900; }
.month-nav, .filter-buttons, .detail-actions, .year-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.month-nav button, .filter-buttons button, .detail-actions button, .year-nav button, #copyMonth, #copyYear { padding: 0 14px; border: 1px solid #cad7e3; background: #fff; color: #314158; }
.date-selectors { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; align-items: end; margin-bottom: 14px; padding: 15px; border: 1px solid #dce4ec; border-radius: 8px; background: #f7f9fb; }
.date-selectors label { display: grid; gap: 6px; margin: 0; }
.date-selectors label span, .date-detail label span { color: #34445a; font-size: .78rem; font-weight: 900; }
.date-selectors input, .date-selectors select, .date-detail select { width: 100%; height: 44px; margin: 0; }
.date-selectors > button { background: #087f6d; color: #fff; }
.month-stats, .annual-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.month-stats div, .annual-stats div { padding: 13px 15px; border: 1px solid #d9e2eb; border-radius: 7px; background: #fff; }
.month-stats span, .annual-stats span { display: block; color: #718096; font-size: .73rem; }
.month-stats strong, .annual-stats strong { display: block; margin-top: 2px; color: #142238; font-size: 1.15rem; }
.calendar-wrap { overflow: hidden; border: 1px solid #d3dee8; border-radius: 8px; }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekdays span { padding: 9px 2px; border-right: 1px solid #dce4ec; background: #f1f5f8; color: #5f6e82; font-size: .75rem; font-weight: 900; text-align: center; }
.weekdays span:last-child { border-right: 0; }
.calendar-days .move-empty { min-height: 91px; border-top: 1px solid #e1e7ed; border-right: 1px solid #e1e7ed; background: #fafbfd; }
.calendar-days button { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 91px; height: auto; padding: 8px; border: 0; border-top: 1px solid #e1e7ed; border-right: 1px solid #e1e7ed; border-radius: 0; background: #fff; color: #1c2940; text-align: left; white-space: normal; }
.calendar-days > :nth-child(7n) { border-right: 0; }
.calendar-days button.is-good { background: #eff9f6; cursor: pointer; }
.calendar-days button.is-good.is-filtered-out { background: #fff; opacity: .5; }
.calendar-days button.is-today { box-shadow: inset 0 0 0 2px #2563eb; }
.calendar-days button.is-selected { box-shadow: inset 0 0 0 2px #087f6d; }
.move-day-number { font-weight: 900; }
.move-lunar { color: #718096; font-size: .67rem; line-height: 1.25; }
.move-badge, .weekend-dot { justify-self: start; color: #087f6d; font-size: .62rem; font-weight: 900; line-height: 1.3; }
.weekend-dot { color: #b45309; }
.calendar-note, .folk-note { margin: 10px 0 0; color: #708096; font-size: .78rem; line-height: 1.65; }
.month-list-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 22px 0 12px; }
.month-list-head h3 { margin: 0 0 8px; }
.filter-buttons .is-active { border-color: #087f6d; background: #eaf7f3; color: #087f6d; }
.good-date-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.good-date-list button { position: relative; display: grid; gap: 3px; width: 100%; height: auto; padding: 13px 58px 13px 14px; border: 1px solid #d8e1ea; background: #fff; color: #26354b; text-align: left; text-transform: none; white-space: normal; }
.good-date-list button span { color: #748297; font-size: .76rem; }
.good-date-list button i { position: absolute; top: 14px; right: 12px; color: #a45209; font-size: .68rem; font-style: normal; }
.good-date-list button i.is-weekday { color: #087f6d; }
.empty-list { grid-column: 1/-1; padding: 20px; border: 1px dashed #ccd8e3; color: #77869a; text-align: center; }
.date-detail { margin-top: 18px; padding: 20px; border: 1px solid #cfe0dd; border-radius: 8px; background: #f8fbfb; }
.date-detail > header { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 16px; align-items: end; }
.date-detail h3 { margin: 0; font-size: 1.2rem; }
.date-detail header > div > span { color: #65758a; font-size: .8rem; }
.date-detail label { display: grid; gap: 6px; margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.detail-grid > div { min-width: 0; padding: 13px; border: 1px solid #dbe4ec; border-radius: 7px; background: #fff; }
.detail-grid span { display: block; color: #718096; font-size: .73rem; }
.detail-grid strong { display: block; margin-top: 4px; color: #17253a; line-height: 1.45; word-break: keep-all; }
.detail-grid small { display: block; margin-top: 4px; color: #708096; line-height: 1.5; }
.detail-status.is-good, .detail-status.is-reference { color: #087f6d; }
.detail-status.is-avoid, .detail-status.is-hand { color: #a45209; }
.detail-actions { margin-top: 14px; }
.move-status { min-height: 22px; margin: 12px 0 0; color: #65758a; font-size: .8rem; }
.candidate-section ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.candidate-section li { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; }
.candidate-section li button:first-child { display: grid; gap: 3px; height: auto; padding: 12px 14px; border: 1px solid #d7e1ea; background: #fff; color: #25344a; text-align: left; text-transform: none; white-space: normal; }
.candidate-section li span { color: #728196; font-size: .75rem; }
.candidate-section li button:last-child { padding: 0; border: 1px solid #d7e1ea; background: #fff; color: #9f3d3d; }
.annual-section > header { align-items: center; }
.year-nav { justify-content: space-between; margin-bottom: 12px; }
.annual-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.annual-grid button { display: grid; gap: 6px; min-width: 0; height: auto; padding: 15px; border: 1px solid #d6e0e9; background: #fff; color: #26354a; text-align: left; text-transform: none; white-space: normal; }
.annual-grid button span { color: #087f6d; font-weight: 900; }
.annual-grid button strong { min-height: 2.8em; line-height: 1.45; word-break: keep-all; }
.annual-grid button small { color: #738196; line-height: 1.45; }
.move-content > p, .source-section > p { color: #5e6d81; font-size: .9rem; line-height: 1.8; }
.step-grid, .content-grid, .check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.content-grid, .check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.step-grid > div, .content-grid > section, .check-grid > section { min-width: 0; padding: 18px; border: 1px solid #dbe3eb; border-radius: 8px; background: #fff; }
.step-grid b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e7f6f1; color: #087f6d; }
.step-grid h3, .content-grid h3, .check-grid h3 { margin: 10px 0 6px; }
.step-grid p, .content-grid p, .check-grid p, .check-grid li { margin: 0; color: #647388; font-size: .84rem; line-height: 1.7; }
.check-grid ul { margin: 0; padding-left: 20px; }
.move-faq details { border-bottom: 1px solid #dce4ec; }
.move-faq summary { padding: 15px 4px; color: #203047; font-weight: 900; cursor: pointer; }
.move-faq details p { margin: 0; padding: 0 4px 16px; color: #647388; font-size: .86rem; line-height: 1.75; }
.source-section > div { display: flex; flex-wrap: wrap; gap: 8px; }
.source-section > div a { padding: 9px 12px; border: 1px solid #d5e0e8; border-radius: 6px; color: #087f6d; font-size: .8rem; font-weight: 800; }
.caution { padding: 14px 16px; border-left: 3px solid #087f6d; background: #f4f8f8; }
.move-related > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.move-related a { display: grid; gap: 5px; padding: 16px; border: 1px solid #d7e1ea; border-radius: 7px; color: #25344a; }
.move-related a span { color: #718096; font-size: .8rem; line-height: 1.55; }
@media screen and (max-width: 820px) {
  .upcoming-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .annual-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .step-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 560px) {
  .move-heading h1 { font-size: 1.65rem; }
  .next-date-panel { grid-template-columns: 1fr; padding: 18px; }
  .next-date-main { align-items: flex-start; }
  .next-date-main strong { font-size: 1.3rem; }
  .next-date-main > b { min-width: 64px; padding: 13px 9px; font-size: 1rem; }
  .section-heading, .calendar-head, .annual-section > header, .month-list-head { display: grid; align-items: start; }
  .date-selectors { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .date-selectors > button { grid-column: 1/-1; }
  .calendar-days .move-empty, .calendar-days button { min-height: 76px; padding: 6px 4px; }
  .move-lunar { font-size: .58rem; }
  .move-badge, .weekend-dot { font-size: .54rem; }
  .good-date-list, .detail-grid, .content-grid, .check-grid, .move-related > div { grid-template-columns: 1fr; }
  .date-detail { padding: 15px; }
  .date-detail > header { grid-template-columns: 1fr; }
  .annual-grid { grid-template-columns: 1fr; }
  .annual-grid button strong { min-height: 0; }
}
@media screen and (max-width: 360px) {
  .next-date-main { gap: 10px; }
  .month-nav button, .filter-buttons button, .detail-actions button, .year-nav button, #copyMonth, #copyYear { padding: 0 10px; font-size: .75rem; }
  .calendar-days .move-empty, .calendar-days button { min-height: 70px; }
  .move-lunar { font-size: .53rem; }
  .move-badge { font-size: .5rem; }
}
