MediaWiki:Common.css: различия между версиями

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показано 56 промежуточных версий 2 участников)
Строка 1: Строка 1:
/* cyrillic-ext */
:root {
@font-face {
  /* Primitive Color Tokens */
   font-family: 'Noto Sans Light';
  --color-white: rgba(255, 255, 255, 1);
   font-style: normal;
  --color-black: rgba(0, 0, 0, 1);
   font-weight: 100;
  --color-cream-50: rgba(252, 252, 249, 1);
   font-display: swap;
  --color-cream-100: rgba(255, 255, 253, 1);
   src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRPQ_m87A.woff2) format('woff2');
  --color-gray-200: rgba(245, 245, 245, 1);
   unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);
 
  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;
 
  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */
 
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
 
  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
 
  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
 
  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
   --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
   --font-weight-semibold: 550;
   --font-weight-bold: 600;
  --line-height-tight: 1.2;
   --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;
 
  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
 
  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
 
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
 
  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
 
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}
}
/* cyrillic */
 
@font-face {
/* Dark mode colors */
   font-family: 'Noto Sans Light';
@media (prefers-color-scheme: dark) {
  font-style: normal;
   :root {
  font-weight: 100;
    /* RGB versions for opacity control (Dark Mode) */
  font-display: swap;
    --color-gray-400-rgb: 119, 124, 124;
  src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRGQ_m87A.woff2) format('woff2');
    --color-teal-300-rgb: 50, 184, 198;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    --color-gray-300-rgb: 167, 169, 169;
}
    --color-gray-200-rgb: 245, 245, 245;
/* latin-ext */
 
@font-face {
    /* Background color tokens (Dark Mode) */
  font-family: 'Noto Sans Light';
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  font-style: normal;
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  font-weight: 100;
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  font-display: swap;
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRMQ_m87A.woff2) format('woff2');
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
}
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
/* latin */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
@font-face {
   
  font-family: 'Noto Sans Light';
    /* Semantic Color Tokens (Dark Mode) */
  font-style: normal;
    --color-background: var(--color-charcoal-700);
  font-weight: 100;
    --color-surface: var(--color-charcoal-800);
  font-display: swap;
    --color-text: var(--color-gray-200);
  src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRCQ_k.woff2) format('woff2');
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    --color-primary: var(--color-teal-300);
}
     --color-primary-hover: var(--color-teal-400);
@font-face {
     --color-primary-active: var(--color-teal-800);
  font-family: 'Oswald';
     --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  font-style: normal;
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  font-weight: 400;
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  font-display: swap;
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  src: url(https://fonts.gstatic.com/s/oswald/v40/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUJiZTaR.woff2) format('woff2');
    --color-error: var(--color-red-400);
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    --color-success: var(--color-teal-300);
}
    --color-warning: var(--color-orange-400);
@font-face {
    --color-info: var(--color-gray-300);
    font-family: 'Boxfont Round';
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        src: url('/assets/fonts/boxfont-round/f3507eaadc95584e7358703d74e793ea/324a92fc76117885a667ae8af2be25ab/BoxfontRoundRegular.ttf') format('truetype');
    --color-btn-primary-text: var(--color-slate-900);
     font-weight: normal;
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
     font-style: normal;
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
     }
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
@font-face{
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
font-family:'noto sans';
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
font-style:normal;
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
font-weight:400;
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
src:local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Regular.woff) format('woff')
 
}
    /* Common style patterns - updated for dark mode */
@font-face{font-family:'noto sans';
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
font-style:italic;
    --focus-outline: 2px solid var(--color-primary);
font-weight:400;
    --status-bg-opacity: 0.15;
src:local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Italic.woff) format('woff')
    --status-border-opacity: 0.25;
}
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
@font-face{
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
font-family:'noto sans';
 
font-style:normal;
    /* RGB versions for dark mode */
font-weight:700;
    --color-success-rgb: var(--color-teal-300-rgb);
src:local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Bold.woff) format('woff')
    --color-error-rgb: var(--color-red-400-rgb);
}
    --color-warning-rgb: var(--color-orange-400-rgb);
@font-face{font-family:'noto sans';
    --color-info-rgb: var(--color-gray-300-rgb);
font-style:italic;
  }
font-weight:700;
src:local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-BoldItalic.woff) format('woff')
}
/* symbols */
@font-face {
  font-family: 'Noto Sans Symbols';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8QA_9Edkw.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F10C, U+1F110-1F16C, U+1F170-1F190, U+1F19B-1F1AC, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F321-1F32C, U+1F336, U+1F378, U+1F37D, U+1F393-1F39F, U+1F3A7, U+1F3AC-1F3AE, U+1F3C2, U+1F3C4, U+1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4DA, U+1F4DF, U+1F4E4-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50A, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F579, U+1F57B-1F594, U+1F597-1F5A3, U+1F5A5-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CB, U+1F6CD-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8B1, U+1F93B, U+1F946, U+1FA00-1FA6F, U+1FA70-1FA74, U+1FA78-1FA7A, U+1FA80-1FA86, U+1FA90-1FAA8, U+1FAB0-1FAB6, U+1FAC0-1FAC2, U+1FAD0-1FAD6, U+1FB00-1FBFF;
}
/* latin-ext */
@font-face {
  font-family: 'Noto Sans Symbols';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8QY_9Edkw.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Sans Symbols';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8Qbf9E.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
cite,
dfn {
font-style: inherit
}
}


q {
/* Data attribute for manual theme switching */
quotes: '"' '"' "'" "'"
[data-color-scheme="dark"] {
}
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;


code {
  /* Colorful background palette - Dark Mode */
background-color: #303037;  
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
border-color: #303037;
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
color: #d3d3d3;
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
}
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
 
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);


blockquote {
  /* Common style patterns - updated for dark mode */
overflow: hidden;
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
margin: 1em 0;
  --focus-outline: 2px solid var(--color-primary);
padding: 0 40px
  --status-bg-opacity: 0.15;
}
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");


small {
  /* RGB versions for dark mode */
font-size: 85%
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}
}


img {
[data-color-scheme="light"] {
    image-rendering: optimizeSpeed;
  /* RGB versions for opacity control (light mode) */
    image-rendering: -webkit-optimize-contrast;
  --color-brown-600-rgb: 94, 82, 64;
    image-rendering: optimize-contrast;
  --color-teal-500-rgb: 33, 128, 141;
    image-rendering: -moz-crisp-edges;
  --color-slate-900-rgb: 19, 52, 59;
    image-rendering: -o-crisp-edges;
 
    image-rendering: crisp-edges;
  /* Semantic Color Tokens (Light Mode) */
    image-rendering: pixelated;
  --color-background: var(--color-cream-50);
    -ms-interpolation-mode: nearest-neighbor;
  --color-surface: var(--color-cream-100);
}
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);


.mw-body-content sub,
  /* RGB versions for light mode */
.mw-body-content sup,
  --color-success-rgb: var(--color-teal-500-rgb);
span.reference {
  --color-error-rgb: var(--color-red-500-rgb);
font-size: 80%
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}
}


.ns-talk .mw-body-content dd {
/* Base styles */
margin-top: 0.4em;
html {
margin-bottom: 0.4em
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
}


#interwiki-completelist {
body {
font-weight: bold
  margin: 0;
  padding: 0;
}
}


.biglink {
*,
font-family: "Oswald";
*::before,
font-style: oblique 10deg;
*::after {
font-variant-caps: small-caps;
  box-sizing: inherit;
    text-shadow: #1b1b1f 1px 2px, #595959dd 2px 2px 1px
}
}


.client-js .mw-special-Watchlist #watchlist-message,
/* Typography */
.client-js .collapsible:not(.mw-made-collapsible).collapsed>tbody>tr:not(:first-child),
h1,
#editpage-specialchars {
h2,
display: none
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}
}


.mw-rcfilters-enabled .mw-specialpage-summary {
h1 {
margin-top: 1em
  font-size: var(--font-size-4xl);
}
}
 
h2 {
.citation:target {
  font-size: var(--font-size-3xl);
background-color: rgba(0, 127, 255, 0.133)
}
}
 
h3 {
.citation {
  font-size: var(--font-size-2xl);
word-wrap: break-word
}
}
 
h4 {
ol.references {
  font-size: var(--font-size-xl);
font-size: 90%;
margin-bottom: 0.5em
}
}
 
h5 {
.hlist dl,
  font-size: var(--font-size-lg);
.hlist ol,
.hlist ul {
margin: 0;
padding: 0
}
}
 
h6 {
.hlist dd,
  font-size: var(--font-size-md);
.hlist dt,
.hlist li {
margin: 0;
display: inline
}
}


.hlist.inline,
p {
.hlist.inline dl,
  margin: 0 0 var(--space-16) 0;
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
display: inline
}
}


.hlist .mw-empty-li {
a {
display: none
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
}


.hlist dt:after {
a:hover {
content: ":"
  color: var(--color-primary-hover);
}
}


.hlist dd:after,
code,
.hlist li:after {
pre {
content: " · ";
  font-family: var(--font-family-mono);
font-weight: bold
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}
}


.hlist dd:last-child:after,
code {
.hlist dt:last-child:after,
  padding: var(--space-1) var(--space-4);
.hlist li:last-child:after {
content: none
}
}


.hlist dd dd:first-child:before,
pre {
.hlist dd dt:first-child:before,
  padding: var(--space-16);
.hlist dd li:first-child:before,
  margin: var(--space-16) 0;
.hlist dt dd:first-child:before,
  overflow: auto;
.hlist dt dt:first-child:before,
  border: 1px solid var(--color-border);
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
content: " (";
font-weight: normal
}
}


.hlist dd dd:last-child:after,
pre code {
.hlist dd dt:last-child:after,
  background: none;
.hlist dd li:last-child:after,
  padding: 0;
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
content: ")";
font-weight: normal
}
}


.hlist ol {
/* Buttons */
counter-reset: listitem
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}
}


.hlist ol>li {
.btn:focus-visible {
counter-increment: listitem
  outline: none;
  box-shadow: var(--focus-ring);
}
}


.hlist ol>li:before {
.btn--primary {
content: " " counter(listitem) "\a0"
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}
}


.hlist dd ol>li:first-child:before,
.btn--primary:hover {
.hlist dt ol>li:first-child:before,
  background: var(--color-primary-hover);
.hlist li ol>li:first-child:before {
content: " (" counter(listitem) "\a0"
}
}


.plainlist ol,
.btn--primary:active {
.plainlist ul {
  background: var(--color-primary-active);
line-height: inherit;
list-style: none none;
margin: 0
}
}


.plainlist ol li,
.btn--secondary {
.plainlist ul li {
  background: var(--color-secondary);
margin-bottom: 0
  color: var(--color-text);
}
}


.navbox {
.btn--secondary:hover {
box-sizing: border-box;
  background: var(--color-secondary-hover);
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0
}
}


.navbox .navbox {
.btn--secondary:active {
margin-top: 0
  background: var(--color-secondary-active);
}
}


.navbox+.navbox {
.btn--outline {
margin-top: -1px
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
}


.navbox-inner,
.btn--outline:hover {
.navbox-subgroup {
  background: var(--color-secondary);
width: 100%
}
}


.navbox-group,
.btn--sm {
.navbox-title,
  padding: var(--space-4) var(--space-12);
.navbox-abovebelow {
  font-size: var(--font-size-sm);
padding: 0.25em 1em;
  border-radius: var(--radius-sm);
line-height: 1.5em;
text-align: center
}
}


th.navbox-group {
.btn--lg {
white-space: nowrap;
  padding: var(--space-10) var(--space-20);
text-align: right
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}
}


.navbox,
.btn--full-width {
.navbox-subgroup {
  width: 100%;
background-color: #fdfdfd
}
}


.navbox-list {
.btn:disabled {
line-height: 1.5em;
  opacity: 0.5;
border-color: #fdfdfd
  cursor: not-allowed;
}
}


tr+tr>.navbox-abovebelow,
/* Form elements */
tr+tr>.navbox-group,
.form-control {
tr+tr>.navbox-image,
  display: block;
tr+tr>.navbox-list {
  width: 100%;
border-top: 2px solid #fdfdfd
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
}


.navbox th,
textarea.form-control {
.navbox-title {
  font-family: var(--font-family-base);
background-color: #ccccff
  font-size: var(--font-size-base);
}
}


.navbox-abovebelow,
select.form-control {
th.navbox-group,
  padding: var(--space-8) var(--space-12);
.navbox-subgroup .navbox-title {
  -webkit-appearance: none;
background-color: #ddddff
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}
}


.navbox-subgroup .navbox-group,
/* Add a dark mode specific caret */
.navbox-subgroup .navbox-abovebelow {
@media (prefers-color-scheme: dark) {
background-color: #e6e6ff
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}
}


.navbox-even {
/* Also handle data-color-scheme */
background-color: #f7f7f7
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}
}


.navbox-odd {
[data-color-scheme="light"] select.form-control {
background-color: transparent
  background-image: var(--select-caret-light);
}
}


.navbox .hlist td dl,
.form-control:focus {
.navbox .hlist td ol,
  border-color: var(--color-primary);
.navbox .hlist td ul,
  outline: var(--focus-outline);
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0
}
}


