/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-400: oklch(70.4% 0.191 22.216);
    --color-red-900: oklch(39.6% 0.141 25.723);
    --color-blue-400: oklch(70.7% 0.165 254.624);
    --color-blue-500: oklch(62.3% 0.214 259.815);
    --color-blue-600: oklch(54.6% 0.245 262.881);
    --color-purple-600: oklch(55.8% 0.288 302.321);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-400: oklch(70.7% 0.022 261.325);
    --color-gray-500: oklch(55.1% 0.027 264.364);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-700: oklch(37.3% 0.034 259.733);
    --color-gray-800: oklch(27.8% 0.033 256.848);
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-gray-950: oklch(13% 0.028 261.692);
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-md: 28rem;
    --container-2xl: 42rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .inset-0 {
    inset: 0px;
  }
  .top-0 {
    top: 0px;
  }
  .top-4 {
    top: calc(var(--spacing) * 4);
  }
  .right-4 {
    right: calc(var(--spacing) * 4);
  }
  .left-0 {
    left: 0px;
  }
  .z-50 {
    z-index: 50;
  }
  .z-\[250\] {
    z-index: 250;
  }
  .z-\[300\] {
    z-index: 300;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }
  .mb-1 {
    margin-bottom: var(--spacing);
  }
  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .mb-10 {
    margin-bottom: calc(var(--spacing) * 10);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline-block {
    display: inline-block;
  }
  .table {
    display: table;
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-16 {
    height: calc(var(--spacing) * 16);
  }
  .h-full {
    height: 100%;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-1\/2 {
    width: calc(1 / 2 * 100%);
  }
  .w-2\/3 {
    width: calc(2 / 3 * 100%);
  }
  .w-3\/4 {
    width: calc(3 / 4 * 100%);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-16 {
    width: calc(var(--spacing) * 16);
  }
  .w-64 {
    width: calc(var(--spacing) * 64);
  }
  .w-full {
    width: 100%;
  }
  .max-w-2xl {
    max-width: var(--container-2xl);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .-translate-x-full {
    --tw-translate-x: -100%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .animate-pulse {
    animation: var(--animate-pulse);
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  :where(.space-y-1 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
    margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-4 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-6 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-r {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-gray-700 {
    border-color: var(--color-gray-700);
  }
  .border-gray-800 {
    border-color: var(--color-gray-800);
  }
  .bg-black\/50 {
    background-color: color-mix(in srgb, #000 50%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
    }
  }
  .bg-blue-600 {
    background-color: var(--color-blue-600);
  }
  .bg-gray-800 {
    background-color: var(--color-gray-800);
  }
  .bg-gray-800\/80 {
    background-color: color-mix(in srgb, oklch(27.8% 0.033 256.848) 80%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-gray-800) 80%, transparent);
    }
  }
  .bg-gray-900 {
    background-color: var(--color-gray-900);
  }
  .bg-gray-950 {
    background-color: var(--color-gray-950);
  }
  .bg-red-900\/30 {
    background-color: color-mix(in srgb, oklch(39.6% 0.141 25.723) 30%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-red-900) 30%, transparent);
    }
  }
  .bg-gradient-to-r {
    --tw-gradient-position: to right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }
  .from-blue-500 {
    --tw-gradient-from: var(--color-blue-500);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }
  .to-purple-600 {
    --tw-gradient-to: var(--color-purple-600);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }
  .bg-clip-text {
    background-clip: text;
  }
  .p-1 {
    padding: var(--spacing);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-8 {
    padding: calc(var(--spacing) * 8);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-1 {
    padding-block: var(--spacing);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-gray-300 {
    color: var(--color-gray-300);
  }
  .text-gray-400 {
    color: var(--color-gray-400);
  }
  .text-gray-500 {
    color: var(--color-gray-500);
  }
  .text-gray-600 {
    color: var(--color-gray-600);
  }
  .text-red-400 {
    color: var(--color-red-400);
  }
  .text-transparent {
    color: transparent;
  }
  .text-white {
    color: var(--color-white);
  }
  .italic {
    font-style: italic;
  }
  .placeholder-gray-600::placeholder {
    color: var(--color-gray-600);
  }
  .backdrop-blur {
    --tw-backdrop-blur: blur(8px);
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-300 {
    --tw-duration: 300ms;
    transition-duration: 300ms;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  @media (hover: hover) {
    .hover\:bg-blue-500:hover {
      background-color: var(--color-blue-500);
    }
    .hover\:bg-gray-700:hover {
      background-color: var(--color-gray-700);
    }
    .hover\:bg-gray-800:hover {
      background-color: var(--color-gray-800);
    }
    .hover\:text-gray-400:hover {
      color: var(--color-gray-400);
    }
    .hover\:text-white:hover {
      color: var(--color-white);
    }
  }
  .focus\:border-blue-500:focus {
    border-color: var(--color-blue-500);
  }
  .focus\:outline-none:focus {
    --tw-outline-style: none;
    outline-style: none;
  }
  @media (width >= 48rem) {
    .md\:ml-64 {
      margin-left: calc(var(--spacing) * 64);
    }
    .md\:hidden {
      display: none;
    }
    .md\:translate-x-0 {
      --tw-translate-x: 0px;
      translate: var(--tw-translate-x) var(--tw-translate-y);
    }
  }
}
h1 {
  padding: calc(var(--spacing) * 2);
  font-size: var(--text-3xl);
  line-height: var(--tw-leading, var(--text-3xl--line-height));
}
h2 {
  padding: calc(var(--spacing) * 2);
  font-size: var(--text-2xl);
  line-height: var(--tw-leading, var(--text-2xl--line-height));
}
h3 {
  padding: calc(var(--spacing) * 2);
  font-size: var(--text-xl);
  line-height: var(--tw-leading, var(--text-xl--line-height));
}
a {
  color: var(--color-blue-400);
  text-decoration-line: underline;
  &:visited {
    color: var(--color-gray-400);
  }
}
input {
  border-radius: 0.25rem;
  border-style: var(--tw-border-style);
  border-width: 1px;
  border-color: var(--color-gray-600);
}
.sidebar-hidden {
  display: none;
}
#sidebar nav a {
  color: var(--color-gray-300);
  text-decoration-line: none;
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-gradient-position {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-via {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-to {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-via-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --tw-gradient-via-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --tw-gradient-to-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-gradient-position: initial;
      --tw-gradient-from: #0000;
      --tw-gradient-via: #0000;
      --tw-gradient-to: #0000;
      --tw-gradient-stops: initial;
      --tw-gradient-via-stops: initial;
      --tw-gradient-from-position: 0%;
      --tw-gradient-via-position: 50%;
      --tw-gradient-to-position: 100%;
      --tw-font-weight: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
    }
  }
}

/* Eyevents.css - Стили для компонента событий */

/* Основной контейнер */
.eyevents-component {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    color: #e0e0e0;
}

/* Заголовок */
.eyevents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #333;
}

.eyevents-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 600;
}

/* Заголовок блога TaDaNN: ссылка-сброс фильтра, сохраняет градиентный вид */
.blog-title-link {
    color: inherit;
    text-decoration: none;
}

.blog-title-link:hover {
    text-decoration: underline;
}

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
    box-sizing: border-box;
    background: #333;
    color: #e0e0e0;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Кнопки */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.btn-success {
    background: #2196F3;
    color: white;
}

.btn-success:hover {
    background: #1976D2;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.btn-secondary {
    background: #444;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #555;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: #bbb;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #444;
    color: #fff;
}

/* Дерево событий */
.eyevents-tree-container {
    min-height: 200px;
}

.tree-node {
    user-select: none;
}

.tree-node-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.tree-node-content:hover {
    background: #2a2a2a;
}

.toggle-node {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    color: #bbb;
    font-size: 12px;
    margin-right: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toggle-node:hover {
    background: #444;
    color: #fff;
}

.toggle-placeholder {
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.event-subject {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    margin-right: 10px;
}

.event-tags {
    font-size: 12px;
    color: #90caf9;
    background: #1a3a5a;
    padding: 4px 10px;
    border-radius: 16px;
    margin-right: 10px;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.event-tags:hover {
    background: #0d2a4a;
}

.event-tags-add {
    font-size: 12px;
    color: #81c784;
    background: #1b3a2a;
    padding: 4px 10px;
    border-radius: 16px;
    margin-right: 10px;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.event-tags-add:hover {
    background: #2a5a3a;
    color: #a5d6a7;
}

.event-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.tree-node-content:hover .event-actions {
    opacity: 1;
}

.tree-node-children {
    margin-left: 0;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-tree {
    text-align: center;
    padding: 48px;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

/* Inline редактирование */
.inline-edit-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.inline-edit-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #66bb6a;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #333;
    color: #e0e0e0;
}

.inline-edit-input:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.2);
}

.inline-edit-actions {
    display: flex;
    gap: 8px;
}

.inline-edit-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.tree-node-content.editing {
    background: #2a3a4a;
}

/* Нижний разделитель списка карточек (был над формой быстрого добавления) */
.blog-footer-divider {
    margin-top: 24px;
    padding-top: 0;
    border-top: 1px solid #333;
}

/* Загрузка */
.eyevents-tree-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: #bbb;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #444;
    border-top: 3px solid #66bb6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Модальное окно подтверждения удаления */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    color: #e0e0e0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h4 {
    margin: 0 0 16px 0;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 600;
}

.modal-content p {
    margin: 0 0 12px 0;
    color: #bbb;
    line-height: 1.5;
}

.modal-content .warning {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 12px;
    padding: 8px;
    background: #3a2020;
    border-radius: 6px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.event-to-delete {
    font-weight: 600;
    color: #f44336;
}

/* Уведомления */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    cursor: pointer;
    word-wrap: break-word;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: #4CAF50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196F3;
}

.notification-warning {
    background: #ff9800;
}

.notification:hover {
    opacity: 0.9;
}


/* Адаптивность */
@media (max-width: 768px) {
    .eyevents-component {
        padding: 16px;
    }
    
    .eyevents-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .header-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .event-actions {
        opacity: 1;
    }
    
    .btn-icon {
        padding: 8px 12px;
    }
    
    .inline-edit-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .inline-edit-actions {
        justify-content: flex-end;
    }
    
    .inline-edit-actions .btn {
        width: auto;
    }
    
    .notification-container {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .eyevents-component {
        padding: 12px;
    }
    
    .eyevents-header h3 {
        font-size: 18px;
    }
    
    .tree-node-content {
        padding: 8px 12px;
    }
    
    .event-subject {
        font-size: 13px;
    }
    
    .event-tags {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* Анимация появления */
.eyevents-component {
    animation: componentFadeIn 0.4s ease;
}

@keyframes componentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для disabled состояния */
.btn:disabled,
.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Пагинация */
.eyevents-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #333;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: #444;
    border-color: #666;
}

.eyevents-pagination .page-btn.active {
    background: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
    font-weight: 600;
}

.eyevents-pagination .page-btn.active:hover {
    background: #45a049 !important;
}

.eyevents-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #888;
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tooltip */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 4px;
}

/* Панель управления списком (поиск + фильтры + добавить) — без рамки,
   просто висит над списком карточек */
.blog-toolbar {
    margin-bottom: 24px;
}

.blog-toolbar-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.blog-search-wrap {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.blog-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.search-clear:hover {
    color: #fff;
    background: #374151;
}

.blog-toolbar .search-input {
    width: 100%;
    padding: 10px 40px 10px 36px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.blog-toolbar .search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.blog-toolbar .btn {
    white-space: nowrap;
}

/* Иконки кнопок тулбара скрыты по умолчанию (на большом экране — текст) */
.blog-toolbar .btn-glyph {
    display: none;
}

/* До md (когда сайдбар уходит в бургер): кнопки → компактные иконки
   в одной строке с поиском; поиск не схлопывается */
@media (max-width: 767px) {
    .toggle-filters-btn .btn-label,
    .add-record-btn .btn-label {
        display: none;
    }

    .toggle-filters-btn .btn-glyph,
    .add-record-btn .btn-glyph {
        display: inline;
    }

    /* Компактные квадратные иконки фиксированного размера,
       гарантированно уже текстовых кнопок (flex: 0 0 34px не даёт растянуться) */
    .blog-toolbar-row > .toggle-filters-btn,
    .blog-toolbar-row > .add-record-btn {
        display: inline-flex;
        flex: 0 0 34px;
        align-items: center;
        justify-content: center;
        width: 34px;
        max-width: 34px;
        height: 34px;
        padding: 0;
        font-size: 15px;
        line-height: 1;
        box-sizing: border-box;
    }
}

.selected-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1f2937;
}

.selected-tags-label {
    color: #6b7280;
    font-size: 13px;
}

.selected-tags-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1f2937;
    color: #d1d5db;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
}

.selected-tag-remove {
    cursor: pointer;
    color: #9ca3af;
    font-weight: 700;
}

.selected-tag-remove:hover {
    color: #fff;
}

/* ============================================================
   Карточки блога (как список событий во front) — gray-900
   ============================================================ */
.eyevents-tree-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
}

.blog-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.blog-card-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
}

.blog-card .event-actions {
    flex-shrink: 0;
}

/* Обёртка статуса и действий в шапке карточки — справа, не растягивается */
.blog-card-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.blog-card-controls .event-actions {
    margin-left: 0;
}

/* Статус «опубликовано/снято» — всегда виден, вне блока .event-actions (hover-логики) */
.publish-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-event.is-published {
    color: #22c55e;
}

.publish-event.is-published:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}

.publish-event.is-unpublished {
    color: #eab308;
}

.publish-event.is-unpublished:hover {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.4);
}

.blog-card:hover .event-actions {
    opacity: 1;
}

/* Удалённые (мягко удалённые) записи: отличительный фон, действия видны всегда */
.blog-card.is-deleted {
    background: #1c1416;
    border-color: #7f1d1d;
}

.blog-card.is-deleted .blog-card-title {
    color: #9ca3af;
    text-decoration: line-through;
}

.blog-card.is-deleted .event-body {
    color: #6b7280;
}

.blog-card.is-deleted .event-actions {
    opacity: 1;
}

.blog-card.is-deleted .restore-event {
    color: #22c55e;
}

.blog-card.is-deleted .restore-event:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.blog-card.is-deleted .delete-forever-event {
    color: #ef4444;
}

.blog-card.is-deleted .delete-forever-event:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.event-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-chip {
    display: inline-block;
    background: #1f2937;
    color: #d1d5db;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 9999px;
}

.event-body {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* ============================================================
   Контейнер CSR-виджета навигации по тегам (стили — в tagNav.css)
   ============================================================ */
.blog-tag-nav {
    margin-bottom: 18px;
}

/* ============================================================
   «ещё» — превью с размытием внизу и раскрытие полного текста
   ============================================================ */
.blog-card-body {
    margin-top: 8px;
}

.blog-body-collapsed.has-more {
    position: relative;
    overflow: hidden;
    max-height: 240px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.blog-body-collapsed.has-more::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    pointer-events: none;
}

.blog-read-more {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 0;
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #93c5fd;
}

.blog-read-more:disabled {
    opacity: 0.6;
    cursor: wait;
}

.blog-body-full {
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.blog-body-full p {
    margin: 0 0 12px 0;
}

.blog-body-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-body-full h1,
.blog-body-full h2,
.blog-body-full h3,
.blog-body-full h4 {
    margin: 16px 0 8px 0;
    color: #fff;
    line-height: 1.3;
}

.blog-body-full ul,
.blog-body-full ol {
    margin: 0 0 12px 0;
    padding-left: 22px;
}

.blog-body-full blockquote {
    margin: 0 0 12px 0;
    padding: 8px 14px;
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #9ca3af;
}

.blog-body-full a {
    color: #60a5fa;
}

.blog-body-full table {
    border-collapse: collapse;
    margin: 0 0 12px 0;
    width: 100%;
}

.blog-body-full th,
.blog-body-full td {
    border: 1px solid #374151;
    padding: 6px 10px;
}

/* Инлайновый код в тексте записи */
.blog-body-full code {
    background: #1f2937;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    word-break: normal;
}

/* Блок программного кода (<pre><code>) в тексте записи */
.blog-body-full pre {
    background: #0d1117;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 0 0 12px 0;
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre;
    word-break: normal;
}

.blog-body-full pre code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ============================================================
   Форматированное превью тела в карточке (.blog-body-collapsed.blog-rich):
   то же оформление контента, что и в развёрнутом .blog-body-full.
   ============================================================ */
.blog-body-collapsed.blog-rich {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.blog-body-collapsed.blog-rich p {
    margin: 0 0 12px 0;
}

.blog-body-collapsed.blog-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 220px;    /* обложка не «раздувает» карточку */
}

.blog-body-collapsed.blog-rich h1,
.blog-body-collapsed.blog-rich h2,
.blog-body-collapsed.blog-rich h3,
.blog-body-collapsed.blog-rich h4 {
    margin: 16px 0 8px 0;
    color: #fff;
    line-height: 1.3;
}

.blog-body-collapsed.blog-rich ul,
.blog-body-collapsed.blog-rich ol {
    margin: 0 0 12px 0;
    padding-left: 22px;
}

.blog-body-collapsed.blog-rich blockquote {
    margin: 0 0 12px 0;
    padding: 8px 14px;
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #9ca3af;
}

.blog-body-collapsed.blog-rich a {
    color: #60a5fa;
}

.blog-body-collapsed.blog-rich table {
    border-collapse: collapse;
    margin: 0 0 12px 0;
    width: 100%;
}

.blog-body-collapsed.blog-rich th,
.blog-body-collapsed.blog-rich td {
    border: 1px solid #374151;
    padding: 6px 10px;
}

.blog-body-collapsed.blog-rich code {
    background: #1f2937;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    word-break: normal;
}

.blog-body-collapsed.blog-rich pre {
    background: #0d1117;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 0 0 12px 0;
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre;
    word-break: normal;
}

.blog-body-collapsed.blog-rich pre code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}




/* suggestedTags.css - Стили для компонента предлагаемых тегов */

.suggested-tags-container {
    padding: 4px 0 12px 0;
    min-height: 0;
}

.suggested-tags-label {
    font-size: 12px;
    color: #888;
    margin-right: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.suggested-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.suggested-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.suggested-tag:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565C0;
}

.suggested-tag.selected {
    background: #4CAF50;
    border-color: #388E3C;
    color: #fff;
}

.suggested-tag.selected:hover {
    background: #43A047;
    border-color: #2E7D32;
    color: #fff;
}

.suggested-tags-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.suggested-tags-loading .mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: suggestedSpin 0.8s linear infinite;
}

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

.suggested-tags-loading span {
    font-size: 12px;
    color: #999;
}

.suggested-tags-error {
    font-size: 12px;
    color: #f44336;
    padding: 4px 0;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .suggested-tags-label {
        color: #999;
    }

    .suggested-tag {
        color: #bbb;
        background: #333;
        border-color: #555;
    }

    .suggested-tag:hover {
        background: #1a3a5a;
        border-color: #1565C0;
        color: #90caf9;
    }

    .suggested-tag.selected {
        background: #388E3C;
        border-color: #2E7D32;
        color: #fff;
    }

    .suggested-tag.selected:hover {
        background: #43A047;
        border-color: #1B5E20;
        color: #fff;
    }

    .suggested-tags-loading .mini-spinner {
        border-color: #555;
        border-top-color: #66bb6a;
    }

    .suggested-tags-loading span {
        color: #888;
    }
}

/* Навигация по дереву тегов (CSR-виджет TagNav) */
.blog-tag-nav {
    margin-bottom: 18px;
}

.tag-nav-loading {
    color: #6b7280;
    font-size: 14px;
}

/* Строка предков — мелкий шрифт */
.tag-nav-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 6px;
}

.tag-nav-crumb {
    background: none;
    border: none;
    padding: 0;
    color: #60a5fa;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.tag-nav-crumb:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.tag-nav-sep {
    color: #4b5563;
}

/* Текущий тег — крупный */
.tag-nav-current {
    margin-bottom: 6px;
}

.tag-nav-current-name {
    display: inline-block;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
    cursor: default;
}

/* Дети / корни — средний шрифт, одинаковый */
.tag-nav-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-nav-child {
    display: inline-block;
    padding: 6px 16px;
    font-size: 16px;             /* средний */
    font-weight: 500;
    color: #d1d5db;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-nav-child:hover {
    background: #374151;
    color: #fff;
    border-color: #4b5563;
}

