/* Overrides confined to the label consultation dialog. */
#resultModal { padding: 12px; }
#resultModal .modal-box { max-width: 740px; max-height: 90vh; max-height: 90dvh; padding: 22px; overscroll-behavior: contain; scrollbar-gutter: stable; }
#resultModal .modal-box, #resultModal .modal-box * { box-sizing: border-box; }
#resTitle { overflow-wrap: anywhere; line-height: 1.35; }
#resMeta { line-height: 1.6; }
#resContent { min-width: 0; overflow-wrap: anywhere; }
#resContent.has-formatted-content { white-space: normal; padding: 0; border: 0; background: transparent; }
#resContent .ac-jornada { line-height: 1.7; }
#resContent .ac-editorial-copy { padding: 16px; font-size: 15px; }
#resContent .ac-sec-label { display: block; line-height: 1.5; font-size: 13px; }
#resContent .ac-triples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#resContent .ac-triple-card { min-width: 0; padding: 15px; }
#resContent .ac-tc-game { color: #a5e3ff; font-size: 13px; letter-spacing: .3px; }
#resContent .ac-triple-pill { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 14px; }
#resContent .ac-tp-num { display: flex; flex-direction: column; font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
#resContent .ac-tp-num::before { content: 'Triple'; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .5px; color: #b7c7d9; margin-bottom: 5px; }
#resContent .ac-tp-term { font-size: 11px; padding: 4px 7px; }
#resContent .ac-ani-pro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#resContent .ac-ani-pro-game { overflow-wrap: anywhere; }
#resContent img { max-width: 100%; object-fit: contain; }
#resContent table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
#resContent td, #resContent th { padding: 8px; border: 1px solid #334155; }
#resContent a { color: #7dd3fc; }
@media (max-width: 540px) {
    #resultModal { padding: 10px; }
    #resultModal .modal-box { padding: 16px; border-radius: 16px; max-height: 92vh; max-height: 92dvh; }
    #resContent .ac-triples-grid { grid-template-columns: minmax(0, 1fr); }
    #resContent .ac-ani-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #resContent .ac-editorial-copy { padding: 14px; font-size: 14px; }
    #resContent .ac-hits-strip { padding: 12px; font-size: 13px; }
}