.mw-parser-output .mw-collapsible-toggle {
.form-label {
font-weight: normal;
  display: block;
text-align: right;
  margin-bottom: var(--space-8);
padding-right: 0.2em;
  font-weight: var(--font-weight-medium);
padding-left: 0.2em
  font-size: var(--font-size-sm);
}
}


.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
.form-group {
float: left;
  margin-bottom: var(--space-16);
text-align: left
}
}


.infobox {
/* Card component */
border: 1px solid #a2a9b1;
.card {
border-spacing: 3px;
  background-color: var(--color-surface);
background-color: #f8f9fa;
  border-radius: var(--radius-lg);
color: black;
  border: 1px solid var(--color-card-border);
margin: 0.5em 0 0.5em 1em;
  box-shadow: var(--shadow-sm);
padding: 0.2em;
  overflow: hidden;
float: right;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em
}
}


.infobox-header,
.card:hover {
.infobox-label,
  box-shadow: var(--shadow-md);
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
.infobox th,
.infobox td {
vertical-align: top
}
}


.infobox-label,
.card__body {
.infobox-data,
  padding: var(--space-16);
.infobox th,
.infobox td {
text-align: left
}
}


.infobox .infobox-above,
.card__header,
.infobox .infobox-title,
.card__footer {
.infobox caption {
  padding: var(--space-16);
font-size: 125%;
  border-bottom: 1px solid var(--color-card-border-inner);
font-weight: bold;
text-align: center
}
}


.infobox-title,
/* Status indicators - simplified with CSS variables */
.infobox caption {
.status {
padding: 0.2em
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}
}


.infobox .infobox-header,
.status--success {
.infobox .infobox-subheader,
  background-color: rgba(
.infobox .infobox-image,
    var(--color-success-rgb, 33, 128, 141),
.infobox .infobox-full-data,
    var(--status-bg-opacity)
.infobox .infobox-below {
  );
text-align: center
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}
}


.infobox .infobox-navbar {
.status--error {
text-align: right
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}
}


.wikitable.plainrowheaders th[scope=row] {
.status--warning {
font-weight: normal;
  background-color: rgba(
text-align: left
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}
}


.wikitable td ul,
.status--info {
.wikitable td ol,
  background-color: rgba(
.wikitable td dl {
    var(--color-info-rgb, 98, 108, 113),
text-align: left
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}
}


table.mw-hiero-table td {
/* Container layout */
vertical-align: middle
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}
}


.mw-parser-output a[href$=".pdf"].external,
@media (min-width: 640px) {
.mw-parser-output a[href*=".pdf?"].external,
  .container {
.mw-parser-output a[href*=".pdf#"].external,
    max-width: var(--container-sm);
.mw-parser-output a[href$=".PDF"].external,
  }
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) no-repeat right;
padding-right: 18px
}
}
 
@media (min-width: 768px) {
.messagebox {
  .container {
border: 1px solid #a2a9b1;
    max-width: var(--container-md);
background-color: #f8f9fa;
  }
width: 80%;
margin: 0 auto 1em auto;
padding: .2em
}
}
 
@media (min-width: 1024px) {
.messagebox.merge {
  .container {
border: 1px solid #c0b8cc;
    max-width: var(--container-lg);
background-color: #f0e5ff;
  }
text-align: center
}
}
 
@media (min-width: 1280px) {
.messagebox.cleanup {
  .container {
border: 1px solid #9f9fff;
    max-width: var(--container-xl);
background-color: #efefff;
  }
text-align: center
}
}


.messagebox.standard-talk {
/* Utility classes */
border: 1px solid #c0c090;
.flex {
background-color: #f8eaba;
  display: flex;
margin: 4px auto
}
}
 
.flex-col {
.mbox-inside .standard-talk {
  flex-direction: column;
border: 1px solid #c0c090;
background-color: #f8eaba;
width: 100%;
margin: 2px 0;
padding: 2px
}
}
 
.items-center {
.messagebox.small {
  align-items: center;
width: 238px;
font-size: 85%;
float: right;
clear: both;
margin: 0 0 1em 1em;
line-height: 1.25em
}
}
 
.justify-center {
.messagebox.small-talk {
  justify-content: center;
width: 238px;
font-size: 85%;
float: right;
clear: both;
margin: 0 0 1em 1em;
line-height: 1.25em;
background-color: #f8eaba
}
}
 
.justify-between {
th.mbox-text,
  justify-content: space-between;
td.mbox-text {
border: none;
padding: 0.25em 0.9em;
width: 100%
}
}
 
.gap-4 {
td.mbox-image {
  gap: var(--space-4);
border: none;
padding: 2px 0 2px 0.9em;
text-align: center
}
}
 
.gap-8 {
td.mbox-imageright {
  gap: var(--space-8);
border: none;
padding: 2px 0.9em 2px 0;
text-align: center
}
}
 
.gap-16 {
td.mbox-empty-cell {
  gap: var(--space-16);
border: none;
padding: 0;
width: 1px
}
}


table.ambox {
.m-0 {
margin: 0 10%;
  margin: 0;
border: 1px solid #a2a9b1;
border-left: 10px solid #36c;
background-color: #fbfbfb;
box-sizing: border-box
}
}
 
.mt-8 {
table.ambox+table.ambox,
  margin-top: var(--space-8);
table.ambox+.mw-empty-elt+table.ambox {
margin-top: -1px
}
}
 
.mb-8 {
.ambox th.mbox-text,
  margin-bottom: var(--space-8);
.ambox td.mbox-text {
padding: 0.25em 0.5em
}
}
 
.mx-8 {
.ambox td.mbox-image {
  margin-left: var(--space-8);
padding: 2px 0 2px 0.5em
  margin-right: var(--space-8);
}
}
 
.my-8 {
.ambox td.mbox-imageright {
  margin-top: var(--space-8);
padding: 2px 0.5em 2px 0
  margin-bottom: var(--space-8);
}
}


table.ambox-notice {
.p-0 {
border-left: 10px solid #36c
  padding: 0;
}
}
 
.py-8 {
table.ambox-speedy {
  padding-top: var(--space-8);
border-left: 10px solid #b32424;
  padding-bottom: var(--space-8);
background-color: #fee7e6
}
}
 
.px-8 {
table.ambox-delete {
  padding-left: var(--space-8);
border-left: 10px solid #b32424
  padding-right: var(--space-8);
}
}
 
.py-16 {
table.ambox-content {
  padding-top: var(--space-16);
border-left: 10px solid #f28500
  padding-bottom: var(--space-16);
}
}
 
.px-16 {
table.ambox-style {
  padding-left: var(--space-16);
border-left: 10px solid #fc3
  padding-right: var(--space-16);
}
}


table.ambox-move {
.block {
border-left: 10px solid #9932cc
  display: block;
}
}
 
.hidden {
table.ambox-protection {
  display: none;
border-left: 10px solid #a2a9b1
}
}


table.imbox {
/* Accessibility */
margin: 4px 10%;
.sr-only {
border-collapse: collapse;
  position: absolute;
border: 3px solid #36c;
  width: 1px;
background-color: #fbfbfb;
  height: 1px;
box-sizing: border-box
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
}


.imbox .mbox-text .imbox {
:focus-visible {
margin: 0 -0.5em;
  outline: var(--focus-outline);
display: block
  outline-offset: 2px;
}
}


.mbox-inside .imbox {
/* Dark mode specifics */
margin: 4px
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}
}


table.imbox-notice {
@font-face {
border: 3px solid #36c
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}
}


table.imbox-speedy {
@font-face {
border: 3px solid #b32424;
  font-family: 'FKGroteskNeue';
background-color: #fee7e6
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}
}


table.imbox-delete {
/* Remove custom color variables and use design system */
border: 3px solid #b32424
:root {
  /* Legacy space theme variables mapped to design system */
  --space-primary: var(--color-primary);
  --space-secondary: var(--color-primary-hover);
  --space-accent: var(--color-primary-active);
  --space-dark: var(--color-background);
  --space-darker: var(--color-surface);
  --space-purple: var(--color-surface);
  --space-blue: var(--color-surface);
  --space-orange: var(--color-warning);
  --space-glow: rgba(var(--color-teal-500-rgb), 0.6);
  --space-text: var(--color-text);
  --space-text-bright: var(--color-text);
  --space-bg-primary: var(--color-surface);
  --space-bg-secondary: var(--color-surface);
  --space-border: var(--color-border);
}
}


table.imbox-content {
/* Базовые стили */
border: 3px solid #f28500
* {
  box-sizing: border-box;
}
}


table.imbox-style {
body {
border: 3px solid #fc3
  background: var(--color-background);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-tight);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
}


table.imbox-move {
/* Основной контейнер MediaWiki */
border: 3px solid #9932cc
.mw-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32);
  position: relative;
  overflow: hidden;
}
}


table.imbox-protection {
.mw-body::before {
border: 3px solid #a2a9b1
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
}
}


table.imbox-license {
.mw-body-content {
border: 3px solid #88a;
  font-family: var(--font-family-base);
background-color: #f7f8ff
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


table.imbox-featured {
/* Исправление переполнения текста */
border: 3px solid #cba135
.mw-body-content p {
  margin: var(--space-20) 0;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


table.cmbox {
/* Улучшенный код */
margin: 3px 10%;
code {
border-collapse: collapse;
  background: var(--color-secondary);
border: 1px solid #a2a9b1;
  border: 1px solid var(--color-border);
background-color: #dfe8ff;
  color: var(--color-text);
box-sizing: border-box
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: 90%;
  font-family: var(--font-family-mono);
  box-shadow: var(--shadow-inset-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  word-break: break-all;
  white-space: pre-wrap;
}
}


table.cmbox-notice {
pre {
background-color: #d8e8ff
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  overflow-x: auto;
  box-shadow: var(--shadow-inset-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  letter-spacing: 0.5px;
  position: relative;
}
}


table.cmbox-speedy {
pre::before {
margin-top: 4px;
  content: '';
margin-bottom: 4px;
  position: absolute;
border: 4px solid #b32424;
  top: 0;
background-color: #ffdbdb
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
}


table.cmbox-delete {
/* Улучшенные цитаты */
background-color: #ffdbdb
blockquote {
  overflow: hidden;
  margin: var(--space-32) 0;
  padding: var(--space-32) var(--space-32);
  border-left: 5px solid var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  font-style: italic;
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}
}


table.cmbox-content {
blockquote::before {
background-color: #ffe7ce
  content: '"';
  font-size: 5em;
  color: rgba(var(--color-primary-rgb), 0.3);
  position: absolute;
  top: -15px;
  left: 15px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
}
}


table.cmbox-style {
/* Улучшенные изображения */
background-color: #fff9db
img {
  image-rendering: optimizeSpeed;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}
}


table.cmbox-move {
img:hover {
background-color: #e4d8ff
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}
}


table.cmbox-protection {
/* Улучшенные ссылки */
background-color: #efefe1
a,
a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  font-weight: var(--font-weight-medium);
  word-wrap: break-word;
}
}


table.ombox {
a:not(.image):not(.thumbimage):not(.mw-file-description)::after {
margin: 4px 10%;
  content: '';
border-collapse: collapse;
  position: absolute;
border: 1px solid #a2a9b1;
  bottom: -3px;
background-color: #f8f9fa;
  left: 0;
box-sizing: border-box
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-normal) var(--ease-standard);
  border-radius: 2px;
}
}


table.ombox-notice {
a:not(.image):not(.thumbimage):not(.mw-file-description):hover::after {
border: 1px solid #a2a9b1
  width: 100%;
}
}


table.ombox-speedy {
a:hover,
border: 2px solid #b32424;
a:visited:hover {
background-color: #fee7e6
  color: var(--color-primary-hover);
  text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.7);
  transform: translateX(2px);
}
}


table.ombox-delete {
/* Исключения для изображений */
border: 2px solid #b32424
.thumb a::after,
.gallery a::after,
a[href*="File:"]::after,
a[href*="Файл:"]::after,
a[title*="File:"]::after,
a[title*="Файл:"]::after {
  display: none !important;
}
}


table.ombox-content {
/* Улучшенные таблицы */
border: 1px solid #f28500
.wikitable {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-32) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  font-family: var(--font-family-base);
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}
}


table.ombox-style {
.wikitable::before {
border: 1px solid #fc3
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


table.ombox-move {
.wikitable > tr > th,
border: 1px solid #9932cc
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  border: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-20);
  transition: all var(--duration-fast) var(--ease-standard);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  min-width: 100px;
}
}


table.ombox-protection {
.wikitable > * > tr > th {
border: 2px solid #a2a9b1
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-sm);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}
}


table.tmbox {
.wikitable > * > tr > th::after {
margin: 4px 10%;
  content: '';
border-collapse: collapse;
  position: absolute;
border: 1px solid #c0c090;
  bottom: 0;
background-color: #f8eaba;
  left: 0;
min-width: 80%;
  right: 0;
box-sizing: border-box
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
}


.tmbox.mbox-small {
.wikitable > * > tr:hover > td {
min-width: 0
  background: var(--color-secondary-hover);
  transform: scale(1.01);
}
}


.mediawiki .mbox-inside .tmbox {
/* Улучшенный поиск */
margin: 2px 0;
#simpleSearch {
width: 100%
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  position: relative;
  overflow: hidden;
}
}


.mbox-inside .tmbox.mbox-small {
#simpleSearch::before {
line-height: 1.5em;
  content: '';
font-size: 100%
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover), var(--color-primary));
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
  z-index: -1;
}
}


