 
html[data-theme="light"] {
  color-scheme: light;
  --background: #eaedef;
  --background-secondary: #f3f5f6;
  --foreground: #26272a;
  --surface: #f7f8f8;
  --surface-foreground: #26272a;
  --surface-secondary: #edf1f3;
  --surface-tertiary: #e3e9ed;
  --overlay: #f7f8f8;
  --overlay-foreground: #26272a;
  --default: #e4eaed;
  --default-hover: #dbe3e7;
  --default-foreground: #313235;
  --segment: #edf2f4;
  --segment-foreground: #313235;
  --border: #d1d9de;
  --separator: #dde4e8;
  --field-background: #f5f7f8;
  --field-foreground: #26272a;
  --field-placeholder: #7a7d81;
  --field-border: #d0d9de;
  --muted: #696c72;
  --accent: #ffdb3f;
  --accent-hover: #ffe05d;
  --accent-foreground: #252115;
  --focus: #707b88;
  --link: #4a5c6b;
  --surface-hover: #e9eef1;
  --rule-heading-background: #f3e6b4;
  --rule-heading-border: #e5d39b;
  --rule-heading-foreground: #302a1b;
  --rule-reference-background: #e9eef0;
  --rule-reference-border: #d6dfe4;
  --rule-reference-foreground: #455661;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #ffdb3f;
  --accent-hover: #ffe02e;
  --accent-foreground: #252013;
  --focus: #a9b1bb;
  --rule-heading-background: #ffdb3f;
  --rule-heading-border: #ffe77d;
  --rule-heading-foreground: #282312;
  --rule-reference-background: #373224;
  --rule-reference-border: #504731;
  --rule-reference-foreground: #f4d76b;
}

