#accessibility-widget-launcher {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
#accessibility-widget-launcher:focus {
  outline: 3px solid #00aaff;
}
#accessibility-widget-panel {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 340px;
  min-width: 0;
  background: #fff !important;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 18px 16px 16px 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
#accessibility-widget-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
  padding-right: 40px;
  background: none;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}
.accessibility-widget-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888 !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
}
#accessibility-widget-panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
}
#accessibility-widget-panel li {
  display: contents;
}
#accessibility-widget-panel button {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-size: 0.97rem;
  padding: 10px 4px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
#accessibility-widget-panel button:focus {
  outline: 2px solid #00aaff;
  background: #e0f7ff;
}
#accessibility-widget-panel #tts,
#accessibility-widget-panel #reset-all {
  grid-column: span 3;
}