table.tmbox-speedy {
#simpleSearch:focus-within::before {
border: 2px solid #b32424;
  opacity: 1;
background-color: #fee7e6
}
}


table.tmbox-delete {
#simpleSearch:focus-within {
border: 2px solid #b32424
  border-color: transparent;
  box-shadow: var(--focus-ring);
  transform: scale(1.02);
}
}


table.tmbox-content {
#searchInput {
border: 2px solid #f28500
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: var(--space-16) var(--space-24);
  font-size: var(--font-size-base);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
}
}


table.tmbox-style {
#searchInput::placeholder {
border: 2px solid #fc3
  color: var(--color-text-secondary);
  opacity: 0.8;
  font-style: italic;
}
}


table.tmbox-move {
/* Улучшенные вкладки */
border: 2px solid #9932cc
.vector-menu-tabs {
  background: transparent;
}
}


table.tmbox-protection,
.vector-menu-tabs li {
table.tmbox-notice {
  background: var(--color-surface);
border: 1px solid #c0c090
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-right: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
}


table.fmbox {
.vector-menu-tabs li::before {
clear: both;
  content: '';
margin: 0.2em 0;
  position: absolute;
width: 100%;
  top: -1px;
border: 1px solid #a2a9b1;
  left: -1px;
background-color: #f8f9fa;
  right: -1px;
box-sizing: border-box
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
}


table.fmbox-system {
.vector-menu-tabs li:hover::before {
background-color: #191970
  opacity: 1;
}
}


table.fmbox-warning {
.vector-menu-tabs li:hover {
border: 1px solid #bb7070;
  background: var(--color-secondary);
background-color: #ffdbdb
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
}


table.fmbox-editnotice {
.vector-menu-tabs .selected {
background-color: transparent
  background: var(--color-secondary-active);
  border-color: var(--color-primary);
  box-shadow: 0 -6px 20px rgba(var(--color-primary-rgb), 0.5);
}
}


div.mw-warning-with-logexcerpt,
.vector-menu-tabs .selected::before {
div.mw-lag-warn-high,
  opacity: 1;
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box
}
}


.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt {
.vector-menu-tabs .selected a,
border-color: #fc3;
.vector-menu-tabs .selected a:visited {
background-color: #fef6e7
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
}


html body.mediawiki .mbox-small {
/* Улучшенная боковая панель */
clear: right;
#mw-site-navigation .sidebar-chunk,
float: right;
#mw-related-navigation .sidebar-chunk,
margin: 4px 0 4px 1em;
.portlet,
box-sizing: border-box;
.pBody,
width: 238px;
#mw-panel,
font-size: 88%;
.mw-panel,
line-height: 1.25em
#sidebar,
.sidebar,
.vector-menu-portal,
.vector-legacy-sidebar,
#p-navigation,
#p-tb,
#p-lang {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-32);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
}


html body.mediawiki .mbox-small-left {
.vector-menu-portal h3,
margin: 4px 1em 4px 0;
#mw-panel .portal h3,
box-sizing: border-box;
.sidebar h3 {
overflow: hidden;
  background: var(--color-secondary);
width: 238px;
  color: var(--color-text);
border-collapse: collapse;
  padding: var(--space-16) var(--space-20);
font-size: 88%;
  margin: 0;
line-height: 1.25em
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: var(--font-size-sm);
  position: relative;
}
}


.compact-ambox table .mbox-image,
.vector-menu-portal h3::after,
.compact-ambox table .mbox-imageright,
#mw-panel .portal h3::after,
.compact-ambox table .mbox-empty-cell {
.sidebar h3::after {
display: none
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
}


.compact-ambox table.ambox {
.vector-menu-portal .vector-menu-content ul li a,
border: none;
#mw-panel .portal .body ul li a {
border-collapse: collapse;
  color: var(--color-primary);
background-color: transparent;
  padding: var(--space-16) var(--space-20);
margin: 0 0 0 1.6em !important;
  display: block;
padding: 0 !important;
  transition: all var(--duration-normal) var(--ease-standard);
width: auto;
  border-radius: var(--radius-sm);
display: block
  margin: var(--space-4) var(--space-8);
  position: relative;
  word-wrap: break-word;
}
}


body.mediawiki .compact-ambox table.mbox-small-left {
.vector-menu-portal .vector-menu-content ul li a::before,
font-size: 100%;
#mw-panel .portal .body ul li a::before {
width: auto;
  content: '';
margin: 0
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-fast) var(--ease-standard);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
}


.compact-ambox table .mbox-text {
.vector-menu-portal .vector-menu-content ul li a:hover::before,
padding: 0 !important;
#mw-panel .portal .body ul li a:hover::before {
margin: 0 !important
  width: 4px;
}
}


.compact-ambox table .mbox-text-span {
.vector-menu-portal .vector-menu-content ul li a:hover,
display: list-item;
#mw-panel .portal .body ul li a:hover {
line-height: 1.5em;
  background: var(--color-secondary);
list-style-type: square;
  color: var(--color-primary-hover);
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg)
  transform: translateX(10px);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.compact-ambox .hide-when-compact {
/* Улучшенные формы */
display: none
.mw-editform #wpTextbox1,
textarea {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  padding: var(--space-32);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  resize: vertical;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
  word-wrap: break-word;
}
}


.nounderlines a,
.mw-editform #wpTextbox1:focus,
.IPA a:link,
textarea:focus {
.IPA a:visited {
  border-color: var(--color-primary);
text-decoration: none !important
  outline: var(--focus-outline);
}
}


.nowrap,
/* Улучшенные кнопки */
.nowraplinks a {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button {
white-space: nowrap
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-16) var(--space-24);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-family-base);
}
}


.wrap,
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button::before {
.wraplinks a {
  content: '';
white-space: normal
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
}


#wpUploadDescription {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover::before {
height: 13em
  left: 100%;
}
}


.thumbinner {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
min-width: 100px;
  background: var(--color-secondary);
background: #303037;
  border-color: var(--color-primary);
border: solid #37373e
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.thumbinner .thumbimage, .thumbborder {
/* Улучшенные скроллбары */
border: solid 1px #37373e
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
}


#mw-subcategories,
::-webkit-scrollbar-track {
#mw-pages,
  background: var(--color-surface);
#mw-category-media,
  border-radius: var(--radius-base);
#filehistory,
  border: 1px solid var(--color-border);
#wikiPreview,
#wikiDiff {
clear: both
}
}


.wpb .wpb-header {
::-webkit-scrollbar-thumb {
display: none
  background: var(--color-border);
  border-radius: var(--radius-base);
  border: 2px solid var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
}
}


.wpbs-inner .wpb .wpb-header {
::-webkit-scrollbar-thumb:hover {
display: table-row
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.wpbs-inner .wpb-outside {
::-webkit-scrollbar-corner {
display: none
  background: var(--color-surface);
}
}


.mw-tag-markers {
/* Скрытие скроллбаров для Firefox */
font-style: italic;
* {
font-size: 90%
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
}


.checkuser-show,
/* Заголовки */
.sysop-show,
h1, h2, h3, h4, h5, h6 {
.abusefilter-show,
  color: var(--color-text);
.abusefilter-helper-show,
  font-family: var(--font-family-base);
.patroller-show,
  font-weight: var(--font-weight-semibold);
.templateeditor-show,
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
.extendedmover-show,
  border-bottom: 3px solid var(--color-border);
.extendedconfirmed-show,
  padding-bottom: var(--space-12);
.autoconfirmed-show,
  margin-top: var(--space-32);
.user-show {
  position: relative;
display: none
  letter-spacing: var(--letter-spacing-tight);
  word-wrap: break-word;
}
}


.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
.ve-ui-mwNoticesPopupTool-item .mbox-image,
  content: '';
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
  position: absolute;
display: none !important
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 3px;
}
}


ul.permissions-errors>li {
h1 {
list-style: none none
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}
}


ul.permissions-errors {
h2 {
margin: 0
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}
}


span.texhtml {
h3 {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
  font-size: var(--font-size-2xl);
font-size: 118%;
  font-weight: var(--font-weight-semibold);
line-height: 1;
white-space: nowrap;
-moz-font-feature-settings: "lnum", "tnum", "kern" 0;
-webkit-font-feature-settings: "lnum", "tnum", "kern" 0;
font-feature-settings: "lnum", "tnum", "kern" 0;
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none
}
}


span.texhtml span.texhtml {
h4 {
font-size: 100%
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}
}


span.mwe-math-mathml-inline {
h5 {
font-size: 118%
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}
}


.mwe-math-fallback-image-display,
h6 {
.mwe-math-mathml-display {
  font-size: var(--font-size-base);
margin-left: 1.6em !important;
  font-weight: var(--font-weight-medium);
margin-top: 0.6em;
margin-bottom: 0.6em
}
}


.mwe-math-mathml-display math {
/* Первый заголовок страницы */
display: inline
.firstHeading {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-16);
  text-align: center;
  word-wrap: break-word;
}
}


.k-player .k-attribution {
/* Личное меню */
visibility: hidden
#p-personal ul li a {
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  margin: 0 var(--space-4);
  font-weight: var(--font-weight-medium);
}
}


.PopUpMediaTransform a .play-btn-large {
#p-personal ul li a:hover {
margin: 0;
  background: var(--color-secondary);
top: auto;
  color: var(--color-primary-hover);
right: auto;
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
bottom: 0;
  transform: translateY(-2px);
left: 0
}
}


.gallerybox .thumb img {
/* Выпадающие меню */
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat
.vector-menu-dropdown .vector-menu-content {
}
  background: var(--color-surface);
.ns-0 .gallerybox .thumb img,
  border: 2px solid var(--color-border);
.ns-2 .gallerybox .thumb img,
  border-radius: var(--radius-md);
.ns-100 .gallerybox .thumb img,
  box-shadow: var(--shadow-lg);
.nochecker .gallerybox .thumb img {
  padding: var(--space-16);
background-image: none
  backdrop-filter: blur(15px);
}
}
}


/* Скрытие элементов */
#pt-createaccount,
#site-tools,
.flaggedrevs_draft_synced,
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
.flaggedrevs_stable_synced,
#t-upload,
#t-upload {
.mw-special-Book #coll-downloadbox {
  display: none;
display: none
}
}


#site-tools {
/* Ссылки на источники */
display: none !important;
.reference {
  background-color: transparent;
}
}


span.comment {
.references li:target,
overflow-wrap: break-word
sup.reference:target {
  background: var(--color-secondary-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
}
}


#mw-page-base {
/* Футер */
background: #1b1b1f;
#footer {
color: lightgrey;
  background: var(--color-surface);
border: #1b1b1f
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: var(--space-32);
  padding: var(--space-32);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  position: relative;
}
}


/** Хуета ебаная сука блядь
#footer::before {
.mediawiki,
  content: '';
.mw-page-container {
  position: absolute;
background: #1b1b1f;
  top: 0;
color: lightgrey;
  left: 0;
border: #1b1b1f
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


.mw-body {
/* Результаты поиска */
background: #212126;
.mw-search-result-heading a {
color: lightgrey;
  color: var(--color-primary);
border: black
  font-weight: var(--font-weight-semibold);
}
}


