/* In-context glossary and guide-only dictionary. */
.eu-glossary-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:82dvh;overflow:auto;border:1px solid #b6ccd6;border-radius:13px;padding:14px;color:#213e50;background:#fff;font:14px/1.55 system-ui,'Malgun Gothic',sans-serif}
.eu-glossary-dialog::backdrop{background:#102a3ca0}
.eu-glossary-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;position:sticky;top:-14px;padding:9px 0;z-index:2;border-bottom:1px solid #d9e5e9}
.eu-glossary-dialog h2{font-size:20px;margin:0}.eu-glossary-dialog h3{font-size:14px;margin:12px 0 2px;color:#27546c}.eu-glossary-dialog p{margin:4px 0 8px;word-break:keep-all}
.eu-glossary-dialog button{cursor:pointer;font:inherit;color:#27546c;border:1px solid #c4d6df;border-radius:8px;background:#f7fbfc;padding:7px 10px;font-weight:750}
.eu-glossary-search{display:grid;gap:4px;font-size:12px;font-weight:750;margin-top:12px}.eu-glossary-search input{width:100%;box-sizing:border-box;padding:9px;border:1px solid #b4cbd6;border-radius:7px;font:inherit}
.eu-glossary-count{display:block;color:#627e8a;margin:7px 0;font-size:11px}.eu-glossary-item{display:block;text-align:left;width:100%;margin:5px 0}.eu-glossary-item strong,.eu-glossary-item small{display:block}.eu-glossary-item small{font-size:12px;font-weight:400;color:#607887}.eu-glossary-brief{background:#eef5f7;padding:10px;border-radius:7px;font-weight:750}.eu-glossary-back,.eu-glossary-proof{margin:8px 0}
button.eu-inline-term{display:inline;padding:0;border:0;background:transparent;color:#17617f;font:inherit;text-decoration:underline dotted;text-underline-offset:2px;cursor:pointer;line-height:inherit}
button.eu-field-term{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;float:right;border:1px solid #c0d4de;background:#f0f7fa;color:#245d76;font-size:10px;font-weight:750;padding:1px 5px;border-radius:5px;min-height:19px;margin:0 0 2px 4px;cursor:pointer}
body.home-compact .eu-guide-controls #eu-glossary-open{width:auto;min-width:0;font-size:11px;padding:4px 6px}
@media(max-width:360px){body.home-compact .eu-guide-controls #eu-glossary-open{font-size:10px;padding:3px 4px}}

/* Context references stay inside the existing rule and decision layouts. */
.eu-context-sources{margin:12px 0 4px;padding:7px 10px;border:1px solid #c5d7de;border-radius:8px;background:#f8fbfc;color:#295064}
.eu-context-sources>summary{cursor:pointer;font-size:13px;font-weight:750;min-height:32px;display:list-item;padding:7px 0}
.eu-context-sources[open]>summary{margin-bottom:8px}
button.eu-context-proof{min-height:32px;margin:4px 0 0 6px;padding:4px 9px;font-size:12px}
button.eu-field-term[hidden]{display:none!important}

.eu-context-sources #mg-all-sources{display:inline-block;margin:4px 0 8px;padding:5px 9px;font:inherit;color:#295064;border:1px solid #c5d7de;border-radius:6px;background:white;cursor:pointer}

#ww-cb-inline .eu-cb-proof{flex:0 0 auto;margin:0;padding:3px 6px;min-height:26px;border:1px solid #c0d4de;background:#f6fafb;border-radius:6px;color:#245d76;font:700 11px/1.2 system-ui;cursor:pointer}

/* Very narrow or short screens may need vertical scrolling rather than clipping the active CB controls. */
#ww-judge{overflow-y:auto;overscroll-behavior:contain}
#ww-judge .ww-verification{min-height:112px;flex-shrink:0}
#ww-judge .ww-cb-heading{flex-wrap:nowrap;gap:5px}
#ww-judge .ww-cb-heading>div{flex:1 1 auto;min-width:0}
@media(max-width:360px){#ww-judge .ww-cb-heading{padding-inline:6px}#ww-judge #ww-cb-state{padding-inline:4px}}
