.usage-guide {position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ink,#20372a);overflow:auto;}
.usage-guide::backdrop {background:rgba(17,32,23,.48);}
.guide-card {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(540px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;padding:24px;border-radius:16px;background:#fff;box-shadow:0 16px 60px #10281830;box-sizing:border-box;font:14px/1.7 system-ui,sans-serif;}
.guide-card h2 {font-size:20px;margin:8px 24px 12px 0;}.guide-card p {margin:8px 0 18px;}
.guide-card button,.guide-card select {font:inherit;cursor:pointer;border:1px solid #d9e3da;border-radius:8px;background:#fff;color:#20372a;padding:8px 12px;}
.guide-card button:hover {background:#edf5ee;}.guide-card button:disabled{opacity:.4;cursor:default;}
.guide-card button.primary {background:#286738;color:#fff;border-color:#286738;}.guide-card button.primary:hover{background:#20572f;}
.guide-card :focus-visible {outline:3px solid #65a575;outline-offset:2px;}
.guide-close {position:absolute;right:12px;top:12px;width:36px;height:36px;padding:0!important;font-size:24px!important;}
.guide-counter {color:#617267;font-size:12px;}.guide-course-list {display:grid;gap:10px;margin:20px 0;}.guide-course-list button{display:flex;justify-content:space-between;gap:12px;text-align:left;}.guide-course-list small{color:#617267;}
.guide-controls {display:flex;gap:8px;align-items:center;margin-top:20px;flex-wrap:wrap;}.guide-controls>span{flex:1;}
.guide-focus {position:fixed;pointer-events:none;border:3px solid #a9e6b6;border-radius:10px;box-shadow:0 0 0 4px #ffffff80;transition:all .25s ease;box-sizing:border-box;}
.guide-focus[hidden]{display:none;}
@media(prefers-reduced-motion:reduce){.guide-focus{transition:none}}
@media(max-height:620px){.guide-card{top:16px;bottom:auto;transform:translateX(-50%)}}
.header-guide {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}.header-guide svg{width:18px;height:18px;}
/* Spotlight: transparent hole over the real control, with a nearby callout. */
.usage-guide::backdrop {background:transparent;}
.guide-shade {position:fixed;inset:0;background:rgba(13,25,18,.42);pointer-events:none;}
.guide-shade[hidden]{display:none;}
.guide-focus {border:2px solid #82c894;box-shadow:0 0 0 9999px rgba(13,25,18,.42),0 0 0 5px #d8f3df80;}
.guide-card {width:min(460px,calc(100% - 24px));z-index:1;}
.guide-callout {transform:none;max-height:calc(100% - 24px);overflow:visible;}
.guide-callout::before {content:'';position:absolute;left:var(--guide-arrow-x,24px);width:16px;height:16px;background:#fff;transform:translateX(-50%) rotate(45deg);}
.guide-callout[data-arrow="top"]::before {top:-7px;}.guide-callout[data-arrow="bottom"]::before{bottom:-7px;}.guide-callout[data-arrow="none"]::before{display:none;}
.guide-note {font-size:12px;color:#617267;}

.guide-card {animation:guide-enter .18s ease-out;}
@keyframes guide-enter {from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.guide-card{animation:none}}
.guide-host {position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;margin:0;background:white;overflow:hidden;}
.guide-host iframe{width:100%;height:100%;border:0;display:block;}
.guide-host-exit{position:fixed;right:10px;bottom:10px;border:1px solid #c4d1c7;background:white;border-radius:20px;padding:7px 14px;z-index:2;font:12px system-ui;cursor:pointer;}
.guide-card-wide{width:min(680px,calc(100% - 24px));}
.guide-card{max-height:calc(100dvh - 32px);overflow:auto;}
.guide-course-list button>span{display:grid;gap:2px;}.guide-course-list small{white-space:nowrap;}
.guide-image{margin:10px 0;}.guide-image img{display:block;width:100%;max-height:40vh;object-fit:contain;border:1px solid #e0e7e1;border-radius:8px;background:white;}.guide-image figcaption{font-size:11px;color:#617267;margin-top:6px;}
.guide-related{margin:8px 8px 0 0!important;font-size:12px!important;}
.guide-detail{margin-top:12px;font-size:13px;}.guide-detail summary{cursor:pointer;color:#286738;}.guide-detail p{margin-top:10px;}
.guide-metrics{display:grid;gap:8px;background:#eef5ef;padding:12px;border-radius:10px;}.guide-metrics>small{font-size:11px;color:#617267;}.guide-metrics>div{display:flex;justify-content:space-between;gap:10px;}.guide-metrics strong{font-size:17px;}
/* Keep the bubble arrow outside the scrollable content when there is room. */
.guide-callout{overflow:visible;}.guide-callout .guide-detail[open]{max-height:160px;overflow:auto;}
@media(max-height:600px){.guide-card,.guide-callout{overflow:auto;max-height:calc(100dvh - 24px);}.guide-callout::before{display:none;}}
/* Solver lesson: compare policies first, then inspect the arithmetic. */
.guide-card-solver{width:min(940px,calc(100% - 32px));}
.guide-weight-legend,.guide-example-caption{font-size:12px;color:#536358;}
.guide-preset-row{display:grid;grid-template-columns:1fr 270px;gap:24px;padding:14px 0;border-top:1px solid #e1e7e2;}
.guide-preset-row h3{font-size:15px;margin:0 0 2px;}.guide-preset-row strong{font-size:12px;}.guide-preset-row p{font-size:12px;line-height:1.6;margin:4px 0 0;}
.guide-weight{display:grid;grid-template-columns:105px 1fr 24px;gap:8px;align-items:center;font-size:12px;}.guide-weight b{text-align:right;}.guide-weight meter{width:100%;height:12px;accent-color:#327644;}.guide-weight-bars small{font-size:10px;color:#5b6b60;}
.guide-preset-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0;}.guide-preset-tabs button{font-size:12px;padding:7px 10px;}.guide-preset-tabs [aria-pressed=true]{background:#286738;color:white;border-color:#286738;}
.guide-candidates{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.guide-candidate{border:1px solid #d5ded7;border-radius:10px;padding:16px;background:#fafcf9;}.guide-candidate.chosen{border:2px solid #327644;padding:15px;background:#f1f8ef;}
.guide-candidate h3{font-size:16px;margin:0;}.guide-candidate p{font-size:12px;margin:5px 0 16px;}.guide-candidate dl{margin:0;font-size:12px;}.guide-candidate dl>div{display:flex;justify-content:space-between;gap:10px;margin:7px 0;}.guide-candidate dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;}
.guide-score-total{display:flex;align-items:baseline;gap:8px;border-top:1px solid #d5ded7;margin-top:12px;padding-top:10px;}.guide-score-total b{font-size:27px;}.guide-score-total span{margin-left:auto;font-size:12px;}.chosen .guide-score-total span{color:#286738;font-weight:700;}
.guide-score-result{font-weight:700;margin:14px 0 8px!important;}.guide-score-demo>small{font-size:12px;}
.guide-focus{transition:none;}
@media(max-width:850px){.guide-preset-row{grid-template-columns:1fr 240px;gap:14px;}.guide-candidate dl>div{display:block;margin:10px 0;}.guide-candidate dd{text-align:right;}}
@media(max-width:580px){.guide-preset-row{grid-template-columns:1fr;gap:8px;}.guide-candidates{grid-template-columns:1fr;}}

.guide-card-solver .guide-controls{position:sticky;bottom:-24px;background:white;padding:12px 0;margin-bottom:-12px;border-top:1px solid #e1e7e2;z-index:2;}
.guide-host-exit[hidden]{display:none;}

.guide-impacts{margin:16px 0;display:grid;gap:0}.guide-impacts>div{padding:11px 0;border-top:1px solid #e3e7e3}.guide-impacts dt{font-weight:700;font-size:14px;color:#213b27}.guide-impacts dd{margin:4px 0 0;font-size:14px;line-height:1.65;color:#3d4740}