#mw-panel {
.mw-search-result-data {
background: #1b1b1f;
  color: var(--color-text-secondary);
color: lightgrey;
  font-style: italic;
border: #1b1b1f
}
}


#mw-content-container,
/* Списки изменений */
#mw-header-container,
.mw-changeslist-line {
#mw-content-wrapper,
  border-left: 3px solid var(--color-border);
#mw-content,
  padding-left: var(--space-20);
#p-logo {
  margin-bottom: var(--space-16);
background: #1b1b1f;
  transition: all var(--duration-fast) var(--ease-standard);
color: lightgrey;
border: #1b1b1f
}
}


.mw-code {
.mw-changeslist-line:hover {
background: #212126;
  border-left-color: var(--color-primary);
color: lightgrey
  background: var(--color-secondary);
  transform: translateX(5px);
}
}


footer,
/* Списки */
#footer-info-lastmod,
li {
#footer-info-copyright {
  line-height: var(--line-height-normal);
color: lightgrey
  margin-bottom: var(--space-12);
  word-wrap: break-word;
}
}


p,
/* Жирный и курсивный текст */
h1,
strong, b {
h2,
  font-weight: var(--font-weight-semibold);
h3,
  color: var(--color-text);
h4,
h5,
h6,
li {
color: lightgrey
}
}
**/


/** Новые цвета ссылок (одинаковый цвет, независимо от посещения **/
em, i {
a,
  font-style: italic;
.vector-menu-portal .vector-menu-content li a,.vector-menu-tabs li a,
  color: var(--color-text-secondary);
body.skin--responsive #p-cactions li a,
a:visited,
.vector-menu-portal .vector-menu-content li a:visited,
.vector-menu-tabs li a:visited,
body.skin--responsive #p-cactions li a:visited  {
    color: #77c1d9
}
}


/** Старые цвета ссылок
/* Навигационные блоки */
a,
.navbox {
.vector-menu-portal .vector-menu-content li a,
  border: 1px solid var(--color-border);
.vector-menu-tabs li a,
  width: 100%;
body.skin--responsive #p-cactions li a {
  clear: both;
color: lightblue
  font-size: 90%;
  text-align: center;
  padding: 0;
  margin: var(--space-32) auto 0;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
}


a:visited,
.navbox::before {
.vector-menu-portal .vector-menu-content li a:visited,
  content: '';
.vector-menu-tabs li a:visited,
  position: absolute;
body.skin--responsive #p-cactions li a:visited {
  top: 0;
color: #007FFF
  left: 0;
} **/
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}


a:hover,
/* Информационные блоки */
a:visited:hover {
.infobox {
    color: white;
  border: 1px solid var(--color-border);
  border-spacing: 0;
  background: var(--color-surface);
  color: var(--color-text);
  margin: var(--space-20) 0 var(--space-20) var(--space-32);
  padding: 0;
  float: right;
  clear: right;
  font-size: 90%;
  line-height: var(--line-height-normal);
  width: 28em;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  word-wrap: break-word;
}
}


body.skin--responsive #p-cactions li a {
.infobox::before {
background: #27272e
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


.mw-prefs-buttons {
.infobox tr {
background: #27272e
  transition: all var(--duration-fast) var(--ease-standard);
}
}


a.extiw:visited,
.infobox tr:hover {
a.external:visited,
  background: var(--color-secondary);
.mw-parser-output a.extiw:visited,
  transform: translateX(8px);
.mw-parser-output a.external:visited,
body.skin--responsive #p-cactions li a.external:visited {
/**Старый цвет
color: #8a2be2 **/
color: #3377aa
}
}


.vector-menu-tabs .selected a,
.infobox th,
.vector-menu-tabs .selected a:visited,
.infobox td {
body.skin--responsive #p-cactions li.selected a {
  padding: var(--space-16) var(--space-20);
color: lightgrey;
  word-wrap: break-word;
font-weight: bold
  overflow-wrap: break-word;
}
}


body.skin--responsive #p-cactions li.selected a {
/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
background: #27272e
 
/* Новая hero-секция с космическими эффектами */
.sunrise-hero-new {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32) 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  clear: both;
}
}


.vector-menu-tabs li {
/* Анимированный звездный фон */
background: #212126
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
}


#mw-site-navigation .sidebar-chunk,
.stars {
#mw-site-navigation .sidebar-chunk,
  position: absolute;
#mw-related-navigation .sidebar-chunk,
  width: 100%;
body.skin--responsive .portlet,
  height: 100%;
body.skin--responsive .pBody {
  background-image:
background: #212126;
    radial-gradient(2px 2px at 20px 30px, var(--color-text), transparent),
color: lightgrey;
    radial-gradient(2px 2px at 40px 70px, rgba(var(--color-text-rgb, 245, 245, 245), 0.8), transparent),
border-color: #1b1b1f
    radial-gradient(1px 1px at 90px 40px, var(--color-text), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(var(--color-text-rgb, 245, 245, 245), 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-text-secondary), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 25s linear infinite;
}
}


#p-logo-text a {
@keyframes sparkle {
color: lightgrey
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}
}


#ca-nstab-mediawiki.a {
.nebula {
color: lightgrey
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  animation: nebula-glow 10s ease-in-out infinite alternate;
}
}


#mw-changeslist-links {
@keyframes nebula-glow {
background: #212126;
  0% { opacity: 0.4; }
color: lightgrey
  100% { opacity: 0.8; }
}
}


#simpleSearch {
/* Контент героя */
background: #27272e;
.hero-content {
border: 1px solid #37373e;
  display: flex;
color: lightgrey
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}
}


#searchInput {
.hero-logo {
color: white
  margin-bottom: var(--space-32);
}
}


#pt-createaccount {
.logo-text {
    visibility: hidden;
  font-family: var(--font-family-base);
    display: none;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(45deg, var(--color-primary), var(--color-warning), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.6);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}
}


.vector-user-links .vector-user-menu-more .vector-menu-content-list li a,
@keyframes glow-pulse {
#personal .dropdown {
  0% { filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6)); }
background: #27272e;
  100% { filter: drop-shadow(0 0 50px rgba(var(--color-primary-rgb), 0.6)); }
border: 1px solid #37373e;
color: lightgrey
}
}


body.skin--responsive #p-cactions li.selected {
.logo-subtext {
border: #37373e
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  color: var(--color-primary-active);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-16);
}
}


.vector-menu-tabs .selected {
.hero-description {
background: #1b1b1f
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  opacity: 0.95;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
}
}


#pagehistory li.selected {
.hero-stats {
background: #1B4D3E;
  display: grid;
font-weight: bold
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
}
}


