.tool-result{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.result-title{font-weight:500;color:var(--ink);margin:0 0 6px}.result-text{margin:0;color:var(--muted)}
.result-caption{font-size:10px;color:var(--muted);font-weight:400}
.result-facts{display:flex;flex-wrap:wrap;gap:12px 26px;margin:14px 0}
.result-fact{min-width:68px}.result-fact dt{font-size:10px;color:var(--muted);margin-bottom:2px}.result-fact dd{margin:0;font-size:12px;line-height:1.7;color:var(--ink);overflow-wrap:anywhere}
.result-calculation{padding:8px 0 0}
.result-hexagrams{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:16px;padding:0 0 8px;max-width:520px}
.result-hexagram{display:flex;align-items:center;gap:12px;min-width:0}.result-hex-heading{display:flex;flex-direction:column;gap:4px;min-width:0}
.result-hex-heading strong{font:20px/1.6 "Songti SC","SimSun",serif;letter-spacing:1px}
.result-lines{flex-shrink:0}.result-line{height:13px;display:flex;align-items:center;gap:5px;color:var(--muted)}
.result-line .line-glyph{width:40px;gap:5px}.result-line .line-glyph.yang{gap:0}.result-line .line-glyph i{height:3px;background:var(--muted)}
.result-line.is-moving .line-glyph i{background:var(--accent)}.result-line-mark{font-size:9px;width:29px;color:var(--accent);white-space:nowrap}
.result-transform{color:var(--muted);font-size:18px;text-align:center}.result-detail{margin-top:8px}.result-open{padding:4px 0;min-height:34px;color:var(--accent);font-size:11px;text-align:left}.result-detail>.chart{margin:8px 0 14px;padding:14px 0}
.result-open:hover{text-decoration:underline;text-underline-offset:4px}
.result-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:10px;margin:10px 0 14px}
.result-tile{display:flex;flex-direction:column;gap:5px;text-align:center;padding:4px;min-width:0}
.result-tile strong{font:18px/1.6 "Songti SC","SimSun",serif;overflow-wrap:anywhere}
.result-tiles[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.source-card{border-left:2px solid var(--line);padding:0 0 0 14px;margin:12px 0 16px;min-width:0;font-size:12px}
.source-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:10px;color:var(--muted);line-height:1.7}.source-status{color:var(--accent)}
.source-link{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;border:0;border-radius:0;background:none;color:var(--ink);padding:3px 0;margin:0;text-align:left;font:14px/1.8 "Songti SC","SimSun",serif;min-height:36px}
.source-link:hover{color:var(--accent)}.source-action{font:10px/1.7 system-ui,sans-serif;color:var(--accent);white-space:nowrap}
.source-name{font:14px/1.8 "Songti SC","SimSun",serif;margin:4px 0}.source-location{font-size:10px;line-height:1.8;color:var(--muted);margin:0}
.source-excerpt{padding:0;margin:6px 0 0;border:0;background:none;font:13px/1.9 "Songti SC","SimSun",serif;color:var(--ink);white-space:pre-wrap;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.source-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0 20px;margin:10px 0 20px}
.source-group .source-card{margin-bottom:0}.result-sources>.result-title{font-size:11px;color:var(--muted);font-weight:400}
.chart-provenance{border-top:1px solid var(--line);padding-top:10px;margin-top:18px;font-size:12px;color:var(--muted)}
.chart-provenance>summary{min-height:32px}.chart-provenance .result-facts{margin:12px 0 16px}.chart-provenance .source-copy{margin-top:10px}
.chart .hex-group{gap:24px}.chart .hexagram>.chart-title{font:17px/1.7 "Songti SC","SimSun",serif;margin-bottom:10px}
.chart .hex-line[data-moving=true]{color:var(--accent);background:var(--accent-soft);border-radius:4px}
.chart .hex-line[data-moving=true] .line-glyph i{background:var(--accent)}
.chart .hex-line:not([data-moving=true]) .line-glyph i{background:var(--muted)}
[data-artifact-id]{scroll-margin-top:94px}
.chart:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:520px){.result-calculation{padding:4px 0}.result-hexagrams{gap:8px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.result-hexagram{flex-direction:column;align-items:flex-start;gap:7px}.result-hex-heading{gap:1px}.result-hex-heading strong{font-size:16px}.result-facts{gap:12px 22px}.result-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.result-tile strong{font-size:16px}.source-group{grid-template-columns:minmax(0,1fr)}.source-card{padding-left:11px}.result-fact dd{font-size:11px}}

.result-calendar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px 26px;padding:8px 0}
.result-date{display:flex;align-items:center;gap:12px}.result-date-day{font:46px/1.2 "Songti SC","SimSun",serif;color:var(--accent);font-variant-numeric:tabular-nums}.result-date-heading{display:flex;flex-direction:column;gap:2px}.result-date-heading strong{font-weight:400;font-size:12px}
.result-calendar>.result-facts{margin:0;gap:8px 20px}.result-calendar .result-fact{flex-basis:calc(50% - 20px)}
.result-terms{grid-column:1/-1;display:flex;align-items:center;gap:24px;margin:4px 0}.result-term-track{display:flex;position:relative;justify-content:space-between;gap:36px;flex:1;max-width:330px}.result-term-track::before{content:"";position:absolute;top:10px;left:0;right:0;height:1px;background:var(--line)}.result-term{position:relative;display:flex;flex-direction:column;align-items:flex-start}.result-term:last-child{align-items:flex-end}.result-term strong{font-weight:500;color:var(--accent);background:var(--bg);padding-right:8px}.result-term:last-child strong{padding:0 0 0 8px}
@media(max-width:520px){.result-calendar{gap:14px 16px}.result-date{flex-direction:column;align-items:flex-start;gap:5px}.result-date-day{font-size:40px}.result-calendar>.result-facts{gap:8px 12px}.result-calendar .result-fact{flex-basis:calc(50% - 12px);min-width:52px}.result-terms{align-items:flex-start;flex-direction:column;gap:8px}.result-term-track{width:100%}}
.answer-artifact{display:block;border:0;background:none;color:var(--accent);font-size:13px;padding:10px 0;min-height:44px;text-align:left}.answer-artifact:hover{text-decoration:underline;text-underline-offset:4px}.tool-result{animation:result-arrive .3s ease-out}@keyframes result-arrive{from{opacity:0}to{opacity:1}}
