.xr-assistant-link-row { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: flex-end; margin: .25rem 0 1.25rem; }
.xr-terms-link { margin-right: auto; }
.xr-assistant-link, .xr-xml-secondary { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-size: .9rem; font-weight: 700; text-decoration: none; }
.xr-assistant-link { padding: .55rem 0; }
.xr-assistant-link span:not(.material-icons-outlined) { min-width: 0; overflow-wrap: anywhere; }
.xr-assistant-link .material-icons-outlined, .xr-xml-secondary .material-icons-outlined { flex: 0 0 1.25rem; font-size: 1.25rem; }
.xr-assistant-link:hover, .xr-xml-secondary:hover { text-decoration: underline; }
#xr-convert-result { scroll-margin-top: 7rem; }
#xr-convert-result:focus { outline: none; }
#xr-dropzone-xml .xr-tool-card__drop { position: relative; }
#xr-dropzone-xml.is-inspecting .xr-tool-card__drop-title,
#xr-dropzone-xml.is-inspecting .xr-tool-card__drop-hint { visibility: hidden; }
#xr-xml-loading:not([hidden]) { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; padding: .85rem; font-size: .9rem; line-height: 1.4; font-weight: 600; color: var(--text-primary); }
#xr-xml-loading > span:last-child { overflow-wrap: anywhere; }
.xr-xml-spinner { display: block; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border: 3px solid var(--border-color, #d6e0eb); border-top-color: var(--primary); border-radius: 50%; animation: xr-xml-spin .8s linear infinite; }
@keyframes xr-xml-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xr-xml-spinner { animation: none; } }
.xr-xml-validation, .xr-xml-preview { padding: 1.25rem 0; border-bottom: 1px solid var(--border-color, #d6e0eb); min-width: 0; }
.xr-xml-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; }
.xr-xml-heading > div { min-width: 0; }
.xr-xml-heading h2, .xr-xml-heading h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; line-height: 1.5; margin: 0; color: inherit; }
.xr-xml-heading p { margin: .35rem 0 0; overflow-wrap: anywhere; }
.xr-xml-validation { --xml-status: #916600; }
.xr-xml-validation[data-status="valid"] { --xml-status: #167346; }
.xr-xml-validation[data-status="invalid"] { --xml-status: #b42342; }
.xr-xml-validation h2 { color: var(--xml-status); }
.xr-xml-validation h2 .material-icons-outlined { color: inherit !important; font-size: 1.5rem; margin: 0; flex-shrink: 0; }
.xr-xml-profile { color: var(--text-secondary); font-size: .8rem; overflow-wrap: anywhere; margin: .65rem 0; }
.xr-xml-messages { margin: .75rem 0 0; }
.xr-xml-messages summary, .xr-xml-export summary { cursor: pointer; font-weight: 600; }
.xr-xml-messages li, .xr-xml-export li { margin: .6rem 0; overflow-wrap: anywhere; font-size: .85rem; }
.xr-xml-messages li[data-severity="error"] { color: #b42342; }
.xr-xml-messages code { display: block; white-space: normal; overflow-wrap: anywhere; }
.xr-xml-preview > .xr-muted { font-size: .85rem; margin: .5rem 0 1rem; }
.xr-xml-viewer { border: 1px solid var(--border-color, #d6e0eb); border-radius: 6px; background: #e9ecef; overflow: hidden; }
.xr-xml-pagebar { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem; background: #f2f5f7; color: #233b47; border-bottom: 1px solid #d6e0eb; }
.xr-xml-pagebar button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid #b7c7d2; border-radius: 4px; color: inherit; background: transparent; cursor: pointer; }
.xr-xml-pagebar button:disabled { opacity: .35; cursor: default; }
.xr-xml-pagebar .material-icons-outlined { margin: 0; color: inherit !important; }
.xr-xml-pagecount { width: 6rem; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.xr-xml-canvas-wrap { max-width: 1000px; margin: auto; background: white; aspect-ratio: 210 / 297; }
.xr-xml-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.xr-xml-preview-error { padding: 1rem; color: #912437; }
.xr-xml-export { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.25rem 0; }
.xr-xml-export .cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; max-width: 100%; padding: .75rem 1.25rem; border-radius: 6px; font-size: 1rem; line-height: 1.5; font-weight: 700; color: #fff; background: #006dc9; border: 1px solid #006dc9; white-space: normal; text-align: center; }
.xr-xml-export .cta-btn:disabled { color: #5a6470; background: #e9edf0; border-color: #d6dfe5; box-shadow: none; cursor: not-allowed; }
.xr-xml-export .cta-btn span { color: inherit !important; }
.xr-xml-export .cta-btn .material-icons-outlined { font-size: 1.2rem; flex-shrink: 0; margin: 0; }
.xr-xml-export .xr-muted { flex: 1 1 20rem; margin: 0; font-size: .9rem; }
.xr-xml-export details { flex-basis: 100%; }
.xr-xml-notice { display: flex; align-items: center; gap: .5rem; padding: 1rem 0; color: #916600; }
.xr-xml-expired { color: #916600; }
body.darkmode .xr-xml-validation { --xml-status: #ecc678; }
body.darkmode .xr-xml-validation[data-status="valid"] { --xml-status: #74d7a5; }
body.darkmode .xr-xml-validation[data-status="invalid"], body.darkmode .xr-xml-messages li[data-severity="error"] { --xml-status: #ff9bab; color: #ff9bab; }
body.darkmode .xr-xml-pagebar { background: #253b42; color: #edf3f5; border-color: #607880; }
body.darkmode .xr-xml-viewer { background: #304047; }
body.darkmode .xr-xml-export .cta-btn:disabled { color: #b6c2c9; background: #33434b; border-color: #657680; }
body.darkmode .xr-xml-notice, body.darkmode .xr-xml-expired { color: #ecc678; }
@media (max-width: 520px) {
  .xr-xml-heading { align-items: flex-start; }
  .xr-assistant-link-row { justify-content: flex-start; }
  .xr-xml-export .cta-btn { width: 100%; }
  .xr-xml-messages ul, .xr-xml-export ul { padding-left: 1.15rem; }
}
