:root {
  --a11y-font-scale: 1;
}



.a11y-widget {
  position: fixed;
  z-index: 99990;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  direction: rtl;
  text-align: right;
  pointer-events: none;
}

.a11y-widget > * {
  pointer-events: auto;
}

.a11y-pos-x-right {
  right: var(--a11y-offset-x, 24px);
  left: auto;
}

.a11y-pos-x-left {
  left: var(--a11y-offset-x, 24px);
  right: auto;
}

.a11y-pos-y-bottom {
  bottom: var(--a11y-offset-y, 24px);
  top: auto;
}

.a11y-pos-y-top {
  top: var(--a11y-offset-y, 24px);
  bottom: auto;
}

.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.36);
  z-index: 1;
}

.a11y-overlay[hidden],
.a11y-panel[hidden] {
  display: none !important;
}

.a11y-reading-mask {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 150px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 99996;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
}

.a11y-reading-guide {
  display: none;
  position: fixed;
  left: 0;
  width: 100vw;
  height: 2px;
  transform: translateY(-1px);
  pointer-events: none;
  z-index: 99996;
  background: #f43f5e;
}

html.a11y-reading-mask-active .a11y-reading-mask {
  display: block;
}

html.a11y-reading-guide-active .a11y-reading-guide {
  display: block;
}

