/* Page effects never filter html/body: fixed page controls and the widget stay usable. */
html.aas-pref-motion *:not(.aas-widget):not(.aas-widget *),
html.aas-pref-motion *:not(.aas-widget):not(.aas-widget *)::before,
html.aas-pref-motion *:not(.aas-widget):not(.aas-widget *)::after {
  animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-aas-cursor="1"] *:not(.aas-widget):not(.aas-widget *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M4 3v37l11-11 8 16 8-4-8-15 15-1Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 3, auto !important;
}
html[data-aas-cursor="2"] *:not(.aas-widget):not(.aas-widget *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M4 3v37l11-11 8 16 8-4-8-15 15-1Z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 4 3, auto !important;
}
.aas-widget { all: initial; position: fixed !important; bottom: 22px !important; right: 22px !important; z-index: 2147483000 !important; isolation: isolate; direction: ltr !important; }
.aas-widget, .aas-widget * { box-sizing: border-box !important; }
.aas-widget * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: normal !important; text-transform: none !important; }
.aas-widget [hidden], .aas-widget-helper[hidden], .aas-widget-guide[hidden] { display: none !important; }
.aas-widget button, .aas-widget input, .aas-widget select, .aas-widget summary { all: revert; box-sizing: border-box !important; font-family: Arial, Helvetica, sans-serif !important; }
.aas-widget button { appearance: none !important; margin: 0 !important; cursor: pointer !important; color: #101521 !important; background: #fff !important; border: 1px solid #b7c3d7 !important; border-radius: 10px !important; font-size: 15px !important; line-height: 1.4 !important; padding: 10px 14px !important; box-shadow: none !important; text-align: center !important; white-space: normal !important; }
.aas-widget button::before, .aas-widget button::after { content: none !important; }
.aas-widget button:disabled { cursor: not-allowed !important; opacity: .6 !important; }
.aas-widget button:focus-visible, .aas-widget input:focus-visible, .aas-widget select:focus-visible, .aas-widget summary:focus-visible { outline: 3px solid #e58c00 !important; outline-offset: 3px !important; }
.aas-widget button:hover { border-color: #005bd5 !important; }
.aas-widget .aas-widget__launcher { width: 60px !important; height: 60px !important; padding: 12px !important; border: 3px solid #fff !important; border-radius: 50% !important; background: #0568e8 !important; color: #fff !important; box-shadow: 0 6px 28px #132c4c40 !important; display: flex; align-items: center; justify-content: center; }
.aas-widget__launcher svg { width: 34px !important; height: 34px !important; fill: currentColor !important; }
.aas-widget__panel { position: fixed !important; right: 18px !important; bottom: 92px !important; width: min(460px, calc(100vw - 24px)) !important; height: min(760px, calc(100dvh - 110px)) !important; max-height: calc(100vh - 110px) !important; display: flex; flex-direction: column; background: #eef1f6 !important; color: #101521 !important; border-radius: 18px !important; overflow: hidden !important; box-shadow: 0 12px 64px #0e254f40 !important; font: 16px/1.5 Arial, sans-serif !important; text-align: start !important; }
.aas-widget__header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px !important; background: linear-gradient(110deg, #006bea, #113eb9) !important; color: #fff !important; }
.aas-widget__header strong { font-size: 18px !important; font-weight: 700 !important; color: #fff !important; line-height: 1.4 !important; }
.aas-widget__header small { font-size: 14px !important; }
.aas-widget .aas-widget__close { flex: 0 0 36px; width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; font-size: 30px !important; line-height: 1 !important; color: #fff !important; background: #073095 !important; }
.aas-widget__body { flex: 1 1 auto; min-height: 0 !important; overflow: auto !important; overscroll-behavior: contain; padding: 18px !important; scrollbar-color: #066bea #cbd3e0; }
.aas-widget details { margin: 0 0 18px !important; padding: 0 0 16px !important; border-bottom: 1px solid #b7c3d7 !important; }
.aas-widget summary { color: #101521 !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.5 !important; cursor: pointer !important; padding: 8px 0 !important; }
.aas-widget label { display: block; font-size: 15px !important; color: #101521 !important; line-height: 1.5 !important; }
.aas-widget input:not([type="checkbox"]), .aas-widget select { display: block !important; width: 100% !important; background: #fff !important; color: #101521 !important; border: 1px solid #a9b6cc !important; border-radius: 9px !important; padding: 12px !important; margin: 8px 0 12px !important; font-size: 16px !important; line-height: 1.4 !important; }
.aas-widget input[type="checkbox"] { appearance: auto !important; width: 22px !important; height: 22px !important; accent-color: #0868e6; cursor: pointer; }
.aas-widget [data-aas-languages] { max-height: 250px; overflow: auto; background: white; border-radius: 10px; padding: 6px; }
.aas-widget [data-aas-languages] button { display: block; text-align: start !important; width: 100%; border: 0 !important; border-radius: 0 !important; padding: 12px !important; border-bottom: 1px solid #d5dce8 !important; }
.aas-widget [data-aas-languages] button[aria-pressed="true"] { background: #eaf1ff !important; color: #0349b5 !important; font-weight: bold !important; }
.aas-widget__profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.aas-widget__profile-grid button { display: flex; align-items: center; text-align: start !important; gap: 10px; min-height: 66px; border: 2px solid transparent !important; }
.aas-widget__profile-grid button > span:first-child { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #f0f1f3; font-size: 21px; }
.aas-widget .aas-widget__size { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #b7c3d7; border-bottom: 1px solid #b7c3d7; padding: 15px 0; margin: 16px 0 20px; font-weight: 600; }
.aas-widget__controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aas-widget .aas-widget__tile { min-height: 122px !important; padding: 14px 8px 8px !important; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 7px; border: 2px solid transparent !important; border-radius: 14px !important; font-size: 14px !important; font-weight: 600 !important; overflow-wrap: anywhere; }
.aas-widget .aas-widget__tile[aria-pressed="true"], .aas-widget__profile-grid button[aria-pressed="true"] { border-color: #006bea !important; background: #f9fcff !important; }
.aas-widget__icon { display: block; font-size: 34px !important; line-height: 1.1 !important; height: 38px; color: #090d14; }
.aas-widget__icon svg { display: block !important; width: 36px !important; height: 38px !important; }
.aas-widget__level { display: block; min-height: 16px; color: #0349b5; font-size: 12px !important; font-weight: 600; line-height: 1.3 !important; }
.aas-widget .aas-widget__reset { margin: 24px 0 !important; width: 100%; min-height: 52px; color: #fff !important; background: #0065df !important; border: 0 !important; font-weight: 700; }
.aas-widget__reset > span:first-child { font-size: 25px !important; margin-inline-end: 10px; }
.aas-widget__placement button { width: 100%; margin-top: 6px !important; }
.aas-widget p { font-size: 14px !important; line-height: 1.6 !important; margin: 12px 0 !important; color: #28354a !important; }
.aas-widget small { font-size: 12px !important; line-height: 1.5 !important; }
.aas-widget h3 { font-size: 17px !important; line-height: 1.4 !important; color: #101521 !important; margin: 18px 0 8px !important; }
.aas-widget [data-aas-structure], .aas-widget [data-aas-reader], .aas-widget [data-aas-dictionary] { background: #fff; margin-top: 14px; padding: 14px; border: 1px solid #b7c3d7; border-radius: 12px; }
.aas-widget .aas-widget__structure-item { display: block; width: 100%; text-align: start !important; margin: 6px 0 !important; }
.aas-widget [data-aas-definition] { white-space: pre-line; }
.aas-widget__footer { flex: 0 0 auto; background: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #d5dce8; }
.aas-widget__footer > span { font-size: 12px !important; line-height: 1.5 !important; color: #455369; max-width: 210px; }
.aas-widget__footer strong { color: #0849b5 !important; font-size: 25px !important; line-height: 1.1 !important; }
.aas-widget__footer strong span { display: block; font-size: 10px !important; color: #28354a; }
.aas-widget[data-position$="left"] { right: auto !important; left: 22px !important; }
.aas-widget[data-position$="left"] .aas-widget__panel { right: auto !important; left: 18px !important; }
.aas-widget[data-position^="top"] { bottom: auto !important; top: 22px !important; }
.aas-widget[data-position^="top"] .aas-widget__panel { bottom: auto !important; top: 92px !important; }
.aas-widget--oversized .aas-widget__panel { width: min(640px, calc(100vw - 24px)) !important; }
.aas-widget--oversized .aas-widget__tile { min-height: 145px !important; font-size: 17px !important; }
.aas-widget--oversized .aas-widget__profile-grid button { font-size: 18px !important; min-height: 76px; }
.aas-widget-helper { position: fixed !important; z-index: 2147482998; background: #101521 !important; color: #fff !important; padding: 10px 14px !important; border: 2px solid #fff !important; border-radius: 8px; max-width: min(320px, calc(100vw - 16px)); font: 16px/1.5 Arial, sans-serif !important; pointer-events: none; overflow-wrap: anywhere; }
.aas-widget-guide { position: fixed !important; left: 0 !important; width: 100vw !important; height: 48px !important; border-top: 3px solid #ffce00; border-bottom: 3px solid #ffce00; background: transparent; box-shadow: 0 0 0 100vmax #0009; pointer-events: none; z-index: 2147482997; }
@media (max-width: 520px) {
  .aas-widget__panel, .aas-widget[data-position$="left"] .aas-widget__panel, .aas-widget[data-position^="top"] .aas-widget__panel { top: 8px !important; bottom: auto !important; left: 8px !important; right: 8px !important; width: calc(100vw - 16px) !important; height: calc(100dvh - 16px) !important; max-height: calc(100vh - 16px) !important; }
  .aas-widget__body { padding: 14px !important; }
  .aas-widget__controls { gap: 8px; }
  .aas-widget .aas-widget__tile { min-height: 112px !important; font-size: 13px !important; }
  .aas-widget__header strong { font-size: 16px !important; }
}
@media (max-width: 350px) { .aas-widget__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aas-widget__profile-grid { grid-template-columns: 1fr; } }
@media (forced-colors: active) { .aas-widget button { border: 2px solid ButtonText !important; } .aas-widget button[aria-pressed="true"] { outline: 3px solid Highlight !important; } }
@media print { .aas-widget, .aas-widget-helper, .aas-widget-guide { display: none !important; } }