div.mw-warning-with-logexcerpt,
.stat-item {
div.mw-lag-warn-high,
  background: rgba(255, 255, 255, 0.1);
div.mw-cascadeprotectedwarning,
  backdrop-filter: blur(10px);
div#mw-protect-cascadeon,
  border: 1px solid rgba(255, 255, 255, 0.2);
div.titleblacklist-warning {
  border-radius: 16px;
background: #7C0A02;
  padding: 20px;
border: 1px solid #bb7070
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
}


.wikitable {
.stat-item::before {
background: #303037;
  content: '';
border: 1px solid #37373e;
  position: absolute;
color: white
  top: -50%;
}
  left: -50%;
/* класс wikitableKZ является костылем, ведь фиксить wikitable мне было впадлу. Из-за wikitable тултипы обрезаются. Не бейте*/
  width: 200%;
.wikitableKZ {
  height: 200%;
    border-collapse: collapse
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
}


.wikitableKZ>tr>th,
.stat-item:hover::before {
.wikitableKZ>tr>td,
  opacity: 1;
.wikitableKZ>*>tr>th,
.wikitableKZ>*>tr>td {
border: 1px solid black;
}
}


.toc {
@keyframes rotate-slow {
background: #27272E;
  0% { transform: rotate(0deg); }
border: 1px solid black;
  100% { transform: rotate(360deg); }
color: white
}
}


.mw-content-ltr .tocnumber {
.stat-item:hover {
color: grey
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 50px rgba(var(--color-primary-rgb), 0.4);
  background: var(--color-secondary-hover);
}
}


.wikitable>tr>th,
.stat-number {
.wikitable>tr>td,
  font-size: 2.5em;
.wikitable>*>tr>th,
  font-weight: bold;
.wikitable>*>tr>td {
  color: #ffffff;
border: 1px solid black;
  line-height: 1.1;
  margin-bottom: 8px;
}
}


.wikitable>*>tr>th {
.stat-label {
background: #27272e;
  font-size: 0.95em;
border: 1px solid black;
  color: rgba(255, 255, 255, 0.8);
color: white
  font-weight: 500;
  line-height: 1.3;
}
}


.quickbox {
/* Обновленный контейнер */
border: 1px solid #303038;
.sunrise-container-new {
background: #27272e
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: var(--space-32);
  margin: var(--space-32) 0;
  clear: both;
}
}


.quickboxhead {
/* Новые секции с правильным переносом текста */
border-bottom: 1px solid #303038;
.sunrise-section-new {
background: #1b1b1f;
  background: var(--color-surface);
text-align: center
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  overflow: visible;
  display: flex;
  flex-direction: column;  
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle,
.sunrise-section-new::before {
.mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend {
  content: '';
background: #27272e;
  position: absolute;
border: 1px solid #303038;
  top: 0;
color: white
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  transition: left 0.6s ease;
}
}


.oo-ui-buttonElement-framed.oo-ui-widget-enabled>.oo-ui-buttonElement-button {
.sunrise-section-new:hover::before {
background: #27272e;
  left: 100%;
border: 1px solid #303038;
color: white
}
}


.oo-ui-popupWidget-popup {
.sunrise-section-new:hover {
background: #303037;
  transform: translateY(-10px) scale(1.02);
border: 1px solid #37373e;
  box-shadow: var(--shadow-lg);
color: white
  border-color: var(--color-primary);
}
}


.mw-editform #wpTextbox1,
.section-header {
textarea {
  margin-bottom: var(--space-24);
background: #303037;
  text-align: center;
border: 1px solid #37373e;
color: white
}
}


.wikiEditor-ui-toolbar {
.section-header h2 {
background: #27272e;
  color: var(--color-text);
color: white
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}
}


.wikiEditor-ui-toolbar .group {
.section-header p {
border: 1px solid #37373e;
  color: var(--color-primary);
color: white
  opacity: 0.9;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
}
}


.wikiEditor-ui-toolbar .group .label {
/* Секция особенностей */
color: white
.sunrise-features {
  margin: var(--space-32) 0;
  padding: var(--space-32) 0;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  clear: both;
}
}


.wikiEditor-ui-toolbar .tabs span.tab a.current,
.features-header {
.wikiEditor-ui-toolbar .tabs span.tab a.current:visited {
  text-align: center;
color: #151518;
  margin-bottom: var(--space-32);
font-weight: bold
}
}


.wikiEditor-ui .wikiEditor-ui-top {
.features-header h2 {
border-bottom: 1px solid #37373e
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}
}


.wikiEditor-ui .wikiEditor-ui-view {
.features-header p {
border: 1px solid #37373e
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}
}


.editOptions,
.features-grid {
.mw-editform .editOptions {
  display: grid;
background: #212126;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
border: 1px solid #37373e;
  gap: var(--space-32);
color: white
  padding: 0 var(--space-24);
}
}


 
.feature-card {
.positive {
  background: var(--color-surface);
color: #00FF00;
  border-radius: var(--radius-lg);
font-weight: bold
  padding: var(--space-32) var(--space-24);
  text-align: center;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(15px);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.negative {
.feature-card::before {
color: #FF0000;
  content: '';
font-weight: bold
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
}


.anglerect {
.feature-card:hover::before {
--angle-rect-clip-size: 16px;
  opacity: 1;
clip-path: polygon(0 0, calc(100% - var(--angle-rect-clip-size)) 0, 100% var(--angle-rect-clip-size), 100% 100%, var(--angle-rect-clip-size) 100%, 0 calc(100% - var(--angle-rect-clip-size)))
}
}


.flex {
.feature-card:hover {
display: flex
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 80px rgba(var(--color-primary-rgb), 0.3);
  border-color: var(--color-primary);
}
}


 
.feature-icon {
 
  font-size: 4em;
.mw-body {
  margin-bottom: var(--space-20);
padding: 0.5em
  filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6));
  position: relative;
  z-index: 1;
}
}


.mw-body dd {
.feature-card h3 {
margin: 0.2em;
  color: var(--color-text);
margin-left: 1.6em
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  position: relative;
  z-index: 1;
  word-wrap: break-word;
}
}


.tabs-label {
.feature-card p {
background-color: #19191d !important;
  color: var(--color-text);
color: lightgrey;
  opacity: 0.95;
  line-height: var(--line-height-normal);
  position: relative;
  z-index: 1;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.tooltip{
/* Обновленные блоки с правильным переносом текста */
.sunrise-blocks-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin: var(--space-32) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
   position: relative;
   position: relative;
   display: inline;
   overflow: hidden;
  clear: both;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.tooltiptext {
.sunrise-blocks-new::before {
    position: absolute;
  content: '';
    display: initial;
  position: absolute;
    z-index: 99999;
  top: 0;
    width: 295px;
  left: 0;
    left: -120px;
  right: 0;
    top: 42px;
  height: 3px;
    padding: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    white-space: normal;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid #465298;
    background-color: #27272E;
}
}


.tooltip:hover>.tooltiptext {
.blocks-header {
   visibility: visible;
   text-align: center;
   opacity: 0.98;
   margin-bottom: var(--space-32);
}
}


.tooltip{
.blocks-header h2 {
   position: static;
   font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}
}
.tooltiptext{
box-shadow: 0px 0px 100vw 100vh rgb(0 0 0 / 60%);
        position: fixed;
    width: 80vw;
    top: 40vh;
    left: 0;
    margin: 0 auto;
    right: 0;
}


.blocks-header p {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}
}


/** MultimediaViewer tweaks **/
/* Космические частицы */
/* MMV text colors */
.space-particles {
.mw-mmv-above-fold,
  position: fixed;
.mw-mmv-dialog,
  top: 0;
.mw-mmv-image-links li,
  left: 0;
.mw-mmv-options-cancel-button.mw-ui-button.mw-ui-quiet,
  width: 100%;
.mw-mmv-options-dialog-header,
  height: 100%;
.mw-mmv-options-text-header {
  pointer-events: none;
color: #e0e0e0;
  z-index: -1;
}
}
/* MMV file info */
 
.mw-mmv-above-fold {
.particle {
background: #222;
  position: absolute;
border-top: 1px solid #333;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float 12s infinite linear;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(var(--color-primary-rgb), 0.8);
}
}
.mw-mmv-image-metadata {
 
background-color: #111;
.particle:nth-child(1) {
border-color: #333;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}
}
/* MMV options popup */
 
.mw-mmv-dialog {
.particle:nth-child(2) {
border: 1px solid #333;
  left: 25%;
background: #222;
  animation-delay: 3s;
box-shadow: none;
  animation-duration: 12s;
}
}
.mw-mmv-dialog .mw-mmv-dialog-down-arrow {
 
background: #222;
.particle:nth-child(3) {
border-bottom: 1px solid #333;
  left: 60%;
border-right: 1px solid #333;
  animation-delay: 6s;
  animation-duration: 8s;
}
}
.mw-mmv-options-enable-alert {
 
background: #333;
.particle:nth-child(4) {
color: #e0e0e0;
  left: 80%;
  animation-delay: 9s;
  animation-duration: 14s;
}
}
/* MMV buttons on file page */
 
.mw-mmv-filepage-buttons .mw-ui-button {
.particle:nth-child(5) {
background: #36c;
  left: 95%;
color: #e0e0e0;
  animation-delay: 12s;
border-color: #1d4699;
  animation-duration: 11s;
}
}


.mw-default-size {
@keyframes float {
background-color: #21212600 !important;
  0% {
border-color: black !important;
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}
}


.mw-default-size img {
/* Улучшенные ссылки в секциях главной страницы */
border-color: black !important;
.sunrise-section-new a,
.sunrise-blocks-new a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}
}


.mw-default-size figcaption {
.sunrise-section-new a:hover,
background-color: #21212600 !important;
.sunrise-blocks-new a:hover {
border-color: black !important;
  color: var(--color-primary-hover);
}
  background: var(--color-secondary);
.mw-halign-right {
  transform: translateX(5px);
background-color: #27272E00 !important;
  text-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
border-color: black !important;
}
}


.mw-halign-right img {
/* Заголовки в секциях главной страницы */
border-color: black !important;
.sunrise-section-new h1,
.sunrise-section-new h2,
.sunrise-section-new h3,
.sunrise-blocks-new h1,
.sunrise-blocks-new h2,
.sunrise-blocks-new h3 {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-20);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.mw-halign-right figcaption {
.sunrise-section-new h1::after,
background-color: #27272E00 !important;
.sunrise-section-new h2::after,
border-color: black !important;
.sunrise-section-new h3::after,
}
.sunrise-blocks-new h1::after,
.mw-halign-left {
.sunrise-blocks-new h2::after,
background-color: #27272E00 !important;
.sunrise-blocks-new h3::after {
border-color: black !important;
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 2px;
}
}


.mw-halign-left img {
/* Параграфы в секциях с правильным переносом */
border-color: black !important;
.sunrise-section-new p,
.sunrise-blocks-new p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-20);
}
}


.mw-halign-left figcaption {
/* Адаптивность */
background-color: #27272E00 !important;
@media (max-width: 1024px) {
border-color: black !important;
  .sunrise-container-new {
}
    grid-template-columns: 1fr;
.mw-halign-center {
    gap: var(--space-24);
background-color: #27272E00 !important;
  }
border-color: black !important;
 
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
  }
 
  .mw-body {
    padding: var(--space-24) var(--space-24);
    margin: var(--space-20);
  }
}
}


.mw-halign-center img {
@media (max-width: 768px) {
border-color: black !important;
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }
 
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-20);
    padding: 0 var(--space-16);
  }
 
  .sunrise-hero-new {
    padding: var(--space-32) var(--space-24);
    min-height: 400px;
  }
 
  .mw-body {
    padding: var(--space-20) var(--space-20);
    margin: var(--space-16);
    border-radius: var(--radius-md);
  }
 
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-24);
    border-radius: var(--radius-md);
  }
 
  .feature-card {
    padding: var(--space-32) var(--space-20);
  }
}
}


.mw-halign-center figcaption {
@media (max-width: 480px) {
background-color: #27272E00 !important;
  .sunrise-section-new,
border-color: black !important;
  .sunrise-blocks-new {
}
    padding: var(--space-20);
/* Фон референсов. Теперь НЕ белые при нажатии */
    border-radius: var(--radius-base);
.reference {
    margin: var(--space-16) 0;
background-color: #27272E00 !important;
  }
}
 
ol.references li:target,sup.reference:target {
  .feature-card {
     background-color: #303037 !important;
    padding: var(--space-24) var(--space-16);
}
    border-radius: var(--radius-base);
.oo-ui-inputWidget-input {
  }
background-color: #27272e !important;
 
border: #37373e !important;
  .sunrise-hero-new {
color: #ffffff !important;
     padding: var(--space-24) var(--space-16);
}
    min-height: 350px;
.mw-search-profile-tabs {
    border-radius: var(--radius-base);
background-color: #27272e !important;
    margin: var(--space-16) 0;
border: #37373e !important;
  }
}
 
.search-types .current a {
  .mw-body {
     color: #d3d3d3 !important;
    padding: var(--space-16) var(--space-16);
     cursor: default !important;
    margin: var(--space-8);
}
    border-radius: var(--radius-base);
.mw-message-box-error {
  }
     background-color: #7b1919 !important;
 
     border-color: #af2424 !important;
  .sunrise-container-new {
}
     gap: var(--space-16);
.mw-message-box-warning {
     margin: var(--space-16) 0;
     background-color: #7b6919 !important;
  }
     border-color: #af9a24 !important;
 
}
  .features-grid {
#mw-header-nav-hack {
     gap: var(--space-16);
     border-top: solid 2px #212126 !important;
     padding: 0 var(--space-12);
    display: block;
  }
    position: absolute;
 
     z-index: 98;
  .sunrise-features {
    background: #212126 !important;
    margin: var(--space-16) 0;
     width: 100%;
     padding: var(--space-24) 0;
}
     border-radius: var(--radius-base);
.ui-widget-overlay {
  }
     background: #000000 !important;
 
     opacity: .3 !important;
  .features-header {
}
     margin-bottom: var(--space-24);
.ui-widget-content {
  }
     border: 1px solid #4a4a57 !important;
 
     background: #212126 !important;
  .blocks-header {
    color: #e0e0e0 !important;
     margin-bottom: var(--space-24);
}
  }
.ui-widget-header {
 
     border: 1px solid #4a4a57 !important;
  .logo-text {
     background: #212126 !important;
     font-size: var(--font-size-3xl);
     color: #e0e0e0 !important;
  }
     font-weight: bold !important;
 
}
  .logo-subtext {
#wikieditor-toolbar-file-target,
     font-size: var(--font-size-lg);
#wikieditor-toolbar-file-caption,
     margin-top: var(--space-12);
#wikieditor-toolbar-file-alt {
  }
     width: 100% !important;
 
     background-color: #27272e !important;
  .hero-description {
     color: #e0e0e0 !important;
     font-size: var(--font-size-lg);
}
     margin-bottom: var(--space-24);
.wikiEditor-toolbar-dialog .ui-dialog-content input[type='text'] {
  }
    box-sizing: border-box !important;
 
    background-color: #27272e !important;
  .stat-number {
    color: #e0e0e0 !important;
     font-size: 2.5em;
}
     font-weight: bold;
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
     color: #ffffff;
    font-family: Verdana,Arial,sans-serif !important;
     line-height: 1.1;
    font-size: 1em !important;
    margin-bottom: 8px;
    background-color: #27272e !important;
    white-space: nowrap;
    color: #e0e0e0 !important;
     overflow: visible;
     text-overflow: initial;
     text-align: center;
  }
 
.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
  text-align: center;
}
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
 
     border: 1px solid #4a4a57 !important;
  .section-header h2 {
    background: #27272e !important;
     font-size: var(--font-size-xl);
    font-weight: normal !important;
     margin-bottom: var(--space-12);
     color: #e0e0e0 !important;
  }
}
 
.ui-state-hover, .ui-widget-contetn .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
  .section-header p {
border: 1px solid #4a4a57 !important;
    font-size: var(--font-size-base);
     background: #4c4c59 !important;
  }
    font-weight: normal !important;
 
     color: #e0e0e0 !important;
  .features-header h2 {
}
     font-size: var(--font-size-2xl);
body .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
     margin-bottom: var(--space-12);
right: 0.9em !important;
  }
background: #4c4c59 !important;
 
}
  .features-header p {
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
    font-size: var(--font-size-lg);
padding: 0 !important;
  }
background: #6c6c80 !important;
 
}
  .blocks-header h2 {
ul#filetoc,.toc,.toccolours,.mw-warning {
    font-size: var(--font-size-2xl);
        display: table !important;
    margin-bottom: var(--space-12);
        background-color: #27272e !important;
  }
        border: solid #37373e !important;
 
        border-width: 1px 1px 0.2em !important;
  .blocks-header p {
        box-shadow: 0 1px 2px 1px rgb(0 0 0 / 2%) !important;
    font-size: var(--font-size-lg);
        padding: 1.25em 1.75em !important;
  }
        margin-top: 1em !important;
 
        margin-bottom: 1em !important;
  .feature-card h3 {
        min-width: 15em !important;
     font-size: var(--font-size-lg);
        font-size: 100% !important;
     margin-bottom: var(--space-12);
}
  }
.diff-editfont-monospace .diff-addedline,.diff-editfont-monospace .diff-deletedline,.diff-editfont-monospace .diff-context {
 
     font-family: monospace,monospace !important;
  .feature-card p {
     background-color: #1b1b1f !important;
     font-size: var(--font-size-base);
    border-color: #1b1b1f !important;
  }
    color: white !important;
 
}
  .feature-icon {
.diff-deletedline .diffchange {
     font-size: 3em;
     background: #4c3c16 !important;
     margin-bottom: var(--space-16);
}
  }
.diff-addedline .diffchange {
     background: #16324d !important;
}
.mw-json th,.mw-json td {
    border: 1px solid #000000;
     font-size: 16px;
    padding: 0.5em 1em
}
}


