#zongheArea #sgRoot [hidden], #zongheArea #sgOut:empty { display: none; }
#zongheArea #sgRoot fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#zongheArea #sgRoot legend { margin-bottom: 6px; font-size: 12.5px; color: #6E6E64; }
#zongheArea #sgModes { grid-template-columns: repeat(4,minmax(0,1fr)); }
#zongheArea #sgModes label { min-height: 40px; position: relative; }
#zongheArea #sgModes input { opacity: 0; position: absolute; pointer-events: none; }
#zongheArea #sgModes label:has(:checked) { background: #FFFDF9; color: #B03A2E; font-weight: 600; }
#zongheArea #sgModes label:focus-within { outline: 2px solid #8A6A1F; outline-offset: -2px; }
#zongheArea #sgForm > :is(.fl-fg,.fl-fgrid,.fl-btn,.sg-option), #zongheArea #sgReviewForm, #zongheArea #sgReviewGo { margin-top: 12px; }
#zongheArea #sgRoot button:disabled { opacity: .55; cursor: default; }
#zongheArea #sgReview summary { cursor: pointer; font-weight: 600; }
#zongheArea #sgRoot .sg-option { display: flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
#zongheArea #sgRoot .sg-link { min-height: 36px; padding: 3px 0; border: 0; background: transparent; color: #8A6A1F; font: inherit; cursor: pointer; }
#zongheArea #sgRoot .sg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#zongheArea #sgRoot .sg-tools select { width: auto; }
#zongheArea #sgRoot .sg-day { margin-top: 8px; border: 1px solid #E4DCCB; border-radius: 10px; background: #FFFDF9; }
#zongheArea #sgRoot .sg-day > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px; cursor: pointer; list-style: none; }
#zongheArea #sgRoot .sg-day > summary::-webkit-details-marker { display: none; }
#zongheArea #sgRoot .sg-day > summary::after { content: "›"; margin-left: auto; color: #8A6A1F; }
#zongheArea #sgRoot .sg-day[open] > summary::after { transform: rotate(90deg); }
#zongheArea #sgRoot .sg-content { padding: 4px 10px 10px; }
#zongheArea #sgRoot .sg-hit-list { padding-inline-start: 20px; overflow-wrap: anywhere; }
#zongheArea #sgRoot .sg-hit-list li { margin: 5px 0; }
#zongheArea #sgRoot .sg-hit-list small { color: #6E6E64; }
#zongheArea #sgRoot .sg-marker { display: inline-block; padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #F1EEE7; color: #504E46; }
#zongheArea #sgRoot [data-grade="上吉"] { background: #2D5A35; color: #FFFDF9; }
#zongheArea #sgRoot [data-grade="吉"] { background: #DCE9DD; color: #2D5A35; }
#zongheArea #sgRoot [data-grade="排除"], #zongheArea #sgRoot [data-tier="大"] { background: #F5DEDA; color: #852B24; }
#zongheArea #sgRoot [data-tier="中"] { background: #F6E5D1; color: #75411B; }
#zongheArea #sgRoot [data-controlled="true"] { outline: 1px solid #377253; }
#zongheArea #sgRoot [data-tier="制"] { background: #E5F0E7; color: #2D5A35; }
#zongheArea #sgRoot .sg-result-heading { flex-wrap: wrap; }
#zongheArea #sgRoot [data-grade="可用"], #zongheArea #sgRoot [data-kind="g"] { background: #EDF3E9; color: #385842; }
#zongheArea #sgRoot [data-grade="慎用"] { background: #EEEBE4; color: #504E46; }