.publication-utilities { display: flex; align-items: center; gap: 8px; min-width: 0; }
#papers .keyword-glossary-button { flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #58616b); box-shadow: none; }
#papers .keyword-glossary-button:hover { color: var(--accent, #994053); background: var(--accent-soft, #f6edf0); box-shadow: 0 1px 2px #0000000b; }
.keyword-glossary-button svg { width: 16px; height: 16px; }
.keyword-glossary-button:focus-visible, .keyword-glossary button:focus-visible, .keyword-glossary summary:focus-visible { outline: 2px solid #46739b; outline-offset: 2px; }
.keyword-definition-tooltip { position: fixed; z-index: 1500; width: 340px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dce0e3; border-radius: 5px; background: #fff; color: #32383e; font: 11px/1.55 Arial, sans-serif; box-shadow: 0 2px 7px #18222b14; overflow-wrap: anywhere; }
.keyword-definition-tooltip[hidden] { display: none; }
.keyword-definition-tooltip p { margin: 0 0 6px; }
.keyword-definition-tooltip p:last-child { margin-bottom: 0; }
.keyword-definition-title { font-weight: 600; color: #244d72; }
.keyword-definition-context { padding-top: 6px; border-top: 1px solid #e7e9eb; font-weight: 600; }
.keyword-definition-scope { color: #5f6871; }
.keyword-glossary { width: min(660px, calc(100% - 32px)); max-width: none; max-height: min(760px, calc(100dvh - 48px)); box-sizing: border-box; padding: 20px; border: 1px solid #d9dfe3; border-radius: 6px; background: #fff; color: #32383e; font: 12px/1.6 Arial, sans-serif; box-shadow: 0 5px 22px #15212c24; overflow: auto; }
.keyword-glossary::backdrop { background: #17212b45; }
.keyword-glossary header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.keyword-glossary h2 { margin: 0; font: 600 16px/1.4 Arial, sans-serif; letter-spacing: 0; }
.keyword-glossary header button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; background: #f2f4f5; color: #505c66; box-shadow: none; }
.keyword-glossary header button:hover { background: #e7ecef; }
.keyword-glossary header svg { width: 16px; height: 16px; }
.keyword-glossary label { display: block; margin-bottom: 4px; }
.keyword-glossary input { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd3d9; border-radius: 4px; background: #fff; font: inherit; color: inherit; }
.keyword-glossary input:focus { outline: none; box-shadow: none; background: #eef1f3; }
.keyword-glossary-status { margin: 10px 0; color: #626d76; font-variant-numeric: tabular-nums; }
.keyword-glossary details { margin: 0; padding: 0; border: 0; border-top: 1px solid #e1e6e9; border-radius: 0; box-shadow: none; background: transparent; }
.keyword-glossary summary { display: list-item; list-style: disclosure-closed inside; padding: 11px 0; cursor: pointer; font-weight: 500; }
.keyword-glossary details[open] > summary { list-style-type: disclosure-open; }
.keyword-glossary dl { margin: 0; padding: 0 0 14px 16px; }
.keyword-glossary dt { margin: 12px 0 3px; font-weight: 600; color: #244d72; }
.keyword-glossary dt:first-child { margin-top: 0; }
.keyword-glossary dd { margin: 0; overflow-wrap: anywhere; }
.keyword-glossary-references { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 7px 0 0; }
.keyword-glossary a { color: #245c86; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .publication-utilities { width: 100%; } .publication-utilities .publication-search { flex: 1; } .keyword-glossary { padding: 16px; } }
