#ada-widget-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1565C0;
  border: none;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ada-widget-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.5);
}

#ada-widget-toggle:focus {
  outline: 3px solid #FFC107;
  outline-offset: 2px;
}

#ada-widget-toggle svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

#ada-widget-panel {
  position: fixed;
  bottom: 88px;
  left: 20px;
  width: 320px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  z-index: 99998;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#ada-widget-panel.ada-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ada-widget-panel-header {
  background: #1565C0;
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ada-widget-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}

#ada-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#ada-panel-close:hover {
  background: rgba(255,255,255,0.2);
}

#ada-panel-close:focus {
  outline: 2px solid #FFC107;
}

#ada-widget-panel-body {
  padding: 16px;
}

.ada-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #777;
  margin: 14px 0 8px;
  font-family: inherit;
}

.ada-section-label:first-child {
  margin-top: 0;
}

.ada-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.ada-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.ada-btn:hover {
  background: #e8f0fe;
  border-color: #1565C0;
}

.ada-btn:focus {
  outline: 2px solid #1565C0;
  outline-offset: 1px;
}

.ada-btn.ada-active {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}

.ada-btn.ada-active:hover {
  background: #0D47A1;
}

.ada-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ada-btn.ada-active svg {
  fill: #fff;
}

.ada-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
}

.ada-slider-row label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  min-width: 80px;
  font-family: inherit;
}

.ada-slider-row input[type="range"] {
  flex: 1;
  accent-color: #1565C0;
  cursor: pointer;
}

.ada-slider-row .ada-slider-val {
  font-size: 13px;
  font-weight: 600;
  color: #1565C0;
  min-width: 36px;
  text-align: right;
}

#ada-reset-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  font-family: inherit;
  transition: all 0.2s;
}

#ada-reset-btn:hover {
  background: #e0e0e0;
  color: #333;
}

#ada-reset-btn:focus {
  outline: 2px solid #1565C0;
}

body.ada-high-contrast #root {
  filter: contrast(1.5) !important;
}

body.ada-grayscale #root {
  filter: grayscale(1) !important;
}

body.ada-high-contrast.ada-grayscale #root {
  filter: contrast(1.5) grayscale(1) !important;
}

body.ada-invert #root {
  filter: invert(1) hue-rotate(180deg) !important;
}

body.ada-invert.ada-high-contrast #root {
  filter: invert(1) hue-rotate(180deg) contrast(1.5) !important;
}

body.ada-invert.ada-grayscale #root {
  filter: invert(1) hue-rotate(180deg) grayscale(1) !important;
}

body.ada-invert.ada-high-contrast.ada-grayscale #root {
  filter: invert(1) hue-rotate(180deg) contrast(1.5) grayscale(1) !important;
}

body.ada-highlight-links a {
  outline: 3px solid #FFC107 !important;
  outline-offset: 2px !important;
  text-decoration: underline !important;
}

body.ada-big-cursor,
body.ada-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5 3l14 8-6 1.5L9.5 19z'/%3E%3C/svg%3E") 4 2, auto !important;
}

body.ada-readable-font,
body.ada-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em !important;
}

body.ada-line-height * {
  line-height: 2 !important;
}

body.ada-text-spacing * {
  word-spacing: 0.2em !important;
  letter-spacing: 0.1em !important;
}

body.ada-stop-animations,
body.ada-stop-animations * {
  animation: none !important;
  transition: none !important;
}

body.ada-stop-animations #full-page-water-canvas {
  display: none !important;
}

body.ada-reading-guide #ada-reading-line {
  display: block !important;
}

#ada-reading-line {
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(255, 193, 7, 0.35);
  pointer-events: none;
  z-index: 99997;
  transition: top 0.05s linear;
}

@media (max-width: 480px) {
  #ada-widget-panel {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 84px;
  }

  #ada-widget-toggle {
    width: 48px;
    height: 48px;
    bottom: 16px;
    left: 16px;
  }

  #ada-widget-toggle svg {
    width: 26px;
    height: 26px;
  }
}
