/* Reserve only the data panel; titles, menus and table headers render with the document. */
[data-theme-region] { min-inline-size: 0; min-block-size: 5.75rem; }
.theme-loading { min-block-size: 5.75rem; display: grid; align-content: center; gap: .7rem; padding: 1rem; border-radius: .65rem; background: var(--menu-wash, #f5f7f8); }
.theme-loading span { display: block; block-size: .55rem; inline-size: 78%; border-radius: .4rem; background: var(--line, #dce3e6); }
.theme-loading span:nth-child(2) { inline-size: 62%; }
.theme-loading span:nth-child(3) { inline-size: 43%; }
[data-theme-problem]:not([hidden]) { margin: .75rem 0; padding: .85rem 1rem; border-inline-start: .25rem solid #af5728; background: #fff5ea; }
[data-theme-problem] a { margin-inline-start: .5rem; text-decoration: underline; }

@media (max-width: 767px) {
    .ai-site-header > div { display: grid; justify-items: end; gap: .2rem; min-inline-size: 0; }
    .ai-site-header #text-AgentID { min-block-size: 1.6em; overflow-wrap: anywhere; }
    .ai-site-header .btn { margin-inline-start: 0; }
}
