.korepanov-reflectorium-card {
  display: grid;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  color: var(--ds-text, #172b4d);
  background: linear-gradient(145deg, var(--ds-surface, #fff) 0%, var(--ds-brand-subtle, #e9f2ff) 145%);
  border: 1px solid var(--ds-border, #dfe1e6);
  border-radius: var(--ds-radius, 6px);
  box-shadow: var(--ds-shadow, 0 8px 24px rgba(9, 30, 66, 0.12));
}

.korepanov-reflektorium-support-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147482000;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 9px;
  padding: 11px 15px;
  color: #fff;
  background: var(--ds-brand-bold, #0c66e4);
  border: 1px solid color-mix(in srgb, var(--ds-brand-bold, #0c66e4) 76%, #fff);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(9, 30, 66, 0.28);
  font: 700 0.82rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.korepanov-reflektorium-support-launcher svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentcolor;
}

.korepanov-reflektorium-support-launcher:hover {
  color: #fff;
  box-shadow: 0 15px 38px rgba(9, 30, 66, 0.34);
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.korepanov-reflektorium-support-launcher:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-brand, #579dff) 55%, #fff);
  outline-offset: 3px;
}

.korepanov-reflectorium-card--talkme {
  margin-top: 1rem;
}

.kvrf-talkme-drawer__content > .korepanov-reflectorium-card--talkme,
.kvrf-talkme-inline + .korepanov-reflectorium-card--talkme {
  width: 100%;
}

.korepanov-reflectorium-card__eyebrow {
  color: var(--ds-link, #0c66e4);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.korepanov-reflectorium-card__title {
  margin: 0;
  color: var(--ds-text, #172b4d);
  font-size: 1.08rem;
  line-height: 1.3;
}

.korepanov-reflectorium-card__description,
.korepanov-reflectorium-card__notice {
  margin: 0;
  color: var(--ds-text-subtle, #44546f);
  font-size: 0.86rem;
  line-height: 1.48;
}

.korepanov-reflectorium-card__notice {
  padding: 8px 9px;
  background: var(--ds-brand-subtle, #e9f2ff);
  border-left: 3px solid var(--ds-brand, #579dff);
  border-radius: var(--ds-radius, 4px);
}

.korepanov-reflectorium-preferences,
.korepanov-reflectorium-disconnect,
.korepanov-reflectorium-card > form {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.korepanov-reflectorium-modes {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.korepanov-reflectorium-modes legend {
  margin: 0 0 0.4rem;
  padding: 0;
  color: var(--ds-text, #172b4d);
  font-size: 0.82rem;
  font-weight: 700;
}

.korepanov-reflectorium-category-choice {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ds-border, #dfe1e6);
}

.korepanov-reflectorium-category-choice > strong {
  font-size: 0.8rem;
}

.korepanov-reflectorium-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ds-text, #172b4d);
  font-size: 0.84rem;
  line-height: 1.4;
  cursor: pointer;
}

.korepanov-reflectorium-choice input[type="checkbox"],
.korepanov-reflectorium-choice input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ds-brand-bold, #0c66e4);
}

.korepanov-reflectorium-choice input:disabled + span {
  color: var(--ds-text-subtle, #44546f);
  cursor: default;
}

.korepanov-reflectorium-card__notice--warning {
  background: #fff7d6;
  border-left-color: #e2b203;
}

.korepanov-reflectorium-card__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 7px 11px;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--ds-brand-bold, #0c66e4);
  border: 1px solid var(--ds-brand-bold, #0c66e4);
  border-radius: var(--ds-radius, 4px);
}

.korepanov-reflectorium-card__button:hover {
  color: #fff;
  filter: brightness(1.08);
  text-decoration: none;
}

.korepanov-reflectorium-card__button:focus-visible,
.korepanov-reflectorium-choice input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-brand, #579dff) 50%, transparent);
  outline-offset: 2px;
}

.korepanov-reflectorium-card__button--quiet {
  color: var(--ds-text-subtle, #44546f);
  background: transparent;
  border-color: var(--ds-border, #dfe1e6);
}

.korepanov-reflectorium-card__button--quiet:hover {
  color: var(--ds-text, #172b4d);
  background: var(--ds-brand-subtle, #e9f2ff);
}

.korepanov-reflectorium-post-fallback,
.korepanov-reflectorium-nojs {
  display: block;
  max-width: 820px;
  margin: 2rem 0 0;
}

.korepanov-reflectorium-nojs--category {
  margin: 2rem 40px;
}

@media (max-width: 860px) {
  .korepanov-reflectorium-side-panel {
    width: 100%;
    max-width: none;
  }

  .korepanov-reflectorium-nojs--category {
    margin: 1.5rem 16px;
  }
}

@media (max-width: 480px) {
  .korepanov-reflektorium-support-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
    padding-inline: 13px;
  }
}

/* Share the theme's measured notice offset so both actions stay clickable. */
body.ik-site-support-notice-visible .korepanov-reflektorium-support-launcher {
  bottom: calc(30px + var(--ik-site-support-notice-height, 0px));
}

@media (max-width: 860px) {
  body.ik-site-support-notice-visible .korepanov-reflektorium-support-launcher {
    bottom: calc(24px + var(--ik-site-support-notice-height, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .korepanov-reflektorium-support-launcher { transition: none; }
}

/* Compatibility with the theme's auth controls: navigation rules must not
   reveal hidden controls or override a login link's button colors. */
.ik-topnav [data-auth-only][hidden],
.ik-topnav [data-guest-only][hidden],
.ik-profile-menu-button[data-auth-only][hidden] {
  display: none !important;
}

.ik-topnav .ik-create-link {
  color: #fff;
  background: var(--ds-brand-bold);
}

.ik-topnav .ik-create-link:hover,
.ik-topnav .ik-create-link:focus-visible {
  color: #fff;
  background: #0055cc;
  text-decoration: none;
}
