/* Scope: #reality only. Chart/data logic is unchanged. */
body.glucose-graphite #reality{padding:22px;border-color:#4b596d;scroll-margin-top:20px}
body.glucose-graphite #reality>.section-head{align-items:flex-start;gap:12px;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #343c47}
body.glucose-graphite #reality>.section-head .num{font-size:20px;line-height:1.5}
body.glucose-graphite #reality>.section-head h2{font-size:20px;line-height:1.5;font-weight:400}
body.glucose-graphite #reality .desc{font-size:12px;line-height:1.8;max-width:76ch;color:#b8c0cb}
body.glucose-graphite #reality>.section-content{padding:0;margin-top:18px}
body.glucose-graphite #reality #longitudinalChartTop{border:1px solid #353e4b;border-radius:12px;padding:16px;margin:0;background:#14181e}
body.glucose-graphite #reality #longitudinalChartTop .longitudinal-center{border:0;padding:0;font-size:13px;line-height:1.7;min-width:0}
body.glucose-graphite #reality #longitudinalChartTop .longitudinal-center h3{font-size:14px;line-height:1.6;margin:14px 0 10px;font-weight:400}
body.glucose-graphite #reality #longitudinalChartTop .longitudinal-center>h3:first-child{margin-top:10px}
body.glucose-graphite #reality #longitudinalChartTop .longitudinal-center svg{display:block;width:100%;max-width:none;min-height:0;height:auto;margin:16px auto 12px}
body.glucose-graphite #reality #longitudinalChartTop .long-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0;min-width:0}
body.glucose-graphite #reality #longitudinalChartTop .long-controls:first-child{margin-top:0}
body.glucose-graphite #reality #longitudinalChartTop .long-controls[aria-label="曲線資料來源"]{display:inline-flex;gap:4px;padding:4px;border:1px solid #414c5a;background:#10141a;border-radius:10px;max-width:100%}
body.glucose-graphite #reality #longitudinalChartTop .long-controls[aria-label="曲線資料來源"] .btn{border:1px solid transparent;background:transparent;min-height:36px;padding:6px 14px;border-radius:7px;font-size:12px;color:#b8c0cb}
body.glucose-graphite #reality #longitudinalChartTop button[aria-pressed="true"]{background:#293e5a;border-color:#7da7dc;color:#f3f6fb}
body.glucose-graphite #reality #longitudinalChartTop button[aria-pressed="false"]{opacity:1}
body.glucose-graphite #reality #longitudinalChartTop .btn{min-height:36px;padding:6px 11px;font-size:12px;white-space:normal}
body.glucose-graphite #reality #longitudinalChartTop .long-controls label{display:flex;align-items:center;gap:8px;font-size:12px;max-width:100%;min-width:0}
body.glucose-graphite #reality #longitudinalChartTop select{max-width:100%;min-width:0;font:inherit;padding:8px 10px;border-radius:8px;min-height:36px;background:#1c222b;color:#eef2f8;border:1px solid #4b586a}
body.glucose-graphite #reality #longitudinalChartTop .long-legend{font-size:11px;min-height:32px;padding:5px 10px;color:#d4dce8}
body.glucose-graphite #reality #longitudinalChartTop .caption{font-size:11px;line-height:1.8;overflow-wrap:anywhere;margin:10px 0;color:#a8b3c3}
body.glucose-graphite #reality .reality-summary-title{font-size:14px;font-weight:400;color:#e9edf5;margin:0 0 10px}
body.glucose-graphite #reality #metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.glucose-graphite #reality #metrics>.empty{grid-column:1/-1}
body.glucose-graphite #reality .metric{padding:15px;min-height:112px;border-radius:12px;background:#171c24}
body.glucose-graphite #reality .metric .label{font-size:12px;line-height:1.6;color:#b8c0cb}
body.glucose-graphite #reality .metric .value{font-size:27px;line-height:1.45;font-weight:400;letter-spacing:-.02em;margin-top:8px}
body.glucose-graphite #reality .metric .unit{font-size:11px}
body.glucose-graphite #reality .metric .note{font-size:11px;line-height:1.6;color:#a0adbf}
body.glucose-graphite #reality .empty{padding:18px;line-height:1.8;border-radius:10px}
body.glucose-graphite #reality #chartPanel:empty{display:none}
body.glucose-graphite #reality details{margin-top:12px;border:1px solid #3b4553;border-radius:10px;background:#14191f;overflow:hidden}
body.glucose-graphite #reality summary{display:list-item;cursor:pointer;padding:12px 15px;font-size:12px;line-height:1.6;color:#d8e1ed;min-height:44px}
body.glucose-graphite #reality summary::marker{color:#87b0e2}
body.glucose-graphite #reality details[open]>summary{border-bottom:1px solid #343c47}
body.glucose-graphite #reality #sourcePanel{padding:4px 15px 12px;font-size:12px}
body.glucose-graphite #reality .row{gap:16px;align-items:flex-start;padding:10px 0;font-size:12px;line-height:1.7}
body.glucose-graphite #reality .row>strong{max-width:65%;min-width:0;overflow-wrap:anywhere;word-break:normal}
body.glucose-graphite #reality #chartPanel details>:not(summary){margin-left:15px;margin-right:15px}
@media(max-width:760px){
body.glucose-graphite #reality{padding:16px 14px}
body.glucose-graphite #reality>.section-head h2{font-size:18px}
body.glucose-graphite #reality>.section-head{gap:9px;margin-bottom:14px;padding-bottom:13px}
body.glucose-graphite #reality #longitudinalChartTop{padding:12px;border-radius:10px}
body.glucose-graphite #reality #metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.glucose-graphite #reality .metric{padding:12px;min-height:105px}
body.glucose-graphite #reality .metric .value{font-size:24px}
body.glucose-graphite #reality #longitudinalChartTop .long-controls label{width:100%}
body.glucose-graphite #reality #longitudinalChartTop .long-controls label select{flex:1;width:0}
body.glucose-graphite #reality #longitudinalChartTop .long-controls[aria-label="曲線資料來源"]{display:flex;width:100%}
body.glucose-graphite #reality #longitudinalChartTop .long-controls[aria-label="曲線資料來源"] .btn{flex:1;min-height:40px;padding:7px 8px}
body.glucose-graphite #reality #longitudinalChartTop .long-controls .btn{min-height:40px}
body.glucose-graphite #reality .row>strong{max-width:60%}
}

