.ds-page { color: #34453c; }
.ds-hero { display: block; }
.ds-hero .metaphysics-lede { max-width: 710px; }
.ds-hero .metaphysics-tool-switcher { margin-top: 1.5rem; width: 100%; }
.ds-filters { display: grid; grid-template-columns: 1fr 1.4fr 1.3fr auto; align-items: end; gap: 1rem; border-top: 3px solid #8a4f35; }
.ds-filters label { display: block; margin-bottom: .5rem; color: #26332e; font-size: .8rem; font-weight: 700; }
.ds-filters label span { color: #72786e; font-weight: 400; }
.ds-filters .input, .ds-filters select { background: #fffdf8; color: #26332e; border-color: #d8cbbc; color-scheme: light; }
.ds-primary { background: #263e32; color: #fffdf8; border-color: #263e32; gap: 1rem; }
.ds-primary:hover { background: #3c5647; color: white; }
.ds-context { font-size: .8rem; color: #677469; margin: .85rem 0 1.4rem; line-height: 1.6; }
.ds-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.ds-month-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ds-page h2 { font-size: 1.55rem; line-height: 1.25; }
.ds-month-actions { display: flex; gap: .35rem; }
.ds-nav { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: .35rem; border: 1px solid #d8cbbc; border-radius: 5px; color: #34453c; }
.ds-today { padding-inline: .6rem; font-size: .8rem; }
.ds-nav:hover { background: #eee9df; }
.ds-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.1rem 0; font-size: .68rem; color: #677469; }
.ds-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.ds-dot { width: 8px; height: 8px; border-radius: 50%; }
.ds-dot.match { background: #437457; }.ds-dot.caution { background: #ae653a; }
.ds-month-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
.ds-month-table th { color: #757e73; font-size: .7rem; font-weight: 600; text-align: center; padding-bottom: .6rem; }
.ds-month-table td { padding: 0; vertical-align: top; height: 1px; }
.ds-day { display: flex; flex-direction: column; height: 100%; padding: .55rem .35rem; min-height: 88px; border: 1px solid #e8e1d5; border-radius: 5px; background: #faf8f1; color: #35453b; text-decoration: none; }
.ds-day-number { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; }
.ds-today-dot { color: #ab6035; }.ds-officer { margin-top: .3rem; font-size: .63rem; letter-spacing: -.01em; overflow-wrap: anywhere; }.ds-day-han { font-size: .8rem; opacity: .7; }
.ds-day.match { background: #e6eee4; border-color: #a3b99d; }.ds-day.caution { background: #f6ebe0; border-color: #e6c5aa; }
.ds-day.is-selected { background: #2c4436; color: #fffdf8; border-color: #2c4436; box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px #2c4436; }
.ds-day:hover { outline: 2px solid #8a4f35; outline-offset: -2px; }
.ds-page a:focus-visible, .ds-page summary:focus-visible { outline: 3px solid #8a4f35; outline-offset: 3px; }
.ds-shortlist { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid #e6ddd1; }
.ds-shortlist h3, .ds-guidance h3 { font-size: .85rem; font-weight: 700; color: #35483b; }
.ds-shortlist p { font-size: .8rem; color: #697469; margin-top: .35rem; }
.ds-candidates { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.ds-candidates a { padding: .45rem .65rem; background: #edf1e8; color: #2e533b; border: 1px solid #cbd7c3; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.ds-candidates span { font-size: .7rem; font-weight: 400; }
.ds-summary { background: #f5f1e7; scroll-margin-top: 1rem; }
.ds-weekday { font-size: .9rem; margin-top: 1rem; }
.ds-date-display { display: flex; gap: .8rem; align-items: center; margin: .3rem 0; }
.ds-date-display strong { font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; font-weight: 400; color: #273d30; }
.ds-date-display > span { font-size: .9rem; line-height: 1.6; }
.ds-date-display .ds-seal { font-size: 2.3rem; color: #8a4f35; margin-left: auto; border: 1px solid #b68b70; padding: 0 .3rem; }
.ds-lunar { font-size: .75rem; color: #77776a; padding: .7rem 0 1.1rem; border-bottom: 1px solid #ddd5c5; margin-bottom: 1.1rem; }
.ds-summary h2 + p { margin-top: .6rem; font-size: .88rem; line-height: 1.6; }
.ds-guidance { margin: 1rem 0; }.ds-guidance h3 { margin-top: .8rem; font-size: .73rem; text-transform: uppercase; letter-spacing: .03em; }.ds-guidance p { margin-top: .2rem; font-size: .82rem; }
.ds-sign { display: flex; gap: .7rem; align-items: center; border-top: 1px solid #ddd5c5; padding-top: 1rem; }.ds-sign > span { font-size: 1.5rem; }.ds-sign strong { font-size: .85rem; }.ds-sign small { display: block; font-size: .7rem; }
.ds-clash { font-size: .8rem; margin-top: 1rem; }.ds-warning { background: #eee0d1; border-left: 2px solid #ab6339; padding: .55rem; margin-top: .5rem; font-size: .73rem; color: #774a2e; }.ds-no-clash { font-size: .73rem; margin-top: .5rem; color: #536b4f; }
.ds-pillars { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; margin-top: 1.25rem; align-items: center; }.ds-pillars p:not(.metaphysics-kicker) { color: #687567; font-size: .8rem; margin-top: .75rem; line-height: 1.6; }
.ds-pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.ds-pillar { display: flex; flex-direction: column; text-align: center; gap: .4rem; padding: .7rem; border-left: 1px solid #e6ddd1; }.ds-pillar h3 { font-size: .8rem; font-weight: 700; }.ds-pillar strong { font-size: 2.5rem; font-weight: 400; }.ds-pillar span { font-size: .85rem; }.ds-pillar small { font-size: .7rem; color: #697569; }
.ds-element-wood { color: #347247; }.ds-element-fire { color: #b04432; }.ds-element-earth { color: #936b2a; }.ds-element-metal { color: #666e74; }.ds-element-water { color: #3b648a; }
.ds-hours, .ds-method { margin-top: 1.25rem; }.ds-hours-date { font-size: .8rem; color: #697469; }.ds-table-scroll { overflow-x: auto; }.ds-hour-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }.ds-hour-table thead { background: #f1ede3; }.ds-hour-table th, .ds-hour-table td { padding: .7rem .8rem; border-bottom: 1px solid #e6ddd1; color: #35483b; }.ds-hour-table thead th { font-size: .72rem; font-weight: 700; }.ds-hour-table tbody th { font-weight: 500; white-space: nowrap; }.ds-hour-table small { display: block; color: #757b70; font-size: .68rem; margin-top: .15rem; }.ds-hour-han { font-size: 1.1rem; margin-right: .35rem; }.ds-badge { padding: .3rem .5rem; border-radius: 4px; font-size: .7rem; display: inline-block; }.ds-badge.match { background: #e6eee4; color: #365e40; }.ds-badge.caution { background: #f3e8dc; color: #885b35; }
.ds-method summary { cursor: pointer; font-weight: 700; font-size: .88rem; }.ds-method p { font-size: .82rem; color: #697469; line-height: 1.75; margin-top: 1rem; }.ds-method a { color: #805039; text-decoration: underline; }
.ds-solar-terms { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ds-solar-terms a { display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; flex: 1 1 180px; padding: .6rem .7rem; background: #edf0f0; border: 1px solid #ccd7d5; border-radius: 5px; color: #3e6261; }
.ds-solar-terms a > span { grid-row: span 2; font-size: 1.25rem; align-self: center; }
.ds-solar-terms strong { font-size: .78rem; }.ds-solar-terms small { font-size: .68rem; }
.ds-day-markers { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .3rem; font-size: .65rem; }
.ds-day-markers span { border: 1px solid currentColor; border-radius: 3px; padding: 0 .15rem; color: #805535; }
.ds-day.is-selected .ds-day-markers span { color: #f4d4b9; }
.ds-term-label { font-size: .7rem; color: #38615c; font-weight: 700; margin-top: .25rem; }
.ds-day.is-selected .ds-term-label { color: #c2e4dc; }
.ds-term-detail { background: #e5edeb; padding: .7rem; border-left: 2px solid #557f75; margin-bottom: 1rem; color: #34594f; }
.ds-term-detail strong { font-size: .88rem; }.ds-term-detail p, .ds-term-detail small { font-size: .75rem; }
.ds-markers-heading { font-size: .78rem; font-weight: 700; margin-top: 1rem; }
.ds-warning p { margin-top: .3rem; line-height: 1.5; }
.ds-mansion-label { display: block; font-size: .65rem; margin-top: .2rem; color: #66604f; overflow-wrap: anywhere; }
.ds-day.is-selected .ds-mansion-label { color: #e5dcc4; }
.ds-mansion-jump { display: block; margin: -.25rem 0 1rem; color: #705a3b; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.ds-mansion { margin-top: 1.25rem; scroll-margin-top: 1rem; }
.ds-mansion-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ds-mansion-character { font-size: 3rem; line-height: 1.4; color: #86613b; padding: .25rem .6rem; background: #f3ecdf; border: 1px solid #ddd0b7; border-radius: 6px; }
.ds-mansion-header h2 span { color: #7a7868; font-size: 1rem; margin-left: .4rem; }
.ds-mansion-header div > p:last-child { color: #6d756b; font-size: .8rem; margin-top: .4rem; }
.ds-mansion-tendency { margin-left: auto; padding: .5rem .7rem; border-radius: 4px; font-size: .75rem; }
.ds-mansion-tendency.supportive { color: #365e40; background: #e6eee4; }
.ds-mansion-tendency.mixed { color: #705a3b; background: #f1eadb; }
.ds-mansion-tendency.caution { color: #885b35; background: #f3e8dc; }
.ds-mansion-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0 1rem; padding-top: 1rem; border-top: 1px solid #e6ddd1; }
.ds-mansion-guidance h3 { font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.ds-mansion-guidance p { font-size: .9rem; }
.ds-mansion-notes summary { cursor: pointer; font-size: .8rem; font-weight: 700; }
.ds-mansion-notes p { margin-top: .7rem; color: #687267; font-size: .8rem; line-height: 1.6; }
.ds-mansion-notes a { color: #805039; text-decoration: underline; }
@media (max-width: 560px) {
    .ds-mansion-name { display: none; }
    .ds-mansion-guidance { grid-template-columns: 1fr; }
    .ds-mansion-tendency { margin-left: 0; }
}
@media (max-width: 1000px) { .ds-filters { grid-template-columns: 1fr 1fr; }.ds-workspace { grid-template-columns: minmax(0, 1fr); }.ds-summary { display: block; }.ds-pillars { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 560px) { .ds-filters { grid-template-columns: 1fr; }.ds-calendar { padding: .8rem; }.ds-month-heading { gap: .5rem; }.ds-page h2 { font-size: 1.3rem; }.ds-month-actions { gap: .2rem; }.ds-nav { min-width: 30px; }.ds-month-table { border-spacing: 2px; }.ds-day { min-height: 77px; padding: .4rem .15rem; }.ds-day-number { font-size: .9rem; }.ds-officer { font-size: .54rem; }.ds-day-han { font-size: .7rem; }.ds-legend { gap: .5rem; font-size: .62rem; }.ds-pillar { padding: .4rem; }.ds-pillar strong { font-size: 2rem; }.ds-hour-table { min-width: 550px; }.ds-hours-date { display: none; } }