html[data-theme="light"] body {
  background-image: none !important;
}

 
html[data-theme="light"] .button--primary {
  --button-bg: #2c2d30;
  --button-bg-hover: #414247;
  --button-bg-pressed: #212225;
  --button-fg: #fffefa;
}
html[data-theme="dark"] .button--secondary,
html[data-theme="dark"] .button--tertiary {
  --button-fg: #e4e4e7;
}
html[data-theme="light"] .button--secondary,
html[data-theme="light"] .button--tertiary {
  --button-bg: #e7edf0;
  --button-bg-hover: #dfe7eb;
  --button-bg-pressed: #d5dfe4;
  --button-fg: #333437;
}
html[data-theme="light"] .button--ghost,
html[data-theme="light"] .button--outline {
  --button-bg: transparent;
  --button-bg-hover: #eef2f4;
  --button-bg-pressed: #e3e9ed;
  --button-fg: #38393b;
}
html[data-theme="light"] :is(a, button).bg-accent:not([role="switch"]) {
  background-color: #2c2d30 !important;
  color: #fffefa !important;
}
html[data-theme="light"] :is(a, button).bg-accent:not([role="switch"]):hover {
  background-color: #414247 !important;
}
html[data-theme="light"] [role="switch"] .bg-accent {
  background-color: #4b4c4f !important;
}
html[data-theme="light"] [role="switch"] .bg-\[\#3a3a40\] {
  background-color: #c6c5c0 !important;
}

 
html[data-theme="light"] .bg-accent-soft {
  background-color: #e6ecef !important;
}
html[data-theme="light"] .text-accent-bright {
  color: #43515e !important;
}
html[data-theme="light"] .header-actions > a {
  background-color: rgba(246,248,249,.86) !important;
  color: #36414a !important;
  border: 1px solid #dbe3e7;
}
html[data-theme="light"] .header-actions > a:hover,
html[data-theme="light"] .header-actions > a[aria-current="page"] {
  background-color: #e6edf0 !important;
  border-color: #d0dbe1;
}
@media (min-width: 768px) {
  html[data-theme="light"] #root nav[aria-label="Разделы"] a[aria-current="page"] {
    background-color: rgba(222,230,235,.82) !important;
    color: #26333d !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }
  html[data-theme="light"] #root nav[aria-label="Разделы"] a:not([aria-current="page"]):hover {
    background-color: rgba(237,242,245,.78) !important;
    color: #2b3842 !important;
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }
}
html[data-theme="light"] nav[aria-label="Разделы"] .text-accent-bright {
  color: #27282a !important;
}
html[data-theme="light"] nav[aria-label="Разделы"] .bg-accent-soft {
  background-color: rgba(220,230,235,.88) !important;
}
html[data-theme="light"] button.border-transparent.bg-accent-soft {
  border: 1px solid #d5dde2 !important;
  background-color: #e4ebee !important;
  color: #323336 !important;
}
html[data-theme="light"] :is(.hover\:bg-accent\/20:hover, .hover\:bg-accent\/30:hover) {
  background-color: #e9eff2 !important;
}
html[data-theme="light"] .appearance-toggle:hover {
  background-color: #ebf0f2;
  border-color: #ccd6dc;
}
html[data-theme="light"] .pagination__link[data-active="true"],
html[data-theme="light"] .pagination__link[aria-current="page"] {
  background: #333436;
  color: #fffefa;
}
html[data-theme="light"] .status-chip.text-accent-bright {
  --chip-background: #e6edf0;
  --chip-border: #d5dee3;
  --chip-foreground: #495660;
}

 
.server-rules__heading-label {
  padding: 5px 14px 6px;
  border-radius: 4px;
  color: var(--rule-heading-foreground, #282312) !important;
  background: var(--rule-heading-background, #ffdb3f) !important;
  border: 1px solid var(--rule-heading-border, #ffe77d);
  box-shadow: none !important;
  text-shadow: none !important;
}
.server-rules__heading-number { display: none !important; }
.server-rules__heading { justify-content: center; text-align: center; }
html[data-theme="light"] .server-rules__number { color: #ad4357; }
html[data-theme="dark"] .server-rules__number { color: #d25a70; }
html[data-theme="light"] .server-rules__notes li::marker { color: #b25b6c; }
html[data-theme="dark"] .server-rules__notes li::marker { color: #d2687c; }

 
html[data-theme="light"] .status-chip.text-accent-bright,
html[data-theme="light"] .status-chip.bg-accent-soft {
  background: var(--rule-reference-background) !important;
  border-color: var(--rule-reference-border) !important;
  color: var(--rule-reference-foreground) !important;
}
html[data-theme="dark"] .status-chip.text-accent-bright,
html[data-theme="dark"] .status-chip.bg-accent-soft {
  --chip-background: var(--rule-reference-background);
  --chip-border: var(--rule-reference-border);
  --chip-foreground: var(--rule-reference-foreground);
}
html[data-theme="light"] .server-rules__sanction-value { color: #835e24; }
html[data-theme="dark"] .server-rules__sanction-value { color: #e7c58c; }
html[data-theme="light"] .server-rules__sanction-value--severe { color: #b04357; }
html[data-theme="dark"] .server-rules__sanction-value--severe { color: #ec8395; }
html[data-theme="light"] .server-rules__help a { color: #715720; }
html[data-theme="dark"] .server-rules__help a { color: #f4d571; }

 
html[data-theme="light"] :is(button, a[href], input, textarea, select, [role="switch"], [role="button"], [role="tab"]):focus-visible,
html[data-theme="light"] :is(button, a[href], [role="switch"], [role="button"], [role="tab"])[data-focus-visible="true"] {
  --tw-ring-color: #707b88 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-inset-ring-shadow: 0 0 #0000 !important;
  outline: 2px solid #707b88;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(112, 123, 136, .12);
}
html[data-theme="dark"] :is(button, a[href], input, textarea, select, [role="switch"], [role="button"], [role="tab"]):focus-visible,
html[data-theme="dark"] :is(button, a[href], [role="switch"], [role="button"], [role="tab"])[data-focus-visible="true"] {
  --tw-ring-color: #a9b1bb !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-inset-ring-shadow: 0 0 #0000 !important;
  outline: 2px solid #a9b1bb;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(169, 177, 187, .12);
}
html[data-theme="light"] :is(button, a)[aria-disabled="true"],
html[data-theme="light"] :is(button, a):disabled {
  opacity: .48;
}

 
html.appearance-transition :is(body, header, nav, main, .bg-card, .bg-default, .bg-overlay) {
  transition: none !important;
}
@media (max-width: 640px) {
  .server-rules__heading-label { padding: 5px 10px 6px; }
  html[data-theme="light"] nav[aria-label="Разделы"] {
    background-color: rgba(237,242,245,.88) !important;
    backdrop-filter: blur(14px) saturate(108%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(108%) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .server-rules__heading-label,
  .header-actions > a,
  .appearance-toggle { transition: none !important; }
}
