.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 16px;
  transition: top 0.3s ease;
  z-index: 1001;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3) !important;
}

@media (prefers-contrast: high) {
  body { background: #fff !important; color: #000 !important; }
  a { color: #0000ff !important; text-decoration: underline !important; }
  button { border: 2px solid #000 !important; }
}

.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

.high-contrast body,
.high-contrast .bg-gray-50,
.high-contrast .bg-gray-100,
.high-contrast .bg-white {
  background: #000 !important;
  color: #fff !important;
}

.high-contrast p,
.high-contrast span,
.high-contrast div,
.high-contrast li,
.high-contrast td,
.high-contrast th,
.high-contrast dt,
.high-contrast dd,
.high-contrast label,
.high-contrast figcaption,
.high-contrast blockquote,
.high-contrast caption {
  color: #fff !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6 {
  color: #fff !important;
}

.high-contrast a {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

.high-contrast a:hover {
  color: #fde68a !important;
}

.high-contrast button,
.high-contrast a.inline-flex,
.high-contrast a[class*="btn"],
.high-contrast button[type="submit"] {
  border: 2px solid #fff !important;
  color: #fff !important;
}

.high-contrast input,
.high-contrast textarea,
.high-contrast select {
  border: 2px solid #fff !important;
  background: #111 !important;
  color: #fff !important;
}

.high-contrast input::placeholder,
.high-contrast textarea::placeholder {
  color: #aaa !important;
}

.high-contrast [class*="bg-gradient"],
.high-contrast [class*="from-blue"],
.high-contrast [class*="from-green"],
.high-contrast [class*="from-red"],
.high-contrast [class*="from-purple"],
.high-contrast [class*="from-gray"],
.high-contrast [class*="from-indigo"],
.high-contrast [class*="from-amber"],
.high-contrast [class*="from-black"] {
  background: #000 !important;
  background-image: none !important;
}

.high-contrast [class*="bg-gradient"] *,
.high-contrast [class*="from-blue"] *,
.high-contrast [class*="from-green"] * {
  color: #fff !important;
}

.high-contrast .bg-blue-50,
.high-contrast .bg-blue-100,
.high-contrast .bg-green-50,
.high-contrast .bg-green-100,
.high-contrast .bg-red-50,
.high-contrast .bg-red-100,
.high-contrast .bg-yellow-50,
.high-contrast .bg-yellow-100,
.high-contrast .bg-purple-50,
.high-contrast .bg-purple-100,
.high-contrast .bg-indigo-50,
.high-contrast .bg-indigo-100,
.high-contrast .bg-orange-50,
.high-contrast .bg-orange-100,
.high-contrast .bg-amber-50,
.high-contrast .bg-amber-100,
.high-contrast .bg-teal-50,
.high-contrast .bg-teal-100,
.high-contrast .bg-emerald-50,
.high-contrast .bg-emerald-100,
.high-contrast .bg-cyan-50,
.high-contrast .bg-cyan-100 {
  background: #1a1a2e !important;
}

.high-contrast .bg-blue-500,
.high-contrast .bg-blue-600,
.high-contrast .bg-blue-700,
.high-contrast .bg-blue-800,
.high-contrast .bg-blue-900,
.high-contrast .bg-green-500,
.high-contrast .bg-green-600,
.high-contrast .bg-green-700,
.high-contrast .bg-red-500,
.high-contrast .bg-red-600,
.high-contrast .bg-red-700,
.high-contrast .bg-purple-500,
.high-contrast .bg-purple-600,
.high-contrast .bg-indigo-500,
.high-contrast .bg-indigo-600,
.high-contrast .bg-amber-500,
.high-contrast .bg-amber-600,
.high-contrast .bg-yellow-500,
.high-contrast .bg-yellow-600,
.high-contrast .bg-orange-400,
.high-contrast .bg-orange-500,
.high-contrast .bg-teal-500,
.high-contrast .bg-emerald-500 {
  background: #1e3a5f !important;
  color: #fff !important;
}

.high-contrast .text-gray-100,
.high-contrast .text-gray-200,
.high-contrast .text-gray-300,
.high-contrast .text-gray-400,
.high-contrast .text-gray-500,
.high-contrast .text-gray-600,
.high-contrast .text-gray-700,
.high-contrast .text-gray-800,
.high-contrast .text-gray-900 {
  color: #fff !important;
}

.high-contrast .text-blue-100,
.high-contrast .text-blue-200,
.high-contrast .text-blue-300,
.high-contrast .text-blue-400,
.high-contrast .text-blue-500,
.high-contrast .text-blue-600,
.high-contrast .text-blue-700,
.high-contrast .text-blue-800,
.high-contrast .text-blue-900 {
  color: #7dd3fc !important;
}

.high-contrast .text-green-600,
.high-contrast .text-green-700,
.high-contrast .text-green-800 {
  color: #86efac !important;
}

.high-contrast .text-red-500,
.high-contrast .text-red-600,
.high-contrast .text-red-700,
.high-contrast .text-red-800 {
  color: #fca5a5 !important;
}

.high-contrast .text-yellow-600,
.high-contrast .text-yellow-700,
.high-contrast .text-yellow-800 {
  color: #fde68a !important;
}

.high-contrast .text-purple-500,
.high-contrast .text-purple-600,
.high-contrast .text-purple-700 {
  color: #c4b5fd !important;
}

.high-contrast .text-indigo-600,
.high-contrast .text-indigo-700,
.high-contrast .text-indigo-800 {
  color: #a5b4fc !important;
}

.high-contrast .text-orange-600,
.high-contrast .text-orange-700 {
  color: #fdba74 !important;
}

.high-contrast .text-emerald-600,
.high-contrast .text-teal-600 {
  color: #6ee7b7 !important;
}

.high-contrast .text-white {
  color: #fff !important;
}

.high-contrast [class*="rounded-full"][class*="bg-"] {
  background: #1e3a5f !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

.high-contrast .bg-green-100.text-green-800,
.high-contrast .bg-green-100.text-green-700 {
  background: #064e3b !important;
  color: #6ee7b7 !important;
  border: 1px solid #6ee7b7 !important;
}

.high-contrast .bg-yellow-100.text-yellow-800,
.high-contrast .bg-yellow-100.text-yellow-700 {
  background: #78350f !important;
  color: #fde68a !important;
  border: 1px solid #fde68a !important;
}

.high-contrast .bg-red-100.text-red-800,
.high-contrast .bg-red-100.text-red-700 {
  background: #7f1d1d !important;
  color: #fca5a5 !important;
  border: 1px solid #fca5a5 !important;
}

.high-contrast .bg-indigo-100.text-indigo-800,
.high-contrast .bg-indigo-100.text-indigo-700 {
  background: #312e81 !important;
  color: #a5b4fc !important;
  border: 1px solid #a5b4fc !important;
}

.high-contrast .bg-blue-100.text-blue-800,
.high-contrast .bg-blue-100.text-blue-700 {
  background: #1e3a5f !important;
  color: #7dd3fc !important;
  border: 1px solid #7dd3fc !important;
}

.high-contrast .bg-orange-100.text-orange-700 {
  background: #7c2d12 !important;
  color: #fdba74 !important;
  border: 1px solid #fdba74 !important;
}

/* --- 3f. Cards / Sections --- */
.high-contrast .bg-white,
.high-contrast [class*="shadow"],
.high-contrast .rounded-lg,
.high-contrast .rounded-xl,
.high-contrast .rounded-2xl {
  background: #111 !important;
  border: 1px solid #444 !important;
}

.high-contrast .border,
.high-contrast .border-b,
.high-contrast .border-t,
.high-contrast [class*="border-gray"],
.high-contrast [class*="border-blue"],
.high-contrast [class*="border-green"],
.high-contrast [class*="border-red"],
.high-contrast [class*="border-yellow"],
.high-contrast [class*="border-purple"],
.high-contrast [class*="border-indigo"] {
  border-color: #666 !important;
}

.high-contrast [class*="border-l-4"] {
  border-left-width: 6px !important;
  border-left-color: #7dd3fc !important;
}

.high-contrast [class*="border-l-4"][class*="border-red"] {
  border-left-color: #fca5a5 !important;
}

.high-contrast [class*="border-l-4"][class*="border-green"] {
  border-left-color: #86efac !important;
}

.high-contrast [class*="border-l-4"][class*="border-yellow"] {
  border-left-color: #fde68a !important;
}

.high-contrast [class*="border-l-4"][class*="border-purple"] {
  border-left-color: #c4b5fd !important;
}

.high-contrast [class*="border-l-4"][class*="border-indigo"] {
  border-left-color: #a5b4fc !important;
}

.high-contrast [class*="bg-blue-100"][class*="rounded"] {
  background: #1e3a5f !important;
}

.high-contrast [class*="bg-green-100"][class*="rounded"] {
  background: #064e3b !important;
}

.high-contrast [class*="bg-red-100"][class*="rounded"] {
  background: #7f1d1d !important;
}

.high-contrast [class*="bg-yellow-100"][class*="rounded"] {
  background: #78350f !important;
}

.high-contrast [class*="bg-purple-100"][class*="rounded"] {
  background: #312e81 !important;
}

.high-contrast [class*="bg-indigo-100"][class*="rounded"] {
  background: #312e81 !important;
}

.high-contrast [class*="bg-orange-100"][class*="rounded"] {
  background: #7c2d12 !important;
}

.high-contrast .bg-blue-600,
.high-contrast .bg-blue-700,
.high-contrast [class*="bg-blue-600"][class*="hover"],
.high-contrast a[class*="bg-blue-600"],
.high-contrast button[class*="bg-blue-600"] {
  background: #1e3a5f !important;
  color: #fff !important;
  border: 2px solid #7dd3fc !important;
}

.high-contrast .bg-red-600,
.high-contrast a[class*="bg-red-600"],
.high-contrast button[class*="bg-red-600"] {
  background: #7f1d1d !important;
  color: #fff !important;
  border: 2px solid #fca5a5 !important;
}

.high-contrast .bg-green-600,
.high-contrast a[class*="bg-green-600"],
.high-contrast button[class*="bg-green-600"] {
  background: #064e3b !important;
  color: #fff !important;
  border: 2px solid #86efac !important;
}

.high-contrast .bg-gray-100,
.high-contrast .bg-gray-200 {
  background: #222 !important;
  color: #fff !important;
}

.high-contrast footer {
  background: #000 !important;
  color: #fff !important;
  border-top: 2px solid #444 !important;
}

.high-contrast footer * {
  color: #fff !important;
}

.high-contrast footer a {
  color: #7dd3fc !important;
}

.high-contrast footer a:hover {
  color: #fde68a !important;
}

.high-contrast footer [class*="border"] {
  border-color: #444 !important;
}

.high-contrast footer [class*="animation"],
.high-contrast footer canvas,
.high-contrast footer [style*="animation"] {
  display: none !important;
}

.high-contrast table {
  border: 2px solid #fff !important;
}

.high-contrast th {
  background: #1e3a5f !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

.high-contrast td {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #666 !important;
}

.high-contrast tr:nth-child(even) td {
  background: #1a1a2e !important;
}

.high-contrast [class*="backdrop-blur"],
.high-contrast [class*="backdrop-filter"],
.high-contrast [style*="backdrop-filter"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #000 !important;
}

.high-contrast [class*="bg-opacity"],
.high-contrast [class*="bg-white\\/"],
.high-contrast [class*="bg-black\\/"] {
  background: #000 !important;
  opacity: 1 !important;
}

.high-contrast img {
  border: 1px solid #666 !important;
}

.high-contrast [class*="grayscale"] {
  filter: none !important;
}

.high-contrast details,
.high-contrast [x-data] > div[class*="border"] {
  border: 1px solid #666 !important;
  background: #111 !important;
}

.high-contrast details summary,
.high-contrast [x-data] button[class*="w-full"] {
  color: #fff !important;
  background: #1a1a2e !important;
}

.high-contrast .swiper,
.high-contrast .swiper-slide {
  background: #000 !important;
}

.high-contrast .swiper-pagination-bullet {
  background: #fff !important;
  border: 1px solid #fff !important;
  opacity: 0.5 !important;
}

.high-contrast .swiper-pagination-bullet-active {
  opacity: 1 !important;
}

.high-contrast .swiper-button-next,
.high-contrast .swiper-button-prev {
  color: #fff !important;
}

.high-contrast [class*="animate-spin"],
.high-contrast .loading-spinner {
  border-color: #333 !important;
  border-top-color: #fff !important;
}

.high-contrast [class*="bg-red-50"],
.high-contrast [class*="bg-green-50"],
.high-contrast [class*="bg-yellow-50"],
.high-contrast [class*="bg-blue-50"] {
  background: #111 !important;
  border: 2px solid #fff !important;
}

.high-contrast [class*="bg-red-50"] * {
  color: #fca5a5 !important;
}

.high-contrast [class*="bg-green-50"] * {
  color: #86efac !important;
}

.high-contrast [class*="bg-yellow-50"] * {
  color: #fde68a !important;
}

.high-contrast [class*="bg-blue-500"].text-white {
  background: #1e3a5f !important;
  border: 2px solid #7dd3fc !important;
}

.high-contrast [class*="bg-white"].text-blue-600 {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

.high-contrast [class*="bg-gradient"][class*="stats"],
.high-contrast [class*="counter"],
.high-contrast .stat-card {
  background: #111 !important;
  border: 1px solid #666 !important;
}

.high-contrast svg {
  color: currentColor !important;
}

.high-contrast svg[class*="text-blue"] { color: #7dd3fc !important; }
.high-contrast svg[class*="text-green"] { color: #86efac !important; }
.high-contrast svg[class*="text-red"] { color: #fca5a5 !important; }
.high-contrast svg[class*="text-yellow"] { color: #fde68a !important; }
.high-contrast svg[class*="text-purple"] { color: #c4b5fd !important; }
.high-contrast svg[class*="text-indigo"] { color: #a5b4fc !important; }
.high-contrast svg[class*="text-orange"] { color: #fdba74 !important; }
.high-contrast svg[class*="text-emerald"],
.high-contrast svg[class*="text-teal"] { color: #6ee7b7 !important; }
.high-contrast svg[class*="text-gray"] { color: #fff !important; }

.high-contrast [class*="rounded-full"].bg-green-500 {
  background: #86efac !important;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #86efac !important;
}

.high-contrast [class*="rounded-full"].bg-red-500 {
  background: #fca5a5 !important;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #fca5a5 !important;
}

.high-contrast [class*="rounded-full"].bg-yellow-500 {
  background: #fde68a !important;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #fde68a !important;
}

.high-contrast [class*="rounded-full"].bg-blue-500 {
  background: #7dd3fc !important;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #7dd3fc !important;
}

.high-contrast nav[aria-label*="breadcrumb"],
.high-contrast nav[aria-label*="Breadcrumb"],
.high-contrast .breadcrumb {
  background: #111 !important;
}

.high-contrast nav[aria-label*="breadcrumb"] a,
.high-contrast nav[aria-label*="Breadcrumb"] a {
  color: #7dd3fc !important;
}

.high-contrast nav[aria-label*="breadcrumb"] span,
.high-contrast nav[aria-label*="Breadcrumb"] span {
  color: #fff !important;
}

.high-contrast [class*="pagination"] a,
.high-contrast nav[role="navigation"] a {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #666 !important;
}

.high-contrast [class*="pagination"] a:hover,
.high-contrast nav[role="navigation"] a:hover {
  background: #1e3a5f !important;
  border-color: #7dd3fc !important;
}

.high-contrast [class*="pagination"] [aria-current="page"] span,
.high-contrast nav[role="navigation"] [aria-current="page"] span {
  background: #1e3a5f !important;
  color: #fff !important;
  border: 2px solid #7dd3fc !important;
}

.high-contrast iframe {
  border: 2px solid #fff !important;
}

.high-contrast .bg-gray-200 {
  background: #222 !important;
}

.high-contrast [class*="marquee"],
.high-contrast [class*="tautan"] {
  background: #000 !important;
}

.high-contrast [class*="marquee"] img,
.high-contrast [class*="tautan"] img {
  filter: brightness(1.2) !important;
  border: 1px solid #666 !important;
}

.high-contrast ::selection {
  background: #fde68a !important;
  color: #000 !important;
}

.high-contrast .acc-widget .acc-trigger {
  border: 2px solid #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.large-text { font-size: 1.125rem !important; line-height: 1.6 !important; }
.large-text h1 { font-size: 3rem !important; }
.large-text h2 { font-size: 2.5rem !important; }
.large-text h3 { font-size: 2rem !important; }
.large-text h4 { font-size: 1.75rem !important; }
.large-text h5 { font-size: 1.5rem !important; }
.large-text h6 { font-size: 1.25rem !important; }

body.text-size-small *:not(.acc-widget):not(.acc-widget *) {
  font-size: 0.875rem !important;
}
body.text-size-large *:not(.acc-widget):not(.acc-widget *) {
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
}

body.dyslexia-font {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Arial', sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
  line-height: 1.8 !important;
}
body.dyslexia-font .acc-widget,
body.dyslexia-font .acc-widget * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  line-height: 1.5 !important;
}

.acc-widget {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  user-select: none;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 0 10px 10px 0;
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.acc-trigger:hover {
  width: 52px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 3px 3px 16px rgba(37, 99, 235, 0.4);
}

.acc-trigger:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
}

.acc-trigger svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.acc-trigger-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0;
  display: none;
}

.acc-trigger-badge.visible {
  display: block;
}

.acc-panel {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  width: 320px;
  max-height: 85vh;
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.acc-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.acc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-radius: 0 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.acc-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0;
}

.acc-panel-title svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.acc-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acc-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.acc-close-btn svg {
  width: 18px;
  height: 18px;
}

.acc-panel-body {
  padding: 16px 20px 20px;
}

.acc-section {
  margin-bottom: 16px;
}

.acc-section:last-child {
  margin-bottom: 0;
}

.acc-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.acc-section-title svg {
  width: 14px;
  height: 14px;
}

.acc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.acc-toggle-row + .acc-toggle-row {
  border-top: 1px solid #f3f4f6;
}

.acc-toggle-label {
  flex: 1;
}

.acc-toggle-label-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.acc-toggle-label-desc {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.acc-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  background: #d1d5db;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.acc-switch.active {
  background: #2563eb;
}

.acc-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.acc-switch.active::after {
  transform: translateX(18px);
}

.acc-font-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.acc-font-btn {
  flex: 1;
  padding: 8px 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.acc-font-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.acc-font-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.acc-font-btn[data-size="small"] { font-size: 12px; }
.acc-font-btn[data-size="normal"] { font-size: 14px; }
.acc-font-btn[data-size="large"] { font-size: 17px; }

.acc-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* TTS Section */
.acc-tts-controls {
  display: none;
  margin-top: 10px;
}

.acc-tts-controls.visible {
  display: block;
}

.acc-tts-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0369a1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.acc-tts-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.acc-tts-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.acc-tts-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.acc-tts-playback {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.acc-tts-playback.visible {
  display: flex;
}

.acc-tts-playback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acc-tts-playback-btn.pause { background: #2563eb; }
.acc-tts-playback-btn.pause:hover { background: #1d4ed8; }
.acc-tts-playback-btn.stop { background: #ef4444; }
.acc-tts-playback-btn.stop:hover { background: #dc2626; }

.acc-tts-playback-btn svg {
  width: 16px;
  height: 16px;
}

.acc-tts-speed {
  margin-top: 10px;
}

.acc-tts-speed-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.acc-tts-speed-value {
  font-weight: 600;
  color: #2563eb;
}

.acc-tts-speed input[type="range"] {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.acc-tts-speed input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.acc-tts-speed input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.acc-tts-tip {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
}

.acc-tts-status {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 8px;
}

.acc-tts-status.visible {
  display: flex;
}

.acc-tts-status-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.acc-shortcuts {
  margin-top: 4px;
}

.acc-shortcuts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acc-shortcuts-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  padding: 3px 0;
}

.acc-kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: #374151;
  line-height: 1.4;
}

.acc-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acc-reset-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.acc-reset-btn svg {
  width: 14px;
  height: 14px;
}

.acc-tts-popup {
  position: fixed;
  z-index: 1000000;
  display: none;
}

.acc-tts-popup.visible {
  display: block;
}

.acc-tts-popup-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.acc-tts-popup-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.acc-tts-popup-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .acc-panel {
    width: 290px;
  }
  .acc-panel-body {
    padding: 14px 16px 16px;
  }
  .acc-trigger {
    width: 40px;
    height: 40px;
  }
  .acc-trigger svg {
    width: 20px;
    height: 20px;
  }
  .acc-trigger:hover {
    width: 46px;
  }
}

@media (max-width: 480px) {
  .acc-widget {
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
  }

  .acc-trigger {
    position: fixed;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
    z-index: 999999;
  }

  .acc-trigger:hover {
    width: 44px;
  }

  .acc-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  }

  .acc-panel.open {
    transform: translateY(0);
  }

  .acc-panel-header {
    border-radius: 16px 16px 0 0;
    padding: 14px 16px;
  }

  .acc-panel-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
  }

  .acc-panel-body {
    padding: 12px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media print {
  .acc-widget,
  .acc-tts-popup {
    display: none !important;
  }
}

.high-contrast .acc-panel {
  background: #000 !important;
  border: 2px solid #fff !important;
}

.high-contrast .acc-panel-header {
  background: #111 !important;
  border-bottom-color: #444 !important;
}

.high-contrast .acc-panel-title { color: #fff !important; }
.high-contrast .acc-toggle-label-text { color: #fff !important; }
.high-contrast .acc-toggle-label-desc { color: #ccc !important; }
.high-contrast .acc-section-title { color: #ccc !important; }
.high-contrast .acc-shortcuts-list li { color: #ccc !important; }

.high-contrast .acc-switch {
  background: #555 !important;
}
.high-contrast .acc-switch.active {
  background: #3b82f6 !important;
}

.high-contrast .acc-font-btn {
  background: #222 !important;
  color: #fff !important;
  border-color: #555 !important;
}
.high-contrast .acc-font-btn.active {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.high-contrast .acc-tts-btn {
  background: #111 !important;
  border-color: #444 !important;
  color: #7dd3fc !important;
}

.high-contrast .acc-kbd {
  background: #333 !important;
  border-color: #555 !important;
  color: #fff !important;
}

.high-contrast .acc-reset-btn {
  background: #222 !important;
  border-color: #555 !important;
  color: #fca5a5 !important;
}

.high-contrast .acc-divider {
  background: #444 !important;
}