.mw-json tr {
/* Исправления для текста - предотвращение обрыва слов */
    background-color: #212126;
.sunrise-section-new *,
    margin-bottom: 0.5em
.sunrise-blocks-new *,
.hero-content *,
.feature-card * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.mw-json th {
/* Специальные правила для длинных слов */
    background-color: #303037;
.sunrise-section-new,
    font-weight: normal;
.sunrise-blocks-new {
    vertical-align: top;
  word-break: break-word;
    color:#d3d3d3;
  overflow-wrap: anywhere;
}
}


.mw-json th span {
/* Убираем скроллбары из всех блоков главной страницы */
    -webkit-position: sticky;
.sunrise-section-new,
    position: sticky;
.sunrise-blocks-new,
    top: 0.5em
.stat-item,
.feature-card {
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
}


.mw-json-value,.mw-json-single-value {
/* Плавные переходы для всех элементов */
    background-color: #1b5929;
* {
    font-family: monospace,monospace;
  transition: transform var(--duration-fast) var(--ease-standard),  
    white-space: pre-wrap;
              box-shadow var(--duration-fast) var(--ease-standard),
    color:#d3d3d3;
              border-color var(--duration-fast) var(--ease-standard),
}
              background-color var(--duration-fast) var(--ease-standard);
.mw-json-empty {
    background-color: #1b5929;
    font-style: italic;
    color:#d3d3d3;
}
.hover_img_special {
    top: 0;
    left: 0;
    display: none
}
}


.img_special:hover .hover_img_special {
/* Оптимизация производительности */
     display: inline;
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
     transition-duration: 0.01ms !important;
  }
}
}


.img_special:hover .img_spec {
/* Печать */
@media print {
  .space-particles,
  .hero-background {
     display: none;
     display: none;
  }
 
  body {
    background: var(--color-background);
    color: var(--color-text);
  }
 
  .mw-body {
    background: var(--color-surface);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
}
}
.ace-tm .ace_gutter {
 
  background: #212126;
/* Контейнер MainMenuAbout */
  color: #333;
.mainmenu-about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;  
}
}


.ace-tm .ace_print-margin {
/* Секция сообщества */
  width: 1px;
.community-links {
  background-color: #1b1b1f;
    overflow: hidden; /* Убираем любые скроллбары */
    padding: 10px 0;
}
}
.ace-tm {
 
   background-color: #1b1b1f;
.social-grid {
   color: lightgrey;
   display: grid;
  grid-template-columns: 1fr 1fr;  
   gap: 15px;  
}
}
.ace-tm .ace_cursor {
 
   color: white;
.social-link {
   display: flex;
  justify-content: center;
  align-items: center;   
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 80px;
  transition: all 0.3s ease;
}
}
.ace-tm .ace_storage,
 
.ace-tm .ace_keyword {
.social-link:hover {
   color: rgb(153, 153, 255);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.2);
   border-color: rgba(var(--color-primary-rgb), 0.3);
  background: rgba(var(--color-primary-rgb), 0.1);
}
}


.ace-tm .ace_constant.ace_numeric {
.social-link img {
   color: rgb(153, 153, 205);
   max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
}
.ace-tm .ace_constant {
 
   color: rgb(241, 89, 92);
.social-link:hover img {
   transform: scale(1.05);  
}
}
.ace-tm .ace_support.ace_function {
 
  color: rgb(68, 118, 235);
@media (max-width: 500px) {
  .social-grid {
    grid-template-columns: 1fr;  
  }
}
}
.ace-tm .ace_support.ace_constant {
 
  color: rgb(23, 202, 33);
/* Контент секций */
.about-content,
.help-content,
.other-projects {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    overflow: visible;
    max-height: none;  
}
}
.ace-tm .ace_support.ace_type,
 
.ace-tm .ace_support.ace_class {
/* Убираем скроллбары везде где они могут появиться */
  color: rgb(182, 187, 236);
.mainmenu-about-container *,
.community-links *,
.social-grid *,
.social-link * {
    /* Для WebKit браузеров (Chrome, Safari) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}
}
.ace-tm .ace_string {
 
  color: rgb(6, 142, 13);
.mainmenu-about-container *::-webkit-scrollbar,
.community-links *::-webkit-scrollbar,
.social-grid *::-webkit-scrollbar,
.social-link *::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
}
.ace-tm .ace_comment {
 
  color: rgb(103, 193, 150);
/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
   
    .social-link {
        min-height: 120px;
    }
}
}
.ace-tm .ace_constant.ace_numeric {
 
   color: rgb(153, 153, 255);
/* Улучшенное предупреждение о доработке страницы */
.sunrise-warning-banner {
  background: linear-gradient(135deg, #fbbf24, #f97316);
   color: #1f2937;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse-warning 3s ease-in-out infinite alternate;
  font-weight: 600;
  font-size: 16px;
  max-width: 860px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
}
.ace-tm .ace_marker-layer .ace_selection {
 
   background: rgb(28, 45, 68);
.warning-content {
  display: flex;
  align-items: center;
  gap: 12px;
   width: 100%;
}
}
.ace-tm .ace_marker-layer .ace_bracket {
 
   margin: -1px 0 0 -1px;
.warning-icon {
   border: 1px solid rgb(94, 94, 94);
   font-size: 28px;
   animation: bounce-warning 2s ease-in-out infinite;
}
}
.ace-tm .ace_marker-layer .ace_active-line {
 
   background: rgb(153, 153, 183, 7%);
.warning-text {
  flex-grow: 1;
   line-height: 1.4;
}
}


.ace-tm .ace_gutter-active-line {
.warning-close {
    background-color: rgb(44,44,51)
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #1f2937;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
  transform: rotate(0deg);
}
}
.ace-tm .ace_marker-layer .ace_selected-word {
 
   background: rgb(37, 59, 89);
.warning-close:hover {
   border: 1px solid rgb(36, 36, 42);
  color: #dc2626;
   background: rgba(255, 255, 255, 0.2);
   transform: rotate(180deg);
}
}
.codeEditor-status {
 
     clear: both;
@keyframes pulse-warning {
    width: 100%;
  0% {
     background-color: #212126;
     box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    border-top: 1px solid #40404b;
  }
    display: table;
  100% {
     box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
  }
}
}
.codeEditor-status-message {
 
     border-left: 1px solid #40404b;
@keyframes bounce-warning {
     border-right: 1px solid #40404b;
  0%, 20%, 50%, 80%, 100% {
    padding: 0 0.3em;
     transform: translateY(0);
    width: 100%;
  }
     display: table-cell;
  40% {
     transform: translateY(-8px);
  }
  60% {
     transform: translateY(-4px);
  }
}
}
.ace_search {
 
    background-color: #212126;
.stat-item:last-child {
    color: #d3d3d3;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid #383843;
  border-color: rgba(139, 92, 246, 0.4);
    border-top: 0 none;
  animation: infinity-glow 4s ease-in-out infinite alternate;
    overflow: hidden;
    margin: 0;
    padding: 4px 6px 0 4px;
    position: absolute;
    top: 0;
    z-index: 99;
    white-space: normal;
}
}
.ace_search_form.ace_nomatch {
 
    outline: 1px solid #922626;
.stat-item:last-child .stat-number {
  background: linear-gradient(45deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2em;
}
}
.ace_search_field {
 
    border-radius: 3px 0 0 3px;
@keyframes infinity-glow {
     background-color: #27272e;
  0% {
    color: #d3d3d3;
     box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    border: 1px solid #383843;
  }
    border-right: 0 none;
  100% {
    outline: 0;
     box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    padding: 0;
  }
    font-size: inherit;
    margin: 0;
     line-height: inherit;
    padding: 0 6px;
    min-width: 17em;
    vertical-align: top;
    min-height: 1.8em;
    box-sizing: content-box;
}
}
.ace_searchbtn {
 
    border: 1px solid #383843;
.mw-collapsible-toggle a {
    line-height: inherit;
  color: var(--color-primary);
    display: inline-block;
  text-decoration: none;
    padding: 0 6px;
  font-weight: var(--font-weight-medium);
    background: #27272e;
  transition: color var(--duration-fast) var(--ease-standard);
    border-right: 0 none;
    border-left: 1px solid #383843;
    cursor: pointer;
    margin: 0;
    position: relative;
    color: #d3d3d3;
}
}
.ace_searchbtn:last-child {
 
    border-radius: 0 3px 3px 0;
.mw-collapsible-toggle a:hover {
    border-right: 1px solid #383843;
  color: var(--color-primary-hover);
}
}
.ace_searchbtn:hover {
 
    background-color: #1b1b1f;
.mw-collapsed .mw-collapsible-content {
  display: none;
}
}
.ace_searchbtn.prev:after{
 
    content: "";
/* Альтернативное решение для details/summary */
    border: solid 2px #d3d3d3;
details.abbreviation-list {
    width: 0.5em;
  background: #f8fafc;
    height: 0.5em;
  border: 1px solid #e2e8f0;
    border-width: 2px 0 0 2px;
  border-radius: 8px;
    display:inline-block;
  padding: 16px;
    transform: rotate(-45deg);
  margin: 16px 0;
}
}
.ace_searchbtn.next:after{
 
    content: "";
details.abbreviation-list summary {
    border: solid 2px #d3d3d3;
  cursor: pointer;
    width: 0.5em;
  font-weight: bold;
    height: 0.5em;
  color: #3b82f6;
    border-width: 2px 0 0 2px;
  margin-bottom: 12px;
    display:inline-block;
  user-select: none;
    transform: rotate(135deg);
}
}
.ace_button {
 
    margin-left: 2px;
details.abbreviation-list summary:hover {
    cursor: pointer;
  color: #1d4ed8;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    opacity: 0.7;
    border: 1px solid rgb(56, 56, 68);
    padding: 1px;
    box-sizing:   border-box!important;
    color: #d3d3d3;
    background-color: #27272e
}
}
.ace_button:hover {
 
    background-color: #1b1b1f;
details.abbreviation-list[open] summary {
    opacity:1;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}
}
.ace_button:active {
 
     background-color: #101013;
/* Адаптивность для предупреждения */
@media (max-width: 768px) {
  .sunrise-warning-banner {
    margin: 16px 12px;
    padding: 14px 18px;
    font-size: 15px;
  }
 
  .warning-icon {
    font-size: 24px;
  }
 
  .warning-close {
     font-size: 20px;
  }
}
}


/* Скроллбар */
@media (max-width: 480px) {
::-webkit-scrollbar {
  .sunrise-warning-banner {
     background-color:#424242;
    margin: 12px 8px;
    padding: 12px 16px;
    font-size: 14px;
  }
 
  .warning-content {
     gap: 8px;
  }
}
}
::-webkit-scrollbar-thumb {
 
    background-color: #686868;
.mw-collapsible-toggle {
    border: 2px solid #424242;
cursor: pointer;
    border-radius: 4px;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
border: none;
background: transparent;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.3s ease;
}
}
::-webkit-scrollbar-thumb:hover {
 
    background-color: #7b7b7b;
.mw-collapsible-toggle:hover {
color: var(--color-primary-hover, #1d4ed8);
background-color: var(--color-secondary, rgba(59, 130, 246, 0.1));
text-decoration: none;
}
}
::-webkit-scrollbar-thumb:active {
 
    background-color: #a1a1a1;
.mw-collapsed .mw-collapsible-content {
display: none !important;
}
}


/* Списки */
.mw-collapsible-content {
.style-for-sub-numbered-lists ol {
display: block;
  counter-reset: item
}
}
.style-for-sub-numbered-lists li {
 
  display: block
.mw-customtoggle {
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
}
}
.style-for-sub-numbered-lists li:before {
 
  content: counters(item, ".") ". ";
.mw-customtoggle:hover {
  counter-increment: item;
color: var(--color-primary-hover, #1d4ed8);
text-decoration: underline;
}
}


/* Flex table */
@keyframes infinity-glow {
.section {
  0% {
  display: flex;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
   flex-wrap: wrap;
   }
  100% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}
}


.section .col {
.recentchanges-frame .mw-collapsible-content {
   flex: 1 1 auto;
   max-height: 400px;
  overflow-y: auto;  
}
}


.section .line-break {
.mw-highlight,
  flex-basis: 100%;
.mw-geshi,
  width: 0px;  
pre.mw-code {
  height: 0px;  
position: relative;
  overflow: hidden;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-inset-sm);
overflow: auto;  
}
}


.mw-body .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend,.mw-changeslist-legend,.mw-body .mw-search-profile-tabs,.mw-body fieldset#mw-searchoptions,.mw_metadata,.mw-datatable {
.mw-highlight pre,
    color: #d3d3d3;
pre.mw-code,
    background: #303037;
pre code {
    border: solid #000000;
white-space: pre;
    border-width: 1px 1px 0.2em;
word-break: normal;
    padding: 1.25em 1.75em;
overflow-wrap: normal;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02)
hyphens: manual;
line-height: 1.4;
letter-spacing: 0;  
margin: 0;
background: transparent;
border: 0;
padding: 12px 16px;  
font-family: var(--font-family-mono);
font-size: 13px;
}
}
.mw_metadata > tr > th,.mw-datatable > tr > th,.wikitable > tr > th,.mw_metadata > tr > td,.mw-datatable > tr > td,.wikitable > tr > td,.mw_metadata > * > tr > th,.mw-datatable > * > tr > th,.wikitable > * > tr > th,.mw_metadata > * > tr > td,.mw-datatable > * > tr > td,.wikitable > * > tr > td {
 
    border: 1px solid #000000;
.mw-highlight table {
    padding: 0.4em 0.5em
border-collapse: collapse;
width: 100%;
}
}


.mw-datatable th {
.mw-highlight td.linenos,
    background: #212126;
.mw-highlight .linenos {
width: 3.5em;
min-width: 3.5em;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding: 12px 8px;
vertical-align: top;
}
}


.mw-datatable td {
.mw-highlight td.code,
    background-color: #303037;
.mw-highlight .code {
padding: 0;
}
}


.mw-datatable tr:hover td {
.mw-highlight td.code pre {
    background-color: #3f3f48
padding-left: 12px;
}
}


.pretoclip-copy-button {
.mw-numbered-lines,
    float: right;
.line-numbers {
counter-reset: lineno;
}
}
.mw-scribunto-console-fieldset {
.mw-numbered-lines > code > span,
color: #d3d3d3;
.line-numbers > code > span {
background: none;
display: block;
border: 3px solid #27272e;
counter-increment: lineno;
}
}
.mw-scribunto-message {
.mw-numbered-lines > code > span::before,
    color: #008000;
.line-numbers > code > span::before {
    background:none;
content: counter(lineno);
display: inline-block;
width: 3.5em;
margin-right: 8px;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding-right: 8px;
}
}
#mw-scribunto-input {
 
    width: 100%;
.mw-highlight code,
    border: 0;
.mw-geshi code {
    overflow: auto;
background: transparent;
    background: #303037;
padding: 0;
border: 0;
box-shadow: none;
}
}


.mw-scribunto-input {
.mw-body .wikitable pre,
    color: #d3d3d3;
.mw-body .infobox pre {
    font: inherit;
overflow: auto;
    font-weight: bold;
    margin-top: 0.5em;
}
}


/*Блок ролей на странице "Роли"*/
.mw-highlight pre,
.table-flex {
pre.mw-code {
display:flex;
overflow-x: auto;
flex-direction:row;
overflow-y: hidden;
flex-wrap:wrap;
justify-content:space-evenly;
}
}
.boxes-flex {
 
  padding:0;
.mw-highlight pre,
  margin:5px 15px 5px 15px;
pre.mw-code {
  text-align:center;
line-height: 1.5;
font-size: 13px;
}
}
.role-big-title {
 
margin:0px;
.mw-highlight td.linenos { padding: 10px 8px; }
text-align: center;
.mw-highlight td.code pre { padding-left: 14px; }
font-size: 40px;
 
line-height:50px;
.mw-highlight td.linenos,
border-radius: 8px;
.mw-highlight td.code { vertical-align: top; }
}
 
.role-block-radius {
.mw-highlight pre,
border-radius: 8px
pre.mw-code,
}
pre code {
.role-block-name {
word-break: normal;
padding:2px;
overflow-wrap: normal;
border-radius:.3em;
margin-bottom:.2em;
}
.story-text {
text-indent: 19px;
text-align: justify;
}
.story-dialogue {
line-height:1.2
}
.oo-ui-stackLayout-continuous > .oo-ui-panelLayout {
    display: block;
    position: relative;
    margin: 0px 25%;
}
.mw-gallery-slideshow .gallerybox.slideshow-current {
    background: #28282e;
}
.gallerytext {
    overflow: hidden;
    font-size: 94%;
    padding: 2px 4px;
    word-wrap: break-word;
    text-align: center;
}
#content .gallerybox div.thumb {
    background-color: #f8f9fa00;
}
.mw-body li.gallerybox div.thumb {
    background: #f8f9fa00;
    border: solid #28282e;
    border-width: 1px 1px 0.2em;
    padding: 1.25em 1.75em;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02);
    padding: 0;
}
.title-no-bottom-border {
border-bottom: none !important
}
.title-top-border {
border-top: solid 2px #c8ccd1;
}
}


/* Установка ширины страницы по умолчанию в 1800px */
@media (max-width: 480px) {
@media screen and (min-width: 1800px) {
.mw-highlight td.linenos { width: 3.2em; min-width: 3.2em; }
    body {
        font-size: 90%;
        font-family: Citizen, sans-serif;
    }
}
}

Текущая версия от 20:23, 8 августа 2025

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

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

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* Remove custom color variables and use design system */
:root {
  /* Legacy space theme variables mapped to design system */
  --space-primary: var(--color-primary);
  --space-secondary: var(--color-primary-hover);
  --space-accent: var(--color-primary-active);
  --space-dark: var(--color-background);
  --space-darker: var(--color-surface);
  --space-purple: var(--color-surface);
  --space-blue: var(--color-surface);
  --space-orange: var(--color-warning);
  --space-glow: rgba(var(--color-teal-500-rgb), 0.6);
  --space-text: var(--color-text);
  --space-text-bright: var(--color-text);
  --space-bg-primary: var(--color-surface);
  --space-bg-secondary: var(--color-surface);
  --space-border: var(--color-border);
}

/* Базовые стили */
* {
  box-sizing: border-box;
}

body {
  background: var(--color-background);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-tight);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Основной контейнер MediaWiki */
.mw-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32);
  position: relative;
  overflow: hidden;
}