/* Native collapse, data stays in place */
body.glucose-graphite #reality>.reality-collapse-trigger{cursor:pointer;list-style:none;align-items:center;margin:0;padding:0;border:0;min-height:44px;gap:10px}body.glucose-graphite #reality>.reality-collapse-trigger::-webkit-details-marker{display:none}body.glucose-graphite #reality>.reality-collapse-trigger::after{content:"展開 ＋";margin-left:auto;flex:0 0 auto;font-size:12px;color:#b8c8df}body.glucose-graphite #reality[open]>.reality-collapse-trigger::after{content:"收起 −"}body.glucose-graphite #reality[open]>.reality-collapse-trigger{margin-bottom:12px}body.glucose-graphite #reality>.reality-collapse-trigger h2{margin:0;flex:1;min-width:0}body.glucose-graphite #reality>.desc{margin:0 0 16px;padding-left:30px}body.glucose-graphite #reality>.reality-collapse-trigger:focus-visible{outline:2px solid #87b0e2;outline-offset:5px;border-radius:5px}

body.glucose-graphite #reality>.reality-collapse-trigger{display:flex!important}body.glucose-graphite #reality{--accent:#3b93f5;--accent-rgb:59,147,245}.glucose-graphite #baseline,.glucose-graphite #loop{--accent:#ee9b37;--accent-rgb:238,155,55}.glucose-graphite #longitudinal{--accent:#9866ec;--accent-rgb:152,102,236}.glucose-graphite #evidence{--accent:#ef526e;--accent-rgb:239,82,110}.glucose-graphite #research{--accent:#3b93f5;--accent-rgb:59,147,245}

/* Archived model details only: no data/API changes */
.glucose-graphite #sovereignModelDetails{margin:16px 0 12px;border:1px solid #3c4859;border-radius:10px;background:#141a22;overflow:hidden;scroll-margin-top:20px}.glucose-graphite #sovereignModelDetails>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:12px 15px;min-height:44px;font-size:13px;font-weight:400;color:#dce5f1}.glucose-graphite #sovereignModelDetails>summary::-webkit-details-marker{display:none}.glucose-graphite #sovereignModelDetails>summary::after{content:"展開 ＋";margin-left:auto;flex-shrink:0;color:#9fb3cf;font-size:11px}.glucose-graphite #sovereignModelDetails[open]>summary::after{content:"收起 −"}.glucose-graphite #sovereignModelDetails[open]>summary{border-bottom:1px solid #343e4d}.glucose-graphite #sovereignModelDetails .sovereign-model-details-content{padding:12px 15px 16px;overflow-wrap:anywhere}.glucose-graphite #sovereignModelDetails .caption{font-size:12px;line-height:1.8}.glucose-graphite #sovereignModelDetails>summary:focus-visible{outline:2px solid #87b0e2;outline-offset:-3px}