.a11y-fab {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--a11y-fab-bg, #2563eb);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(8, 18, 34, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  position: relative;
  z-index: 3;
}
.a11y-fab:hover {
  background: var(--a11y-fab-hover, #1d4ed8);
  transform: scale(1.05);
}

.a11y-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.a11y-fab-icon svg {
  width: 28px;
  height: 28px;
}

.a11y-panel {
  width: var(--a11y-panel-width, 340px);
  max-width: calc(100vw - 48px);
  max-height: min(82vh, 760px);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 36px rgba(6, 14, 28, 0.45);
  position: absolute;
  right: 0;
  bottom: calc(62px + 14px);
  z-index: 2;
}

.a11y-pos-x-left .a11y-panel {
  right: auto;
  left: 0;
}

.a11y-pos-y-top .a11y-panel {
  bottom: auto;
  top: calc(62px + 14px);
}

.a11y-header {
  background-color: var(--a11y-fab-bg, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.a11y-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.a11y-header-title-text {
  font-size: 18px;
}

.a11y-title-icon {
  display: inline-flex;
  align-items: center;
}
.a11y-title-icon svg {
  width: 20px;
  height: 20px;
}

.a11y-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.a11y-theme-toggle,
.a11y-close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.a11y-content {
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a11y-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 700;
  text-align: right;
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a11y-btn {
  border-radius: 6px;
  min-height: 68px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 6px;
  cursor: pointer;
}

.a11y-btn-active {
  outline: 2px solid var(--a11y-fab-bg, #2563eb);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.a11y-theme-dark .a11y-btn-active {
  background: #4f5f7a;
  border-color: #93c5fd;
}

.a11y-theme-light .a11y-btn-active {
  background: #dff4e7;
  border-color: #1d4ed8;
}

.a11y-btn-wide {
  grid-column: 1 / -1;
}

.a11y-btn-icon {
  font-size: 22px;
  line-height: 1;
}

.a11y-btn-label {
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  font-weight: 500;
}

.a11y-reset {
  border: 0;
  border-radius: 10px;
  min-height: 50px;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
}

.a11y-theme-dark .a11y-panel {
  background: #1d2940;
  color: #f5f7fb;
}

.a11y-theme-dark .a11y-section h3 {
  color: #7685a3;
}

.a11y-theme-dark .a11y-btn {
  background: #3a465b;
  border-color: #4a576f;
  color: #f5f7fb;
}

.a11y-theme-dark .a11y-btn:hover {
  background: #45526a;
}

.a11y-theme-dark .a11y-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.a11y-theme-dark .a11y-content::-webkit-scrollbar {
  width: 6px;
}

.a11y-theme-dark .a11y-content::-webkit-scrollbar-thumb {
  background: #62708b;
  border-radius: 20px;
}

.a11y-theme-dark .a11y-reset {
  background: #552733;
  color: #f9c0c8;
  font-size: 16px;
}

.a11y-theme-light .a11y-panel {
  background: #f5f8ff;
  color: #1d2a40;
}

.a11y-theme-light .a11y-section h3 {
  color: #5f6f88;
}

.a11y-theme-light .a11y-btn {
  background: #ffffff;
  border-color: #ced7e8;
  color: #1d2a40;
}

.a11y-theme-light .a11y-btn:hover {
  background: #edf3ff;
}

.a11y-theme-light .a11y-close:hover {
  background: rgba(29, 42, 64, 0.12);
}

.a11y-theme-light .a11y-content::-webkit-scrollbar {
  width: 6px;
}

.a11y-theme-light .a11y-content::-webkit-scrollbar-thumb {
  background: #afbdd8;
  border-radius: 20px;
}

.a11y-theme-light .a11y-reset {
  background: #f4d6dc;
  color: #852f3c;
  font-size: 16px;
}

@media (max-width: 480px) {
  .a11y-panel {
    width: min(var(--a11y-panel-width, 340px), calc(100vw - 16px));
  }
}

html.a11y-monochrome body > *:not([data-a11y-widget]) {
  filter: grayscale(100%) !important;
}

html.a11y-high-saturation body > *:not([data-a11y-widget]) {
  filter: saturate(200%) !important;
}

html.a11y-low-saturation body > *:not([data-a11y-widget]) {
  filter: saturate(55%) !important;
}

html.a11y-dark-contrast {
  background: #000 !important;
}

html.a11y-dark-contrast body > *:not([data-a11y-widget]) {
  filter: invert(1) hue-rotate(180deg) contrast(1.28) brightness(0.78) !important;
}

html.a11y-dark-contrast body > *:not([data-a11y-widget]) :where(img, video, picture, canvas, svg, iframe) {
  filter: invert(1) hue-rotate(180deg) !important;
}

html.a11y-light-contrast {
  background: #fff !important;
  color: #0f172a !important;
}

html.a11y-light-contrast body > *:not([data-a11y-widget]) {
  filter: none !important;
  background-color: #fff !important;
  color: #0f172a !important;
}

html.a11y-light-contrast a {
  color: #0b57d0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html.a11y-light-contrast :where(button, input, textarea, select) {
  background-color: #fff !important;
  color: #0f172a !important;
  border-color: #64748b !important;
}

html.a11y-light-contrast body > *:not([data-a11y-widget]) :where(img, video, picture, canvas, svg, iframe) {
  filter: none !important;
}

html.a11y-readable-font,
html.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-letter-spacing,
html.a11y-letter-spacing * {
  letter-spacing: 0.12em !important;
}

html.a11y-word-spacing,
html.a11y-word-spacing * {
  word-spacing: 0.28em !important;
}

html.a11y-line-spacing,
html.a11y-line-spacing * {
  line-height: 2 !important;
}

html.a11y-highlight-links a,
html.a11y-highlight-links button {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 3px !important;
  background-color: #ff059c47 !important;
}

html.a11y-highlight-headings :where(h1, h2, h3, h4, h5, h6) {
  outline: 2px solid #ef4444 !important;
  outline-offset: 2px !important;
  padding: 4px !important;
  border-radius: 6px !important;
}

html.a11y-large-cursor-black,
html.a11y-large-cursor-black * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23000" stroke="%23FFF" stroke-width="2" d="M4 2l16 11-7 2 4 7-3 2-4-7-5 4z"/></svg>') 4 2, auto !important;
}

html.a11y-large-cursor-white,
html.a11y-large-cursor-white * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" d="M4 2l16 11-7 2 4 7-3 2-4-7-5 4z"/></svg>') 4 2, auto !important;
}

html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

.a11y-alt-text-label {
  display: block;
  background: #000;
  color: #ff0;
  padding: 4px 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border: 2px dashed #ff0;
  margin-top: 6px;
  border-radius: 6px;
}

/* Dreamview accessibility refresh — 2026-11-18 */
.a11y-widget { font-family: Heebo, Arial, sans-serif; --a11y-ink:#14253f; --a11y-accent:#1d4ed8; }
.a11y-widget,.a11y-widget * { box-sizing:border-box; }
.a11y-widget .a11y-panel { position:fixed; right:20px; left:auto; bottom:100px; width:424px; max-width:calc(100vw - 40px); max-height:calc(100vh - 120px); max-height:calc(100dvh - 120px); border:1px solid #dce3ed; border-radius:20px; background:#fff; color:#14253f; box-shadow:0 20px 70px #07152c40; z-index:4; }
.a11y-widget .a11y-header { background:#14253f !important; color:#fff; padding:18px 20px; min-height:76px; flex:none; }
.a11y-widget .a11y-header-title { gap:12px; }
.a11y-widget .a11y-header-title-text { font-size:21px; font-weight:700; }
.a11y-widget .a11y-title-icon { width:34px; height:34px; justify-content:center; border:1px solid #ffffff40; border-radius:10px; color:#ffc467; }
.a11y-widget .a11y-close { width:44px; height:44px; border:1px solid #ffffff50; border-radius:12px; font-size:19px; }
.a11y-widget .a11y-close:hover { background:#ffffff20; }
.a11y-widget .a11y-intro { padding:14px 20px; background:#f4f7fb; border-bottom:1px solid #e2e8f0; flex:none; }
.a11y-intro p { margin:0 0 5px; color:#334155; font-size:14px; line-height:1.6; }
.a11y-intro [data-a11y-status] { display:block; color:#1e40af; font-size:13px; font-weight:600; }
.a11y-widget .a11y-content { padding:18px 20px; gap:22px; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#9aaac2 #f1f5f9; }
.a11y-widget .a11y-section h3 { color:#334155; font-size:14px; font-weight:700; margin:0 0 10px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.a11y-font-status { color:#475569; background:#edf2f8; border-radius:6px; padding:3px 8px; font-size:12px; font-weight:500; direction:ltr; }
.a11y-widget .a11y-grid { gap:8px; }
.a11y-widget .a11y-btn { position:relative; background:#fff; color:#14253f; border:1px solid #cbd5e1; border-radius:11px; min-height:70px; padding:11px 8px; gap:8px; font-family:inherit; transition:background-color .15s,border-color .15s; }
.a11y-widget .a11y-btn:hover { background:#f0f5ff; border-color:#6b8cd8; }
.a11y-widget .a11y-btn-icon { font-size:21px; color:#294b78; }
.a11y-widget .a11y-btn-label { font-size:14px; font-weight:500; line-height:1.45; }
.a11y-widget .a11y-btn-wide { flex-direction:row; gap:12px; min-height:48px; }
.a11y-widget .a11y-btn[aria-pressed="true"] { background:#eaf1ff; color:#153c8e; border-color:#1d4ed8; outline:1px solid #1d4ed8; outline-offset:-1px; box-shadow:none; transform:none; }
.a11y-widget .a11y-btn[aria-pressed="true"]::after { content:'✓'; position:absolute; inset-inline-start:7px; top:5px; color:#1742a2; font-size:15px; font-weight:700; }
.a11y-widget .a11y-btn:disabled { opacity:.45; cursor:default; }
.a11y-widget .a11y-footer { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10px; padding:14px 20px; background:#fff; border-top:1px solid #dce3ed; flex:none; }
.a11y-widget .a11y-reset { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font-family:inherit; font-size:14px; font-weight:600; color:#334155; background:#edf2f8; border:1px solid #cbd5e1; border-radius:9px; padding:9px; }
.a11y-widget .a11y-reset:hover { background:#e1e9f4; }
.a11y-statement-link { min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; color:#1742a2; font-size:14px; font-weight:700; text-decoration:underline; text-underline-offset:4px; border-radius:8px; }
.a11y-contact-link { grid-column:1/-1; color:#475569; font-size:12px; text-align:center; text-decoration:underline; text-underline-offset:3px; padding:4px; }
.a11y-widget :where(button,a):focus-visible { outline:3px solid #0b69e3 !important; outline-offset:3px; }
.a11y-widget .a11y-close:focus-visible { outline-color:#ffc467 !important; }
.a11y-widget .a11y-fab { width:58px; height:58px; color:#14253f; border:2px solid #fff; background:#ffb547; box-shadow:0 6px 24px #0f203140; }
.a11y-widget .a11y-fab:hover { background:#ffc467; }
.a11y-widget .a11y-reading-mask,.a11y-widget .a11y-reading-guide { z-index:0; }
.a11y-widget .a11y-overlay { background:#06132665; }
@media(max-width:600px) {
 .a11y-widget .a11y-panel { right:12px; bottom:12px; width:calc(100vw - 24px); max-width:none; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:16px; }
 .a11y-widget .a11y-header { padding:12px 16px; min-height:64px; }
 .a11y-widget .a11y-header-title-text { font-size:19px; }
 .a11y-widget .a11y-content { padding:16px; gap:20px; }
 .a11y-widget .a11y-intro { padding:10px 16px; }
 .a11y-widget .a11y-footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) { .a11y-widget * { transition:none !important; animation:none !important; } }
@media(forced-colors:active) { .a11y-widget .a11y-btn[aria-pressed="true"] { border:3px solid Highlight; } }

.a11y-widget * { letter-spacing:normal !important; word-spacing:normal !important; }

.a11y-widget .a11y-btn-label {color:#14253f !important}
.a11y-widget .a11y-reset span,.a11y-widget .a11y-statement-link span {color:inherit !important}

.a11y-widget[dir="ltr"]{direction:ltr;text-align:left}.a11y-widget[dir="ltr"] .a11y-section h3{text-align:left}
.dv-a11y-footer-link{display:inline-block;margin:12px 20px;padding:8px 0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:4px}