.mw-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
}

.mw-body-content {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Исправление переполнения текста */
.mw-body-content p {
  margin: var(--space-20) 0;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Улучшенный код */
code {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: 90%;
  font-family: var(--font-family-mono);
  box-shadow: var(--shadow-inset-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  word-break: break-all;
  white-space: pre-wrap;
}

pre {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  overflow-x: auto;
  box-shadow: var(--shadow-inset-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  letter-spacing: 0.5px;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Улучшенные цитаты */
blockquote {
  overflow: hidden;
  margin: var(--space-32) 0;
  padding: var(--space-32) var(--space-32);
  border-left: 5px solid var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  font-style: italic;
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}

blockquote::before {
  content: '"';
  font-size: 5em;
  color: rgba(var(--color-primary-rgb), 0.3);
  position: absolute;
  top: -15px;
  left: 15px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
}

/* Улучшенные изображения */
img {
  image-rendering: optimizeSpeed;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

/* Улучшенные ссылки */
a,
a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  font-weight: var(--font-weight-medium);
  word-wrap: break-word;
}

a:not(.image):not(.thumbimage):not(.mw-file-description)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-normal) var(--ease-standard);
  border-radius: 2px;
}

a:not(.image):not(.thumbimage):not(.mw-file-description):hover::after {
  width: 100%;
}

a:hover,
a:visited:hover {
  color: var(--color-primary-hover);
  text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.7);
  transform: translateX(2px);
}

/* Исключения для изображений */
.thumb a::after,
.gallery a::after,
a[href*="File:"]::after,
a[href*="Файл:"]::after,
a[title*="File:"]::after,
a[title*="Файл:"]::after {
  display: none !important;
}

/* Улучшенные таблицы */
.wikitable {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-32) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  font-family: var(--font-family-base);
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}

.wikitable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  border: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-20);
  transition: all var(--duration-fast) var(--ease-standard);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  min-width: 100px;
}

.wikitable > * > tr > th {
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-sm);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}

.wikitable > * > tr > th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.wikitable > * > tr:hover > td {
  background: var(--color-secondary-hover);
  transform: scale(1.01);
}

/* Улучшенный поиск */
#simpleSearch {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  position: relative;
  overflow: hidden;
}

#simpleSearch::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover), var(--color-primary));
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
  z-index: -1;
}

#simpleSearch:focus-within::before {
  opacity: 1;
}

#simpleSearch:focus-within {
  border-color: transparent;
  box-shadow: var(--focus-ring);
  transform: scale(1.02);
}

#searchInput {
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: var(--space-16) var(--space-24);
  font-size: var(--font-size-base);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
}

#searchInput::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.8;
  font-style: italic;
}

/* Улучшенные вкладки */
.vector-menu-tabs {
  background: transparent;
}

.vector-menu-tabs li {
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-right: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.vector-menu-tabs li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.vector-menu-tabs li:hover::before {
  opacity: 1;
}

.vector-menu-tabs li:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vector-menu-tabs .selected {
  background: var(--color-secondary-active);
  border-color: var(--color-primary);
  box-shadow: 0 -6px 20px rgba(var(--color-primary-rgb), 0.5);
}

.vector-menu-tabs .selected::before {
  opacity: 1;
}

.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Улучшенная боковая панель */
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk,
.portlet,
.pBody,
#mw-panel,
.mw-panel,
#sidebar,
.sidebar,
.vector-menu-portal,
.vector-legacy-sidebar,
#p-navigation,
#p-tb,
#p-lang {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-32);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.vector-menu-portal h3,
#mw-panel .portal h3,
.sidebar h3 {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: var(--space-16) var(--space-20);
  margin: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: var(--font-size-sm);
  position: relative;
}

.vector-menu-portal h3::after,
#mw-panel .portal h3::after,
.sidebar h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.vector-menu-portal .vector-menu-content ul li a,
#mw-panel .portal .body ul li a {
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  display: block;
  transition: all var(--duration-normal) var(--ease-standard);
  border-radius: var(--radius-sm);
  margin: var(--space-4) var(--space-8);
  position: relative;
  word-wrap: break-word;
}

.vector-menu-portal .vector-menu-content ul li a::before,
#mw-panel .portal .body ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-fast) var(--ease-standard);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vector-menu-portal .vector-menu-content ul li a:hover::before,
#mw-panel .portal .body ul li a:hover::before {
  width: 4px;
}

.vector-menu-portal .vector-menu-content ul li a:hover,
#mw-panel .portal .body ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  transform: translateX(10px);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

/* Улучшенные формы */
.mw-editform #wpTextbox1,
textarea {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  padding: var(--space-32);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  resize: vertical;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
  word-wrap: break-word;
}

.mw-editform #wpTextbox1:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

/* Улучшенные кнопки */
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-16) var(--space-24);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-family-base);
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover::before {
  left: 100%;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
  background: var(--color-secondary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

/* Улучшенные скроллбары */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-base);
  border: 2px solid var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

::-webkit-scrollbar-corner {
  background: var(--color-surface);
}

/* Скрытие скроллбаров для Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  border-bottom: 3px solid var(--color-border);
  padding-bottom: var(--space-12);
  margin-top: var(--space-32);
  position: relative;
  letter-spacing: var(--letter-spacing-tight);
  word-wrap: break-word;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 3px;
}

h1 {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Первый заголовок страницы */
.firstHeading {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-16);
  text-align: center;
  word-wrap: break-word;
}

/* Личное меню */
#p-personal ul li a {
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  margin: 0 var(--space-4);
  font-weight: var(--font-weight-medium);
}

#p-personal ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
  transform: translateY(-2px);
}

/* Выпадающие меню */
.vector-menu-dropdown .vector-menu-content {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-16);
  backdrop-filter: blur(15px);
}

/* Скрытие элементов */
#pt-createaccount,
#site-tools,
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
#t-upload {
  display: none;
}

/* Ссылки на источники */
.reference {
  background-color: transparent;
}

.references li:target,
sup.reference:target {
  background: var(--color-secondary-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
}

/* Футер */
#footer {
  background: var(--color-surface);
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: var(--space-32);
  padding: var(--space-32);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

/* Результаты поиска */
.mw-search-result-heading a {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.mw-search-result-data {
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Списки изменений */
.mw-changeslist-line {
  border-left: 3px solid var(--color-border);
  padding-left: var(--space-20);
  margin-bottom: var(--space-16);
  transition: all var(--duration-fast) var(--ease-standard);
}

.mw-changeslist-line:hover {
  border-left-color: var(--color-primary);
  background: var(--color-secondary);
  transform: translateX(5px);
}

/* Списки */
li {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-12);
  word-wrap: break-word;
}

/* Жирный и курсивный текст */
strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

em, i {
  font-style: italic;
  color: var(--color-text-secondary);
}

/* Навигационные блоки */
.navbox {
  border: 1px solid var(--color-border);
  width: 100%;
  clear: both;
  font-size: 90%;
  text-align: center;
  padding: 0;
  margin: var(--space-32) auto 0;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.navbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

/* Информационные блоки */
.infobox {
  border: 1px solid var(--color-border);
  border-spacing: 0;
  background: var(--color-surface);
  color: var(--color-text);
  margin: var(--space-20) 0 var(--space-20) var(--space-32);
  padding: 0;
  float: right;
  clear: right;
  font-size: 90%;
  line-height: var(--line-height-normal);
  width: 28em;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  word-wrap: break-word;
}

.infobox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.infobox tr {
  transition: all var(--duration-fast) var(--ease-standard);
}

.infobox tr:hover {
  background: var(--color-secondary);
  transform: translateX(8px);
}

.infobox th,
.infobox td {
  padding: var(--space-16) var(--space-20);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Новая hero-секция с космическими эффектами */
.sunrise-hero-new {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32) 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  clear: both;
}

/* Анимированный звездный фон */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--color-text), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(var(--color-text-rgb, 245, 245, 245), 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--color-text), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(var(--color-text-rgb, 245, 245, 245), 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-text-secondary), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 25s linear infinite;
}

@keyframes sparkle {
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}

.nebula {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  animation: nebula-glow 10s ease-in-out infinite alternate;
}

@keyframes nebula-glow {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* Контент героя */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero-logo {
  margin-bottom: var(--space-32);
}

.logo-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(45deg, var(--color-primary), var(--color-warning), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.6);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6)); }
  100% { filter: drop-shadow(0 0 50px rgba(var(--color-primary-rgb), 0.6)); }
}

.logo-subtext {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  color: var(--color-primary-active);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-16);
}

.hero-description {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  opacity: 0.95;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.stat-item:hover::before {
  opacity: 1;
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 50px rgba(var(--color-primary-rgb), 0.4);
  background: var(--color-secondary-hover);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
}

/* Обновленный контейнер */
.sunrise-container-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: var(--space-32);
  margin: var(--space-32) 0;
  clear: both;
}

/* Новые секции с правильным переносом текста */
.sunrise-section-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  overflow: visible; 
  display: flex; 
  flex-direction: column; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sunrise-section-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  transition: left 0.6s ease;
}

.sunrise-section-new:hover::before {
  left: 100%;
}

.sunrise-section-new:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.section-header {
  margin-bottom: var(--space-24);
  text-align: center;
}

.section-header h2 {
  color: var(--color-text);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.section-header p {
  color: var(--color-primary);
  opacity: 0.9;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
}

/* Секция особенностей */
.sunrise-features {
  margin: var(--space-32) 0;
  padding: var(--space-32) 0;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  clear: both;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.features-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.features-header p {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-32);
  padding: 0 var(--space-24);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-24);
  text-align: center;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(15px);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 80px rgba(var(--color-primary-rgb), 0.3);
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 4em;
  margin-bottom: var(--space-20);
  filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6));
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  position: relative;
  z-index: 1;
  word-wrap: break-word;
}

.feature-card p {
  color: var(--color-text);
  opacity: 0.95;
  line-height: var(--line-height-normal);
  position: relative;
  z-index: 1;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Обновленные блоки с правильным переносом текста */
.sunrise-blocks-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin: var(--space-32) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  clear: both;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sunrise-blocks-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.blocks-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.blocks-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.blocks-header p {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}

/* Космические частицы */
.space-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float 12s infinite linear;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(var(--color-primary-rgb), 0.8);
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 3s;
  animation-duration: 12s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 6s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 9s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  left: 95%;
  animation-delay: 12s;
  animation-duration: 11s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Улучшенные ссылки в секциях главной страницы */
.sunrise-section-new a,
.sunrise-blocks-new a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.sunrise-section-new a:hover,
.sunrise-blocks-new a:hover {
  color: var(--color-primary-hover);
  background: var(--color-secondary);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
}

/* Заголовки в секциях главной страницы */
.sunrise-section-new h1,
.sunrise-section-new h2,
.sunrise-section-new h3,
.sunrise-blocks-new h1,
.sunrise-blocks-new h2,
.sunrise-blocks-new h3 {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-20);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sunrise-section-new h1::after,
.sunrise-section-new h2::after,
.sunrise-section-new h3::after,
.sunrise-blocks-new h1::after,
.sunrise-blocks-new h2::after,
.sunrise-blocks-new h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 2px;
}

/* Параграфы в секциях с правильным переносом */
.sunrise-section-new p,
.sunrise-blocks-new p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-20);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
  }
  
  .mw-body {
    padding: var(--space-24) var(--space-24);
    margin: var(--space-20);
  }
}

@media (max-width: 768px) {
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-20);
    padding: 0 var(--space-16);
  }
  
  .sunrise-hero-new {
    padding: var(--space-32) var(--space-24);
    min-height: 400px;
  }
  
  .mw-body {
    padding: var(--space-20) var(--space-20);
    margin: var(--space-16);
    border-radius: var(--radius-md);
  }
  
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-24);
    border-radius: var(--radius-md);
  }
  
  .feature-card {
    padding: var(--space-32) var(--space-20);
  }
}

@media (max-width: 480px) {
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-20);
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
  
  .feature-card {
    padding: var(--space-24) var(--space-16);
    border-radius: var(--radius-base);
  }
  
  .sunrise-hero-new {
    padding: var(--space-24) var(--space-16);
    min-height: 350px;
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
  
  .mw-body {
    padding: var(--space-16) var(--space-16);
    margin: var(--space-8);
    border-radius: var(--radius-base);
  }
  
  .sunrise-container-new {
    gap: var(--space-16);
    margin: var(--space-16) 0;
  }
  
  .features-grid {
    gap: var(--space-16);
    padding: 0 var(--space-12);
  }
  
  .sunrise-features {
    margin: var(--space-16) 0;
    padding: var(--space-24) 0;
    border-radius: var(--radius-base);
  }
  
  .features-header {
    margin-bottom: var(--space-24);
  }
  
  .blocks-header {
    margin-bottom: var(--space-24);
  }
  
  .logo-text {
    font-size: var(--font-size-3xl);
  }
  
  .logo-subtext {
    font-size: var(--font-size-lg);
    margin-top: var(--space-12);
  }
  
  .hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-24);
  }
  
  .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    text-align: center;
  }
  
.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
  text-align: center;
}
  
  .section-header h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-12);
  }
  
  .section-header p {
    font-size: var(--font-size-base);
  }
  
  .features-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
  
  .features-header p {
    font-size: var(--font-size-lg);
  }
  
  .blocks-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
  
  .blocks-header p {
    font-size: var(--font-size-lg);
  }
  
  .feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-12);
  }
  
  .feature-card p {
    font-size: var(--font-size-base);
  }
  
  .feature-icon {
    font-size: 3em;
    margin-bottom: var(--space-16);
  }
}

/* Исправления для текста - предотвращение обрыва слов */
.sunrise-section-new *,
.sunrise-blocks-new *,
.hero-content *,
.feature-card * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Специальные правила для длинных слов */
.sunrise-section-new,
.sunrise-blocks-new {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Убираем скроллбары из всех блоков главной страницы */
.sunrise-section-new,
.sunrise-blocks-new,
.stat-item,
.feature-card {
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Плавные переходы для всех элементов */
* {
  transition: transform var(--duration-fast) var(--ease-standard), 
              box-shadow var(--duration-fast) var(--ease-standard), 
              border-color var(--duration-fast) var(--ease-standard), 
              background-color var(--duration-fast) var(--ease-standard);
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Печать */
@media print {
  .space-particles,
  .hero-background {
    display: none;
  }
  
  body {
    background: var(--color-background);
    color: var(--color-text);
  }
  
  .mw-body {
    background: var(--color-surface);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
}

/* Контейнер MainMenuAbout */
.mainmenu-about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto; 
}

/* Секция сообщества */
.community-links {
    overflow: hidden; /* Убираем любые скроллбары */
    padding: 10px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 15px; 
}

.social-link {
  display: flex;
  justify-content: center; 
  align-items: center;    
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 80px; 
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.social-link img {
  max-width: 100%;
  max-height: 60px; 
  object-fit: contain; 
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.05); 
}

@media (max-width: 500px) {
  .social-grid {
    grid-template-columns: 1fr; 
  }
}

/* Контент секций */
.about-content,
.help-content,
.other-projects {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    overflow: visible; 
    max-height: none; 
}

/* Убираем скроллбары везде где они могут появиться */
.mainmenu-about-container *,
.community-links *,
.social-grid *,
.social-link * {
    /* Для WebKit браузеров (Chrome, Safari) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.mainmenu-about-container *::-webkit-scrollbar,
.community-links *::-webkit-scrollbar,
.social-grid *::-webkit-scrollbar,
.social-link *::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-link {
        min-height: 120px;
    }
}

/* Улучшенное предупреждение о доработке страницы */
.sunrise-warning-banner {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse-warning 3s ease-in-out infinite alternate;
  font-weight: 600;
  font-size: 16px;
  max-width: 860px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.warning-icon {
  font-size: 28px;
  animation: bounce-warning 2s ease-in-out infinite;
}

.warning-text {
  flex-grow: 1;
  line-height: 1.4;
}

.warning-close {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #1f2937;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
  transform: rotate(0deg);
}

.warning-close:hover {
  color: #dc2626;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}

@keyframes pulse-warning {
  0% {
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  }
  100% {
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
  }
}

@keyframes bounce-warning {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.stat-item:last-child {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  animation: infinity-glow 4s ease-in-out infinite alternate;
}

.stat-item:last-child .stat-number {
  background: linear-gradient(45deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2em;
}

@keyframes infinity-glow {
  0% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}

.mw-collapsible-toggle a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
}

.mw-collapsible-toggle a:hover {
  color: var(--color-primary-hover);
}

.mw-collapsed .mw-collapsible-content {
  display: none;
}

/* Альтернативное решение для details/summary */
details.abbreviation-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

details.abbreviation-list summary {
  cursor: pointer;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 12px;
  user-select: none;
}

details.abbreviation-list summary:hover {
  color: #1d4ed8;
}

details.abbreviation-list[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

/* Адаптивность для предупреждения */
@media (max-width: 768px) {
  .sunrise-warning-banner {
    margin: 16px 12px;
    padding: 14px 18px;
    font-size: 15px;
  }
  
  .warning-icon {
    font-size: 24px;
  }
  
  .warning-close {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .sunrise-warning-banner {
    margin: 12px 8px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .warning-content {
    gap: 8px;
  }
}

.mw-collapsible-toggle {
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
border: none;
background: transparent;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.3s ease;
}

.mw-collapsible-toggle:hover {
color: var(--color-primary-hover, #1d4ed8);
background-color: var(--color-secondary, rgba(59, 130, 246, 0.1));
text-decoration: none;
}

.mw-collapsed .mw-collapsible-content {
display: none !important;
}

.mw-collapsible-content {
display: block;
}

.mw-customtoggle {
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
}

.mw-customtoggle:hover {
color: var(--color-primary-hover, #1d4ed8);
text-decoration: underline;
}

@keyframes infinity-glow {
  0% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}

.recentchanges-frame .mw-collapsible-content {
  max-height: 400px;
  overflow-y: auto; 
}

.mw-highlight,
.mw-geshi,
pre.mw-code {
position: relative;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-inset-sm);
overflow: auto; 
}

.mw-highlight pre,
pre.mw-code,
pre code {
white-space: pre; 
word-break: normal; 
overflow-wrap: normal;
hyphens: manual;
line-height: 1.4; 
letter-spacing: 0; 
margin: 0;
background: transparent;
border: 0;
padding: 12px 16px; 
font-family: var(--font-family-mono);
font-size: 13px;
}

.mw-highlight table {
border-collapse: collapse;
width: 100%;
}

.mw-highlight td.linenos,
.mw-highlight .linenos {
width: 3.5em; 
min-width: 3.5em;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding: 12px 8px;
vertical-align: top;
}

.mw-highlight td.code,
.mw-highlight .code {
padding: 0;
}

.mw-highlight td.code pre {
padding-left: 12px;
}

.mw-numbered-lines,
.line-numbers {
counter-reset: lineno;
}
.mw-numbered-lines > code > span,
.line-numbers > code > span {
display: block;
counter-increment: lineno;
}
.mw-numbered-lines > code > span::before,
.line-numbers > code > span::before {
content: counter(lineno);
display: inline-block;
width: 3.5em;
margin-right: 8px;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding-right: 8px;
}

.mw-highlight code,
.mw-geshi code {
background: transparent;
padding: 0;
border: 0;
box-shadow: none;
}

.mw-body .wikitable pre,
.mw-body .infobox pre {
overflow: auto;
}

.mw-highlight pre,
pre.mw-code {
overflow-x: auto;
overflow-y: hidden;
}

.mw-highlight pre,
pre.mw-code {
line-height: 1.5;
font-size: 13px;
}

.mw-highlight td.linenos { padding: 10px 8px; }
.mw-highlight td.code pre { padding-left: 14px; }

.mw-highlight td.linenos,
.mw-highlight td.code { vertical-align: top; }

.mw-highlight pre,
pre.mw-code,
pre code {
word-break: normal;
overflow-wrap: normal;
}

@media (max-width: 480px) {
.mw-highlight td.linenos { width: 3.2em; min-width: 3.2em; }
}