:root {
  --bg: #f5f3ef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f1f2f6;
  --line: rgba(28, 34, 44, 0.1);
  --line-strong: rgba(28, 34, 44, 0.18);
  --text: #1f242c;
  --muted: #647082;
  --accent: #ff6f73;
  --accent-strong: #ff595f;
  --accent-soft: rgba(255, 111, 115, 0.14);
  --indigo: #2a2177;
  --indigo-soft: #5a45dd;
  --shadow: 0 24px 60px rgba(34, 37, 53, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1440px;
  --doc-sticky-offset: 20px;
  --doc-pane-height: calc(100dvh - var(--doc-sticky-offset) - 8px);
}

.product-shell {
  --content-width: 1360px;
}

.product-layout {
  display: grid;
  gap: 24px;
}

.product-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.product-hero h1 {
  max-width: 15ch;
}

.product-hero__panel {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 34, 44, 0.08);
}

.product-hero__panel strong {
  font-size: 1.4rem;
}

.product-hero__panel span {
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-grid--wide {
  margin-top: 18px;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 20px 46px rgba(34, 37, 53, 0.08);
}

.product-card--muted {
  background:
    linear-gradient(180deg, rgba(40, 30, 128, 0.98), rgba(76, 58, 186, 0.94));
  color: #fff;
}

.product-card--wide {
  min-height: 100%;
}

.product-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.product-card h2,
.product-card h3,
.product-workspace__head h2 {
  margin: 0 0 6px;
  letter-spacing: -0.04em;
}

.product-card p,
.product-workspace__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-card--muted p,
.product-card--muted .product-checklist {
  color: rgba(255, 255, 255, 0.82);
}

.product-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
  font-weight: 800;
}

.product-form {
  gap: 16px;
}

.product-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
}

.product-status {
  min-height: 22px;
  font-size: 0.92rem;
}

.product-status[data-tone="error"] {
  color: var(--accent-strong);
}

.product-status[data-tone="ok"] {
  color: #21815a;
}

.product-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.product-workspace {
  display: grid;
  gap: 18px;
}

.product-workspace__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(28, 34, 44, 0.08);
}

.product-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 20px 46px rgba(34, 37, 53, 0.06);
}

.product-section--directory {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 246, 255, 0.88)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.06), rgba(90, 69, 221, 0.08));
}

.product-section--admin {
  background: rgba(255, 255, 255, 0.74);
}

.product-admin-panel {
  gap: 0;
}

.product-admin-panel[hidden] {
  display: none;
}

.product-admin-panel__summary {
  cursor: pointer;
  list-style: none;
}

.product-admin-panel__summary::-webkit-details-marker {
  display: none;
}

.product-admin-panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f5fa;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-admin-panel[open] {
  gap: 18px;
}

.product-admin-panel[open] .product-admin-panel__toggle {
  color: transparent;
}

.product-admin-panel[open] .product-admin-panel__toggle::before {
  content: "Скрыть";
  color: var(--muted);
}

.product-grid--onboarding .product-card--wide {
  grid-column: 1 / -1;
}

.product-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.product-section__head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.product-section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-department-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.product-department-card:hover,
.product-department-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.3);
  box-shadow: 0 18px 36px rgba(255, 89, 95, 0.1);
}

.product-department-card strong {
  font-size: 1.15rem;
}

.product-department-card span {
  color: var(--muted);
  line-height: 1.45;
}

.product-department-card em {
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.product-department-view {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 34, 44, 0.08);
}

.product-department-view__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
}

.product-department-view__head h3 {
  margin: 0;
}

.product-department-view__head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-list--materials,
.product-list--regulations {
  margin-top: 4px;
}

.product-list-item,
.product-regulation-button {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.08);
  text-align: left;
  color: var(--text);
}

.product-list-item span,
.product-regulation-button span,
.product-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-list-item--action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.product-regulation-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.product-preview {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 1.7;
}

.product-reg-page {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-reg-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.product-reg-sidebar__card,
.product-reg-assistant,
.product-reg-article {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 20px 46px rgba(34, 37, 53, 0.08);
}

.product-reg-sidebar__card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-reg-sidebar__card > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-reg-sidebar__card nav {
  display: grid;
  gap: 7px;
}

.product-reg-toc__link {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(241, 242, 246, 0.74);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-reg-toc__link--level-3 {
  margin-left: 12px;
  color: var(--muted);
}

.product-reg-assistant {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-reg-assistant__head {
  display: grid;
  gap: 3px;
}

.product-reg-assistant__head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-reg-assistant form {
  display: grid;
  gap: 10px;
}

.product-reg-assistant textarea {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(28, 34, 44, 0.12);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.product-reg-answer {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-reg-answer strong {
  color: var(--text);
  font-weight: 600;
  line-height: 1.55;
}

.product-reg-answer ul {
  margin: 0;
  padding-left: 18px;
}

.product-reg-answer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-reg-answer__links a {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 111, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-reg-article {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.product-reg-hero {
  display: grid;
  gap: 8px;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 111, 115, 0.13), rgba(90, 69, 221, 0.1)),
    #fff;
  border: 1px solid rgba(255, 111, 115, 0.16);
}

.product-reg-hero span {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-reg-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.product-reg-hero p {
  margin: 0;
  color: var(--muted);
}

.product-reg-intro,
.product-reg-section {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.08);
}

.product-reg-section {
  display: grid;
  gap: 14px;
}

.product-reg-section--level-2 {
  border-left: 6px solid rgba(255, 111, 115, 0.58);
}

.product-reg-section__head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
}

.product-reg-section__head h2,
.product-reg-section__head h3,
.product-reg-section__head h4 {
  margin: 0;
}

.product-reg-section__body {
  display: grid;
  gap: 12px;
}

.page-product .product-preview .product-reg-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.page-product .product-preview .product-reg-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
}

.page-product .product-preview .product-reg-hero-card h1 {
  max-width: 22ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.page-product .product-preview .product-reg-hero-card .eyebrow {
  margin-bottom: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.page-product .product-preview .doc-entry-grid {
  gap: 8px;
}

.page-product .product-preview .doc-entry-card {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
}

.page-product .product-preview .product-reg-doc-grid {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 16px;
}

.page-product .product-preview .doc-sidebar {
  top: 18px;
}

.page-product .product-preview .sidebar-card {
  padding: 16px;
  border-radius: 20px;
}

.page-product .product-preview .sidebar-card__header {
  margin-bottom: 10px;
}

.page-product .product-preview .sidebar-card__header h2 {
  font-size: 1rem;
}

.page-product .product-preview .search-field input {
  min-height: 46px;
  border-radius: 14px;
}

.page-product .product-preview .toc-key-block {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.page-product .product-preview .toc-pill {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.page-product .product-preview .doc-toc .toc-link {
  padding: 6px 8px;
  font-size: 0.84rem;
}

.page-product .product-preview .doc-article {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 251, 253, 0.92));
}

.page-product .product-preview .article-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}

.page-product .product-preview .reg-section {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(28, 34, 44, 0.075);
  box-shadow: none;
}

.page-product .product-preview .reg-section--level-h1,
.page-product .product-preview .reg-section--level-h2 {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 0 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(28, 34, 44, 0.075);
  border-left: 3px solid rgba(42, 33, 119, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.page-product .product-preview .reg-section--level-h1::before,
.page-product .product-preview .reg-section--level-h2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 89, 95, 0.68), rgba(90, 69, 221, 0.34));
}

.page-product .product-preview .reg-section--has-subsections {
  padding: 0 18px 18px;
  border: 1px solid rgba(255, 89, 95, 0.22);
  border-left: 6px solid rgba(255, 89, 95, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 251, 253, 0.95)),
    linear-gradient(90deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.04));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 34px rgba(34, 37, 53, 0.06);
}

.page-product .product-preview .reg-section--level-h3,
.page-product .product-preview .reg-section--level-h4,
.page-product .product-preview .reg-section--level-h5 {
  border-left-width: 3px;
}

.page-product .product-preview .reg-section__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.page-product .product-preview .reg-section--level-h1 > .reg-section__head,
.page-product .product-preview .reg-section--level-h2 > .reg-section__head {
  margin: 0 -16px 14px;
  padding: 20px 16px 14px 18px;
  background:
    linear-gradient(180deg, rgba(255, 247, 248, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(255, 89, 95, 0.1), rgba(90, 69, 221, 0.04));
  border-bottom: 1px solid rgba(255, 89, 95, 0.14);
}

.page-product .product-preview .reg-section--has-subsections > .reg-section__head {
  margin-right: -18px;
  margin-left: -18px;
  padding-right: 18px;
  padding-left: 20px;
}

.page-product .product-preview .reg-section__body {
  gap: 8px;
}

.page-product .product-preview .doc-article h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

.page-product .product-preview .doc-article h2 {
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  line-height: 1.18;
}

.page-product .product-preview .doc-article h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.page-product .product-preview .doc-article h4,
.page-product .product-preview .doc-article h5 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.28;
}

.page-product .product-preview .doc-article p,
.page-product .product-preview .doc-article li,
.page-product .product-preview .doc-article blockquote {
  font-size: 0.92rem;
  line-height: 1.55;
}

.page-product .product-preview .doc-article p,
.page-product .product-preview .doc-article ul,
.page-product .product-preview .doc-article ol,
.page-product .product-preview .doc-article blockquote,
.page-product .product-preview .doc-article table,
.page-product .product-preview .doc-article hr {
  margin-bottom: 10px;
}

.page-product .product-preview .doc-article ul,
.page-product .product-preview .doc-article ol {
  padding-left: 1.1rem;
}

.page-product .product-preview .doc-article li + li {
  margin-top: 5px;
}

.page-product .product-preview .reg-subsection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.page-product .product-preview .reg-subsection-links > span {
  flex: 0 0 100%;
  font-size: 0.78rem;
}

.page-product .product-preview .reg-subsection-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 11px;
  background: rgba(247, 248, 251, 0.82);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.page-product .product-preview .qa-widget--product {
  left: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 2.4vw, 32px);
}

.page-product .product-preview .qa-widget--product .qa-thread {
  max-height: 280px;
  overflow-y: auto;
}

.page-product .product-preview .qa-widget--product .product-reg-answer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-product .product-preview .qa-widget--product .product-reg-answer__links a {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 111, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-preview > h2 {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 34, 44, 0.1);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.product-preview > h3,
.product-preview > h4 {
  margin-top: 10px;
}

.product-preview > p,
.product-preview > blockquote,
.product-preview > ul {
  margin: 0;
}

.product-preview > blockquote {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(255, 111, 115, 0.08);
}

.product-preview > table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.12);
}

.product-preview > table td {
  padding: 12px 14px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  vertical-align: top;
}

.product-preview > table tr:first-child td {
  background: var(--surface-muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .product-hero,
  .product-grid,
  .product-department-grid,
  .product-reg-page,
  .product-form__row {
    grid-template-columns: 1fr;
  }

  .product-workspace__head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-reg-sidebar {
    position: static;
  }

  .product-list-item--action {
    grid-template-columns: 1fr;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 111, 115, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(90, 69, 221, 0.18), transparent 32%),
    linear-gradient(180deg, #faf8f4 0%, var(--bg) 100%);
  min-height: 100vh;
}

body.page-reglam {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 54%, #ffffff 100%),
    var(--bg);
}

body.page-login {
  display: block;
}

body.reglam-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0 56px;
}

body.page-doc .site-shell {
  padding-bottom: 18px;
}

.site-credit {
  margin-top: 18px;
  color: rgba(100, 112, 130, 0.72);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

body.page-doc .site-credit {
  margin-top: 8px;
}

.login-layout {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
}

.login-card {
  width: min(100%, 760px);
  gap: 24px;
}

.login-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.login-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.login-field input {
  min-height: 58px;
}

.login-status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.scroll-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 111, 115, 0.96), rgba(255, 140, 136, 0.94));
  box-shadow: 0 18px 36px rgba(255, 89, 95, 0.22);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    box-shadow 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  box-shadow: 0 22px 42px rgba(255, 89, 95, 0.28);
}

.scroll-top span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #ff464d 0%, #ff7f83 55%, #ffb1b2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  animation: brand-pulse 3.2s ease-in-out infinite;
  transform-origin: center;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto auto;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.24);
}

@keyframes brand-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 0 0 rgba(255, 111, 115, 0);
    filter: saturate(1);
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 0 12px rgba(255, 111, 115, 0.12),
      0 14px 28px rgba(255, 89, 95, 0.18);
    filter: saturate(1.05);
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__text strong {
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

.brand__text span {
  font-size: 0.9rem;
  color: var(--muted);
}

.reglam-brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-width: 150px;
}

.reglam-brand--compact {
  width: 156px;
}

.reglam-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__meta,
.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.meta-pill,
.top-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

button.top-nav__link {
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.meta-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(36, 129, 204, 0.22);
  border-radius: 999px;
  background: rgba(231, 244, 255, 0.78);
  color: #2177b8;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.telegram-link:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 129, 204, 0.36);
  background: rgba(216, 238, 255, 0.92);
}

.telegram-link--header {
  min-height: 42px;
  padding: 0 16px;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 89, 95, 0.95), rgba(67, 62, 183, 0.9));
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(34, 37, 53, 0.1);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar img:not([hidden]) + span {
  display: none;
}

.exit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(28, 34, 44, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #667085;
  box-shadow: 0 10px 26px rgba(34, 37, 53, 0.08);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.exit-link:hover {
  transform: translateY(-1px);
  color: var(--accent-strong);
  border-color: rgba(255, 89, 95, 0.3);
  background: rgba(255, 245, 246, 0.9);
}

.exit-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.telegram-link--widget {
  align-self: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  flex: 0 0 42px;
}

.telegram-link__icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.top-nav__link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-strong), #ff8e8b);
  box-shadow: 0 16px 28px rgba(255, 89, 95, 0.2);
}

.top-nav__link:hover,
.top-nav__link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.28);
  box-shadow: 0 14px 28px rgba(34, 37, 53, 0.1);
}

.top-nav--dropdowns {
  gap: 10px;
}

.nav-menu {
  position: relative;
}

.nav-menu[open] {
  z-index: 40;
}

.nav-menu__button {
  list-style: none;
}

.nav-menu__button::-webkit-details-marker {
  display: none;
}

.nav-menu__button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-menu[open] .nav-menu__button::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 250px;
  padding: 8px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(34, 37, 53, 0.16);
  backdrop-filter: blur(18px);
}

.nav-menu__link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-menu__link:hover,
.nav-menu__link:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 89, 95, 0.08);
  color: var(--accent-strong);
}

.nav-menu__link.is-active {
  background: linear-gradient(135deg, rgba(255, 89, 95, 0.15), rgba(255, 142, 139, 0.2));
  color: var(--accent-strong);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.12), rgba(90, 69, 221, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(90, 69, 221, 0.26), transparent 68%);
}

.hero-card::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255, 111, 115, 0.24), transparent 70%);
}

.hero-card--home,
.hero-card--doc {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.7fr);
}

.hero-card--doc {
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.95fr);
}

.hero-card--solo {
  grid-template-columns: 1fr;
}

.hero-card__content,
.hero-card__aside {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #ffb2b3);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-card h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 40rem;
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #313845;
}

.hero-note {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions--compact {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
  box-shadow: 0 16px 30px rgba(255, 89, 95, 0.22);
}

.reglam-launch-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88) !important;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
  cursor: pointer;
}

.reglam-launch-button > span {
  display: block;
  color: inherit;
  opacity: 1;
  visibility: visible;
}

.button--secondary {
  color: var(--accent-strong);
  border: 1px solid rgba(255, 89, 95, 0.32);
  background: rgba(255, 255, 255, 0.7);
}

.glass-card,
.department-card,
.sidebar-card,
.doc-article {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glass-card {
  padding: 28px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(35, 26, 118, 0.98), rgba(65, 45, 167, 0.96));
  color: #fff;
}

.glass-card--doc-actions {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--text);
}

.glass-card__label {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glass-card--doc-actions .glass-card__label {
  background: rgba(90, 69, 221, 0.12);
  color: var(--indigo);
}

.glass-card__actions {
  display: grid;
  gap: 12px;
}

.doc-entry-grid {
  display: grid;
  gap: 8px;
}

.doc-entry-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 102px;
  padding: 18px 22px;
  border-radius: 24px;
  gap: 0;
  align-items: center;
}

.doc-entry-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90, 69, 221, 0.18), transparent 70%);
  pointer-events: none;
}

.doc-entry-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.04;
}

.doc-entry-card--dark {
  background:
    linear-gradient(180deg, rgba(40, 30, 128, 0.98), rgba(76, 58, 186, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(42, 33, 119, 0.22);
  color: #fff;
}

.doc-entry-card--dark:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 56px rgba(42, 33, 119, 0.28);
}

.doc-entry-card--light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.08));
  border-color: rgba(28, 34, 44, 0.08);
  box-shadow: 0 22px 48px rgba(34, 37, 53, 0.1);
  color: var(--text);
}

.doc-entry-card--light:hover,
.doc-entry-card--light-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(34, 37, 53, 0.14);
}

.doc-entry-card--light-alt {
  background:
    linear-gradient(180deg, rgba(248, 245, 255, 0.96), rgba(243, 240, 252, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.05), rgba(90, 69, 221, 0.1));
  border-color: rgba(90, 69, 221, 0.12);
  box-shadow: 0 20px 44px rgba(60, 52, 120, 0.1);
  color: var(--text);
}

.editor-controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0.38;
  transition: opacity 160ms ease;
}

.editor-move-controls {
  display: inline-flex;
  gap: 4px;
}

.reg-section:hover > .reg-section__head .editor-controls,
.reg-section:focus-within > .reg-section__head .editor-controls {
  opacity: 0.78;
}

.editor-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(43, 49, 62, 0.12);
  border-radius: 999px;
  background: rgba(248, 249, 252, 0.52);
  color: rgba(43, 49, 62, 0.54);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}

.editor-button--icon {
  width: 28px;
  min-width: 28px;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1;
}

.editor-button--secondary {
  color: rgba(43, 49, 62, 0.54);
  border-color: rgba(43, 49, 62, 0.1);
}

.editor-button:hover,
.editor-button:focus-visible {
  border-color: rgba(43, 49, 62, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(43, 49, 62, 0.78);
}

.editor-button:disabled {
  cursor: default;
  opacity: 0.34;
  background: rgba(248, 249, 252, 0.42);
}

.reg-risk-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border: 1px solid rgba(255, 89, 95, 0.42);
  border-radius: 999px;
  background: #fff7f7;
  color: #ff424c;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}

.reg-risk-pill__mark {
  transform: translateY(-1px);
}

.reg-risk-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 120;
  width: min(440px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid rgba(255, 89, 95, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(34, 37, 53, 0.22);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.42;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.reg-risk-tooltip > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #252b35;
}

.reg-risk-tooltip__item,
.reg-risk-tooltip__item > strong,
.reg-risk-tooltip a,
.reg-risk-tooltip em {
  display: block;
}

.reg-risk-tooltip__item {
  padding: 10px 0;
  border-top: 1px solid rgba(43, 49, 62, 0.08);
}

.reg-risk-tooltip__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.reg-risk-tooltip__item > strong {
  margin-bottom: 4px;
  color: #ff424c;
  font-size: 0.78rem;
}

.reg-risk-tooltip a {
  color: var(--indigo);
  text-decoration: none;
}

.reg-risk-tooltip em {
  margin-top: 4px;
  color: #4b5565;
  font-style: normal;
  font-weight: 500;
}

.reg-risk-pill:hover .reg-risk-tooltip,
.reg-risk-pill:focus-visible .reg-risk-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="op"]) .reg-section--level-h1,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="op"]) .reg-section--level-h2 {
  overflow: visible;
}

.editor-admin-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(90, 69, 221, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--indigo);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.editor-admin-trigger:hover,
.editor-admin-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 37, 53, 0.1);
}

.editor-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 23, 31, 0.46);
  backdrop-filter: blur(6px);
}

.editor-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 24px));
  max-height: min(88vh, 920px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 68px rgba(34, 37, 53, 0.22);
}

.editor-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-panel__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.editor-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-risk-trigger {
  border-color: rgba(255, 89, 95, 0.22);
  color: var(--accent-strong);
}

.editor-risk-trigger:disabled {
  opacity: 0.7;
  cursor: wait;
}

.editor-toolbar__hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 34, 44, 0.12);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

.editor-field textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.editor-body {
  min-height: 240px;
  padding: 14px;
  border: 1px solid rgba(28, 34, 44, 0.12);
  border-radius: 18px;
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.7;
  overflow: auto;
}

.editor-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 16px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 12px 28px rgba(34, 37, 53, 0.12);
}

.editor-findings {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 244, 221, 0.92);
  border: 1px solid rgba(255, 198, 92, 0.3);
}

.editor-findings strong {
  font-size: 0.92rem;
}

.editor-findings ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.editor-findings a {
  color: var(--accent-strong);
}

.editor-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-actions--with-delete {
  justify-content: space-between;
}

.editor-actions__save {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.button--danger {
  border-color: rgba(255, 93, 107, 0.28);
  background: rgba(255, 93, 107, 0.06);
  color: rgba(255, 70, 86, 0.82);
}

.button--danger:hover {
  border-color: rgba(255, 93, 107, 0.42);
  background: rgba(255, 93, 107, 0.1);
  color: var(--accent-strong);
}

.editor-panel--access {
  width: min(900px, calc(100vw - 24px));
}

.editor-panel--term {
  width: min(640px, calc(100vw - 24px));
}

.term-add-trigger {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(90, 69, 221, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--indigo);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.term-add-trigger:hover {
  background: rgba(90, 69, 221, 0.08);
}

.access-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 150px 190px auto;
  gap: 12px;
  align-items: end;
}

.access-form__actions {
  display: flex;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.access-group {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 20px;
  background: rgba(248, 249, 252, 0.92);
}

.access-group--editors {
  border-color: rgba(90, 69, 221, 0.14);
  background: rgba(246, 245, 255, 0.72);
}

.access-group--department {
  background: rgba(255, 255, 255, 0.74);
}

.access-group strong {
  font-size: 0.95rem;
}

.access-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.08);
}

.access-item__email {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.access-item__remove {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 89, 95, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.access-item__remove:disabled {
  cursor: default;
  opacity: 0.45;
}

.access-item__locked {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(43, 49, 62, 0.055);
  color: rgba(43, 49, 62, 0.48);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.access-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0 24px;
  border-radius: 24px;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(108, 89, 221, 0.8), rgba(90, 73, 196, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 36px rgba(24, 20, 86, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 42px rgba(24, 20, 86, 0.18);
}

.quick-link--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 36px rgba(255, 89, 95, 0.26);
}

.quick-link--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 42px rgba(255, 89, 95, 0.32);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.home-layout {
  display: grid;
  gap: 28px;
}

.site-footer {
  padding: 18px 0 0;
  color: #98a2b3;
  font-size: 0.78rem;
  text-align: center;
}

.reglam-shell {
  width: min(calc(100% - 40px), 1180px);
  padding-bottom: 34px;
}

.reglam-header {
  min-height: 54px;
  margin-bottom: 18px;
}

.reglam-header__nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reglam-landing {
  display: grid;
  gap: 28px;
}

.reglam-hero {
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 34px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 247, 0.92)),
    #ffffff;
  box-shadow: 0 28px 70px rgba(34, 37, 53, 0.1);
}

.reglam-hero h1 {
  max-width: 20ch;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 4.2vw, 4.55rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.reglam-hero .hero-lead {
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.reglam-preview {
  overflow: hidden;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(34, 37, 53, 0.14);
}

.reglam-preview__bar {
  display: flex;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
  background: #fbfcff;
}

.reglam-preview__bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.48);
  animation: reglam-preview-typing-dot 1.18s ease-in-out infinite;
}

.reglam-preview__bar span:nth-child(2) {
  background: rgba(90, 69, 221, 0.34);
  animation-delay: 0.16s;
}

.reglam-preview__bar span:nth-child(3) {
  background: rgba(34, 37, 53, 0.18);
  animation-delay: 0.32s;
}

.reglam-preview__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.reglam-preview__doc,
.reglam-preview__chat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
}

.reglam-preview__doc {
  border: 1px solid rgba(28, 34, 44, 0.08);
  background: #f8fafc;
}

.reglam-preview__doc strong,
.reglam-preview__chat strong {
  font-size: 1rem;
  line-height: 1.35;
}

.reglam-preview__doc p,
.reglam-preview__chat p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.reglam-preview__chat {
  margin-left: 44px;
  background: linear-gradient(135deg, rgba(255, 89, 95, 0.11), rgba(90, 69, 221, 0.08));
}

.reglam-preview__chat span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reglam-features {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(34, 37, 53, 0.07);
}

.reglam-section-head {
  display: grid;
  gap: 6px;
}

.reglam-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.reglam-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reglam-feature {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 18px;
  background: #fbfcff;
}

.reglam-feature span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.reglam-feature h3 {
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.reglam-feature p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.55;
}

.reglam-feature--wide {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(190px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  min-height: auto;
  gap: 18px;
  padding: 22px 24px;
}

.reglam-feature--wide h3 {
  font-size: 1.2rem;
}

.reglam-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reglam-modal[hidden] {
  display: none !important;
}

.reglam-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reglam-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 34, 44, 0.28);
  backdrop-filter: blur(12px);
}

.reglam-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px rgba(34, 37, 53, 0.24);
}

.reglam-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.reglam-modal__step {
  display: grid;
  gap: 14px;
}

.reglam-modal__step h2 {
  max-width: calc(100% - 44px);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
}

.reglam-modal__step p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.reglam-auth-form {
  display: grid;
  gap: 12px;
}

.reglam-company-grid {
  display: grid;
  gap: 10px;
}

.reglam-company-tile,
.reglam-company-empty {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 18px;
  background: #fbfcff;
  color: var(--text);
  text-align: left;
}

.reglam-company-tile {
  cursor: pointer;
  font: inherit;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.reglam-company-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.28);
  box-shadow: 0 14px 32px rgba(34, 37, 53, 0.1);
}

.reglam-company-tile span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reglam-company-tile strong,
.reglam-company-empty strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.reglam-company-tile small,
.reglam-company-empty span {
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.45;
}

.reglam-company-tile--create {
  background: linear-gradient(135deg, rgba(255, 89, 95, 0.08), rgba(90, 69, 221, 0.07)), #ffffff;
}

.home-entry-grid {
  display: grid;
  gap: 18px;
  min-height: 100%;
  grid-template-columns: 1fr;
}

.home-entry-card,
.department-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.home-entry-card::before,
.department-card::before {
  content: "";
  position: absolute;
  inset: auto -32px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90, 69, 221, 0.2), transparent 70%);
}

.home-entry-card {
  display: grid;
  gap: 12px;
  min-height: 144px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(40, 30, 128, 0.98), rgba(76, 58, 186, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(42, 33, 119, 0.22);
  color: #fff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.home-entry-card:hover,
.home-entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 56px rgba(42, 33, 119, 0.28);
  filter: saturate(1.08);
  outline: none;
}

.home-entry-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.08));
  border-color: rgba(28, 34, 44, 0.08);
  box-shadow: 0 22px 48px rgba(34, 37, 53, 0.1);
  color: var(--text);
}

.home-entry-card__badge,
.department-card__badge {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 18px;
}

.home-entry-card__badge {
  margin-bottom: 0;
}

.home-entry-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

body[data-page="psk"] .hero-card--home {
  grid-template-columns: 1fr;
}

body[data-page="psk"] .hero-card h1 {
  max-width: none;
  white-space: nowrap;
  font-size: 5rem;
}

body[data-page="psk"] .home-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="psk"] .home-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  padding: 20px 24px;
  border-radius: 24px;
}

body[data-page="psk"] .home-entry-card::after {
  content: "→";
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  font-size: 1.1rem;
  font-weight: 900;
  transform: translateX(0);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

body[data-page="psk"] .home-entry-card:nth-child(even)::after {
  background: rgba(255, 89, 95, 0.1);
}

body[data-page="psk"] .home-entry-card:hover,
body[data-page="psk"] .home-entry-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 32px 62px rgba(42, 33, 119, 0.3);
}

body[data-page="psk"] .home-entry-card:hover::after,
body[data-page="psk"] .home-entry-card:focus-visible::after {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.28);
}

body[data-page="psk"] .home-entry-card:nth-child(even):hover,
body[data-page="psk"] .home-entry-card:nth-child(even):focus-visible {
  border-color: rgba(255, 89, 95, 0.34);
  box-shadow: 0 26px 52px rgba(34, 37, 53, 0.15);
}

body[data-page="psk"] .home-entry-card:nth-child(even):hover::after,
body[data-page="psk"] .home-entry-card:nth-child(even):focus-visible::after {
  background: rgba(255, 89, 95, 0.16);
}

body[data-page="psk"] .home-entry-card:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.08));
  border-color: rgba(28, 34, 44, 0.08);
  box-shadow: 0 18px 38px rgba(34, 37, 53, 0.08);
  color: var(--text);
}

body[data-page="psk"] .home-entry-card strong {
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
}

body[data-page="psk"] .home-entry-card__badge {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.sidebar-card--change-log p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.company-shell {
  width: min(calc(100% - 40px), 1180px);
  padding-bottom: 34px;
}

.company-layout {
  display: grid;
  gap: 22px;
}

.company-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 26px;
  min-height: 330px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 247, 0.9)),
    #ffffff;
  box-shadow: 0 28px 70px rgba(34, 37, 53, 0.1);
}

.company-hero h1 {
  max-width: 12ch;
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.company-hero .hero-lead {
  max-width: 50rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.company-hero__note {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 89, 95, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(34, 37, 53, 0.08);
}

.company-hero__note strong {
  font-size: 1.08rem;
}

.company-hero__note span {
  color: #667085;
  line-height: 1.55;
}

.company-section {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 52px rgba(34, 37, 53, 0.08);
}

.company-section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.company-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-reg-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 22px;
  background: #fbfcff;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(34, 37, 53, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.company-reg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 89, 95, 0.28);
  box-shadow: 0 18px 40px rgba(34, 37, 53, 0.1);
}

.company-reg-card span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.company-reg-card strong {
  font-size: clamp(1.24rem, 2vw, 1.62rem);
  line-height: 1.14;
}

.company-reg-card p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.department-card h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.department-card p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: #38404d;
}

.department-card__stats {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.doc-layout {
  display: grid;
  gap: 26px;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.doc-sidebar {
  position: sticky;
  top: var(--doc-sticky-offset);
  display: grid;
  gap: 16px;
  max-height: var(--doc-pane-height);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sidebar-card__header h2 {
  font-size: 1.15rem;
}

.sidebar-card__header a,
.sidebar-card__header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-note {
  margin: 0 0 16px;
  color: #414957;
  line-height: 1.65;
  font-size: 0.95rem;
}

.qa-widget {
  position: fixed;
  left: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 34;
  display: grid;
  gap: 12px;
  justify-items: start;
  pointer-events: none;
}

.qa-widget > * {
  pointer-events: auto;
}

.qa-widget__teaser {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.08));
  box-shadow: 0 24px 48px rgba(34, 37, 53, 0.14);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  animation: qa-widget-pulse 3.6s ease-in-out infinite;
}

.qa-widget.is-open .qa-widget__teaser {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.qa-widget__teaser:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 54px rgba(34, 37, 53, 0.18);
}

.qa-widget.is-nudging .qa-widget__teaser {
  width: min(430px, calc(100vw - 28px));
  height: auto;
  min-height: 88px;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 26px;
  animation: qa-widget-nudge-pulse 2.4s ease-in-out infinite;
}

.qa-widget__teaser::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(31, 36, 44, 0.9);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  pointer-events: none;
}

.qa-widget__teaser:hover::before,
.qa-widget__teaser:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.qa-widget.is-nudging .qa-widget__teaser::before {
  display: none;
}

.qa-widget__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 250, 0.86));
  box-shadow:
    0 14px 28px rgba(34, 37, 53, 0.1),
    0 0 0 6px rgba(255, 111, 115, 0.08);
}

.qa-widget__avatar-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6f73, #5a45dd);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
}

.qa-widget__avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 111, 115, 0.18);
  opacity: 0.9;
}

.qa-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-widget__teaser-copy {
  display: none;
  min-width: 0;
  text-align: left;
}

.qa-widget.is-nudging .qa-widget__teaser-copy {
  display: grid;
  gap: 4px;
}

.qa-widget__teaser-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.qa-widget__teaser-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.qa-widget__avatar--large {
  width: 54px;
  height: 54px;
}

.qa-widget__panel {
  box-sizing: border-box;
  width: min(430px, calc(100vw - 28px));
  min-width: 0;
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.07));
  box-shadow: 0 28px 64px rgba(34, 37, 53, 0.18);
  backdrop-filter: blur(18px);
}

.qa-widget__panel.is-chatting {
  height: min(78vh, 760px);
}

.qa-widget__panel[hidden] {
  display: none !important;
}

.qa-widget__panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qa-widget__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.qa-widget__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-widget__identity-copy {
  display: grid;
  gap: 2px;
}

.qa-widget__identity-copy strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.qa-widget__identity-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.qa-widget__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.qa-thread {
  grid-row: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 10px 6px 10px 10px;
  border: 1px solid rgba(255, 89, 95, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 245, 246, 0.56)),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.qa-thread[hidden] {
  display: none !important;
}

.qa-message {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.qa-message__bubble {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(34, 37, 53, 0.06);
}

.qa-message--assistant {
  justify-self: start;
  color: #313845;
}

.qa-message--assistant .qa-message__bubble {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-top-left-radius: 8px;
}

.qa-message--user {
  justify-self: end;
  flex-direction: row-reverse;
  margin-left: auto;
  max-width: 88%;
  color: #fff;
}

.qa-message--user .qa-message__bubble {
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
  color: #fff;
  border-top-right-radius: 8px;
}

.qa-message__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(34, 37, 53, 0.08);
}

.qa-message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-message__avatar--assistant {
  background: linear-gradient(135deg, #d85d90, #7b4fe0);
}

.qa-message__avatar--user {
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
}

.qa-message a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.qa-message--user a {
  color: #ffffff;
}

.qa-form--widget {
  grid-row: 2;
  gap: 6px;
}

.qa-form {
  display: grid;
  gap: 8px;
}

.qa-mode-switch {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid rgba(255, 89, 95, 0.14);
  border-radius: 999px;
  background: rgba(247, 248, 252, 0.92);
}

.qa-mode-switch[hidden] {
  display: none !important;
}

.qa-mode-switch__button {
  min-width: 78px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.qa-mode-switch__button.is-active {
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(34, 37, 53, 0.08);
}

.qa-form.is-loading .button {
  opacity: 0.72;
  pointer-events: none;
}

.qa-input-wrap {
  position: relative;
  min-width: 0;
}

.qa-field {
  display: block;
  min-width: 0;
}

.qa-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 58px;
  resize: vertical;
  padding: 10px 46px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.qa-field textarea:focus {
  border-color: rgba(255, 89, 95, 0.5);
  box-shadow: 0 0 0 5px rgba(255, 89, 95, 0.1);
}

.qa-emoji-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 89, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #667085;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 37, 53, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.qa-emoji-toggle:hover,
.qa-emoji-toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.34);
  color: var(--accent-strong);
}

.qa-emoji-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 6px;
  max-width: min(244px, 100%);
  padding: 8px;
  border: 1px solid rgba(255, 89, 95, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 248, 0.96)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(34, 37, 53, 0.16);
}

.qa-emoji-menu[hidden] {
  display: none !important;
}

.qa-emoji-menu button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 1.14rem;
  line-height: 1;
  cursor: pointer;
}

.qa-emoji-menu button:hover {
  background: rgba(255, 89, 95, 0.1);
}

.qa-actions {
  display: flex;
  gap: 12px;
}

.qa-actions .button--primary {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.qa-status {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.qa-status:empty {
  display: none;
}

.qa-suggestion {
  padding: 10px 14px;
  border: 1px solid rgba(255, 89, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 111, 115, 0.08);
  color: #38404d;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.qa-suggestion:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.36);
  background: rgba(255, 111, 115, 0.12);
}

.qa-draft {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.qa-draft__field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.qa-draft__field span,
.qa-draft__preview > span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qa-draft__field input,
.qa-draft__field select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.qa-draft__readonly {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 36, 46, 0.1);
  border-radius: 12px;
  background: #f7f8fc;
  color: #38404d;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qa-draft__preview {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.qa-draft__preview > div {
  min-width: 0;
  max-width: 100%;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(32, 36, 46, 0.1);
  border-radius: 14px;
  background: #fbfcff;
}

.qa-draft__preview p {
  margin: 0 0 10px;
}

.qa-draft__preview p:last-child {
  margin-bottom: 0;
}

.qa-draft__preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.qa-draft__preview th,
.qa-draft__preview td {
  padding: 8px;
  border: 1px solid rgba(32, 36, 46, 0.1);
  text-align: left;
  vertical-align: top;
}

.qa-draft__ok,
.qa-draft__saved {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 162, 122, 0.08);
  color: #146c54;
  font-size: 0.9rem;
}

.qa-draft__saved {
  display: grid;
  gap: 4px;
}

.qa-draft__findings {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 89, 95, 0.2);
  border-radius: 14px;
  background: #fff7f7;
  color: #313845;
  font-size: 0.9rem;
}

.qa-draft__findings ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-draft__findings li {
  display: grid;
  gap: 2px;
}

.qa-draft__findings li span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qa-draft__findings a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.qa-draft__findings small {
  color: #667085;
  line-height: 1.45;
}

.qa-draft__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-status {
  grid-row: 3;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.78rem;
}

.qa-status:empty {
  display: none;
}

.qa-answer {
  position: relative;
  margin-top: 0;
}

.qa-answer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.qa-mode {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.qa-mode--retrieval,
.qa-mode--default {
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
}

.qa-mode--rag {
  background: rgba(255, 111, 115, 0.12);
  color: var(--accent-strong);
}

.qa-confidence {
  color: var(--muted);
  font-size: 0.8rem;
}

.qa-answer__lead {
  margin: 0 0 9px;
  line-height: 1.5;
  color: #303744;
}

.qa-answer.is-thinking {
  justify-self: start;
  width: max-content;
  min-width: 0;
  max-width: max-content;
  white-space: nowrap;
}

.qa-answer.is-thinking .qa-message__bubble {
  padding: 6px 9px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(34, 37, 53, 0.05);
}

.qa-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  color: #465164;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

.qa-typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.qa-typing__dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.82);
  animation: qa-typing-dot 1s ease-in-out infinite;
}

.qa-typing__dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.qa-typing__dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.qa-answer.is-typing::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.85);
  animation: qa-caret-blink 0.9s steps(1, end) infinite;
}

.qa-answer__list {
  margin: 0 0 10px;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.qa-answer__list li {
  color: #303744;
  line-height: 1.5;
}

.qa-answer__sources {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.qa-answer__source-list {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
}

.qa-citation {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.06);
  color: var(--indigo);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes qa-widget-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 24px 48px rgba(34, 37, 53, 0.14),
      0 0 0 0 rgba(255, 111, 115, 0);
  }

  50% {
    transform: translateY(-2px) scale(1.015);
    box-shadow:
      0 28px 56px rgba(34, 37, 53, 0.18),
      0 0 0 12px rgba(255, 111, 115, 0.08);
  }
}

@keyframes qa-widget-nudge-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 24px 48px rgba(34, 37, 53, 0.14),
      0 0 0 0 rgba(90, 69, 221, 0);
  }

  50% {
    transform: translateY(-2px) scale(1.012);
    box-shadow:
      0 30px 60px rgba(34, 37, 53, 0.2),
      0 0 0 10px rgba(90, 69, 221, 0.09);
  }
}

@keyframes qa-caret-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes qa-typing-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes reglam-preview-typing-dot {
  0%,
  70%,
  100% {
    opacity: 0.46;
    transform: translateY(0) scale(0.92);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reglam-preview__bar span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-field input:focus {
  border-color: rgba(255, 89, 95, 0.5);
  box-shadow: 0 0 0 5px rgba(255, 89, 95, 0.1);
}

.search-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.search-result {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid transparent;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.28);
}

.search-result strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.search-result span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 111, 115, 0.08);
  border: 1px solid rgba(255, 89, 95, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.related-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.3);
  background: rgba(255, 111, 115, 0.12);
}

.related-link strong {
  font-size: 0.98rem;
}

.related-link span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.doc-toc .toc > ul,
.doc-toc .toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc .toc-list {
  display: grid;
  gap: 10px;
}

.doc-toc .toc-item {
  display: grid;
  gap: 8px;
}

.doc-toc .toc-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.doc-toc .toc-item > .toc-list {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.doc-toc.is-collapsible-ready .toc-item-has-children:not(.is-expanded) > .toc-list {
  display: none;
}

.doc-toc .toc-link {
  display: inline-flex;
  width: fit-content;
  padding: 5px 0;
  color: #2e3642;
  line-height: 1.5;
  transition: color 160ms ease;
}

.toc-toggle {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #f5f6fb;
  color: #667085;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.toc-toggle span {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.toc-item.is-expanded > .toc-node .toc-toggle span {
  transform: rotate(225deg) translate(-1px, -1px);
}

.toc-toggle:hover,
.toc-toggle:focus-visible {
  background: #eceefe;
  color: var(--accent-strong);
  outline: none;
}

.doc-toc .toc-level-1 > .toc-node > .toc-toggle {
  display: none;
}

.doc-toc .toc-link:hover,
.doc-toc .toc-link.is-active {
  color: var(--accent-strong);
}

.doc-toc .toc-link-level-1 {
  font-weight: 800;
}

.doc-toc .toc-link-level-2 {
  font-weight: 700;
}

.doc-toc .toc-link-level-3 {
  color: #555f70;
  font-size: 0.95rem;
}

.toc-key-block {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.toc-key-block__title,
.toc-full-title {
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-key-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc-key-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.toc-key-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  flex: 0 1 auto;
}

.toc-key-pills--children {
  gap: 6px;
  padding-left: 0;
}

.toc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 111, 115, 0.1);
  color: #313845;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.toc-pill--section {
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 0 13px;
  background:
    linear-gradient(135deg, rgba(255, 111, 115, 0.14), rgba(255, 184, 186, 0.24)),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 111, 115, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 800;
}

.toc-pill--solo {
  flex: 0 0 auto;
}

.toc-pill--child {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 111, 115, 0.08);
  border-color: rgba(255, 111, 115, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}

.toc-pill:hover,
.toc-pill.is-active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-strong), #ff8c88);
  color: #fff;
}

.doc-content {
  min-width: 0;
  max-height: var(--doc-pane-height);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.doc-article {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 111, 115, 0.03), transparent);
  overflow-x: hidden;
}

.doc-article > :first-child {
  margin-top: 0;
}

.change-log {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.94)),
    #fff;
  box-shadow: 0 18px 42px rgba(34, 37, 53, 0.08);
}

.change-log__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.change-log__head .eyebrow {
  margin-bottom: 10px;
}

.change-log__head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.change-log__head p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.change-log__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.change-log__filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.change-log__filter:hover,
.change-log__filter:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.32);
}

.change-log__filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #ff7f7f);
  color: #fff;
}

.change-log__table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 18px;
  background: #fff;
}

.change-log__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(120px, 0.7fr) minmax(0, 2.4fr);
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(28, 34, 44, 0.07);
  color: #38404d;
  line-height: 1.45;
}

.change-log__row:first-child {
  border-top: 0;
}

.change-log__row--head {
  background: rgba(248, 249, 252, 0.92);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.change-log__row span:nth-child(1),
.change-log__row span:nth-child(2) {
  font-weight: 800;
}

.change-log__empty {
  margin: 0;
  color: var(--muted);
}

.utility-layout {
  display: grid;
  gap: 22px;
}

.page-utility .hero-card h1 {
  max-width: none;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.02;
}

.change-log--standalone {
  margin-top: 0;
}

.access-manager {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.94)),
    #fff;
  box-shadow: 0 18px 42px rgba(34, 37, 53, 0.08);
}

.access-manager__nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.access-manager__tab {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.access-manager__tab:hover,
.access-manager__tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 89, 95, 0.28);
  box-shadow: 0 14px 28px rgba(34, 37, 53, 0.08);
}

.access-manager__tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-strong), #ff8e8b);
  color: #fff;
}

.access-manager__content {
  min-width: 0;
}

.access-panel {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(255, 89, 95, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 249, 0.88)),
    #fff;
}

.access-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.access-panel__head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.access-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.access-panel__counter {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.access-email-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-email-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: auto;
  padding: 12px 14px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #344054;
  font-weight: 800;
  overflow: hidden;
}

.access-email-item__person {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.access-email-item__person strong,
.access-email-item__person span {
  overflow-wrap: anywhere;
}

.access-email-item__person strong {
  color: var(--text);
  line-height: 1.25;
}

.access-email-item__person span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.access-email-item__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.access-email-item__meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(90, 69, 221, 0.08);
  color: var(--indigo);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.access-email-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 89, 95, 0.1);
  color: var(--accent-strong);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 32px;
}

.access-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.access-add-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.access-add-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 34, 44, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

.access-add-form input:focus {
  outline: 3px solid rgba(255, 89, 95, 0.16);
  border-color: rgba(255, 89, 95, 0.38);
}

.access-department-checks {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.access-department-checks legend {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.access-department-checks > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  cursor: pointer;
}

.access-check input {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
}

.access-add-form__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.access-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.access-status[data-tone="error"] {
  color: var(--accent-strong);
}

body[data-page="kc-terms"] .doc-layout,
body[data-page="okk-terms"] .doc-layout {
  gap: 16px;
}

body[data-page="kc-terms"] .hero-card--doc,
body[data-page="okk-terms"] .hero-card--doc {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  padding: 24px;
  border-radius: 24px;
}

body[data-page="kc-terms"] .hero-card h1,
body[data-page="okk-terms"] .hero-card h1 {
  font-size: clamp(2rem, 2.6vw, 2.7rem);
}

body[data-page="kc-terms"] .eyebrow,
body[data-page="okk-terms"] .eyebrow {
  margin-bottom: 10px;
  font-size: 0.76rem;
}

body[data-page="kc-terms"] .glass-card--doc-actions,
body[data-page="okk-terms"] .glass-card--doc-actions {
  padding: 14px;
}

body[data-page="kc-terms"] .doc-entry-grid,
body[data-page="okk-terms"] .doc-entry-grid {
  gap: 8px;
}

body[data-page="kc-terms"] .doc-entry-card,
body[data-page="okk-terms"] .doc-entry-card {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
}

body[data-page="kc-terms"] .doc-grid,
body[data-page="okk-terms"] .doc-grid {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
}

body[data-page="kc-terms"] .sidebar-card,
body[data-page="okk-terms"] .sidebar-card {
  padding: 16px;
  border-radius: 20px;
}

body[data-page="kc-terms"] .sidebar-card__header,
body[data-page="okk-terms"] .sidebar-card__header {
  margin-bottom: 10px;
}

body[data-page="kc-terms"] .toc-key-block,
body[data-page="okk-terms"] .toc-key-block {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

body[data-page="kc-terms"] .toc-pill,
body[data-page="okk-terms"] .toc-pill {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.78rem;
}

body[data-page="kc-terms"] .doc-toc .toc-link,
body[data-page="okk-terms"] .doc-toc .toc-link {
  padding: 6px 8px;
  font-size: 0.86rem;
}

body[data-page="kc-terms"] .doc-toc .toc-list .toc-list,
body[data-page="okk-terms"] .doc-toc .toc-list .toc-list {
  margin-left: 6px;
  padding-left: 8px;
}

body[data-page="kc-terms"] .doc-article,
body[data-page="okk-terms"] .doc-article {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
}

body[data-page="kc-terms"] .reg-section__eyebrow,
body[data-page="okk-terms"] .reg-section__eyebrow,
body[data-page="kc-terms"] .reg-section--level-h1,
body[data-page="okk-terms"] .reg-section--level-h1,
body[data-page="kc-terms"] .doc-article h1,
body[data-page="okk-terms"] .doc-article h1 {
  display: none;
}

body[data-page="kc-terms"] .reg-section,
body[data-page="okk-terms"] .reg-section {
  margin: 0;
  box-shadow: none;
}

body[data-page="kc-terms"] .reg-section__head,
body[data-page="okk-terms"] .reg-section__head {
  gap: 8px;
  margin-bottom: 8px;
}

body[data-page="kc-terms"] .reg-section__body,
body[data-page="okk-terms"] .reg-section__body {
  gap: 8px;
}

body[data-page="kc-terms"] .reg-section--level-h2 {
  grid-column: 1 / -1;
  padding: 14px 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="kc-terms"] .reg-section--level-h2 .reg-section__head {
  margin: 0;
}

body[data-page="kc-terms"] .reg-section--level-h2 .reg-section__body {
  display: none;
}

body[data-page="kc-terms"] .reg-section--level-h2 h2 {
  color: var(--indigo);
  font-size: 1.08rem;
  line-height: 1.22;
}

body[data-page="kc-terms"] .reg-section--level-h3,
body[data-page="okk-terms"] .reg-section--level-h2 {
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(221, 225, 234, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 252, 0.9));
  color: #343b48;
}

body[data-page="kc-terms"] .reg-section--level-h3 h3,
body[data-page="okk-terms"] .reg-section--level-h2 h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.96rem;
  line-height: 1.25;
}

body[data-page="kc-terms"] .reg-section--level-h3 p,
body[data-page="okk-terms"] .reg-section--level-h2 p {
  margin: 0;
  color: #343b48;
  font-size: 0.9rem;
  line-height: 1.5;
}

body[data-page="kc-terms"] .reg-section--level-h3 .editor-controls,
body[data-page="okk-terms"] .reg-section--level-h2 .editor-controls {
  align-self: flex-end;
  margin-left: 0;
  margin-top: auto;
  padding-top: 12px;
  gap: 6px;
  justify-content: flex-end;
  opacity: 0.34;
  transition: opacity 160ms ease;
}

body[data-page="kc-terms"] .reg-section--level-h3:hover .editor-controls,
body[data-page="kc-terms"] .reg-section--level-h3:focus-within .editor-controls,
body[data-page="okk-terms"] .reg-section--level-h2:hover .editor-controls,
body[data-page="okk-terms"] .reg-section--level-h2:focus-within .editor-controls {
  opacity: 0.76;
}

body[data-page="kc-terms"] .reg-section--level-h3 .editor-button,
body[data-page="okk-terms"] .reg-section--level-h2 .editor-button {
  min-height: 26px;
  padding: 0 8px;
  border-color: rgba(90, 69, 221, 0.1);
  background: transparent;
  color: rgba(42, 33, 119, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="kc-terms"] .reg-section--level-h3 .editor-button:hover,
body[data-page="okk-terms"] .reg-section--level-h2 .editor-button:hover {
  border-color: rgba(90, 69, 221, 0.18);
  background: rgba(90, 69, 221, 0.045);
  color: rgba(42, 33, 119, 0.78);
}

.article-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.06), rgba(90, 69, 221, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.reg-section {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.9)),
    linear-gradient(140deg, rgba(255, 111, 115, 0.04), rgba(90, 69, 221, 0.04));
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 18px 40px rgba(34, 37, 53, 0.05);
  scroll-margin-top: 18px;
}

.reg-section:first-of-type {
  padding-top: 24px;
}

.reg-section.search-dimmed {
  opacity: 0.36;
}

.reg-section.search-hit {
  opacity: 1;
}

.reg-section__head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.reg-section__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.reg-chip--eyebrow {
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
}

.reg-section--level-h1 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.07), rgba(90, 69, 221, 0.08));
  border-color: rgba(255, 89, 95, 0.14);
}

.reg-section--level-h2 {
  border-left: 4px solid rgba(255, 89, 95, 0.22);
}

.reg-section--level-h3 {
  border-left: 4px solid rgba(42, 33, 119, 0.16);
}

.reg-section--level-h4,
.reg-section--level-h5 {
  border-left: 4px solid rgba(42, 33, 119, 0.1);
}

.reg-section__body {
  display: grid;
  gap: 14px;
}

.reg-section__body > :last-child {
  margin-bottom: 0;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-card--doc {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-card h1 {
  max-width: 22ch;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .eyebrow {
  margin-bottom: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-lead,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-note {
  max-width: 62rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-entry-grid {
  gap: 8px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-entry-card {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-layout {
  gap: 18px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-grid {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 16px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .sidebar-card {
  padding: 16px;
  border-radius: 20px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .sidebar-card__header {
  margin-bottom: 10px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .sidebar-card__header h2 {
  font-size: 1rem;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .search-field input {
  min-height: 46px;
  border-radius: 14px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .toc-key-block {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .toc-pill {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.78rem;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-toc .toc-link {
  padding: 6px 8px;
  font-size: 0.84rem;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 251, 253, 0.92));
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .article-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(28, 34, 44, 0.075);
  box-shadow: none;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2 {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 0 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(28, 34, 44, 0.075);
  border-left: 3px solid rgba(42, 33, 119, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1::before,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 89, 95, 0.68), rgba(90, 69, 221, 0.34));
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--has-subsections {
  padding: 0 18px 18px;
  border: 1px solid rgba(255, 89, 95, 0.22);
  border-left: 6px solid rgba(255, 89, 95, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 251, 253, 0.95)),
    linear-gradient(90deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.04));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 34px rgba(34, 37, 53, 0.06);
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h3,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h4,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h5 {
  border-left-width: 3px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1 > .reg-section__head,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2 > .reg-section__head {
  margin: 0 -16px 14px;
  padding: 20px 16px 14px 18px;
  background:
    linear-gradient(180deg, rgba(255, 247, 248, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(255, 89, 95, 0.1), rgba(90, 69, 221, 0.04));
  border-bottom: 1px solid rgba(255, 89, 95, 0.14);
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--has-subsections > .reg-section__head {
  margin-right: -18px;
  margin-left: -18px;
  padding-right: 18px;
  padding-left: 20px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section__body {
  gap: 8px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.68rem;
  white-space: nowrap;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article h2 {
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  line-height: 1.18;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article h4,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article h5 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.28;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article p,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article li,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article blockquote {
  font-size: 0.92rem;
  line-height: 1.55;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article p,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article ul,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article ol,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article blockquote,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article table,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article hr {
  margin-bottom: 10px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article ul,
body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article ol {
  padding-left: 1.1rem;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article li + li {
  margin-top: 5px;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-subsection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-subsection-links > span {
  flex: 0 0 100%;
  font-size: 0.78rem;
}

body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-subsection-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 11px;
  background: rgba(247, 248, 251, 0.82);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.reg-subsection-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.reg-subsection-links > span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.reg-subsection-links > a {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(241, 242, 246, 0.72);
  color: var(--text);
  font-weight: 750;
  line-height: 1.45;
}

.reg-subsection-links > a:hover {
  color: var(--accent-strong);
  border-color: rgba(255, 111, 115, 0.32);
}

.reg-ops-card {
  display: grid;
  gap: 14px;
  margin: 6px 0 22px;
  padding: 18px;
  border: 1px solid rgba(42, 33, 119, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(90, 69, 221, 0.07), rgba(255, 111, 115, 0.05)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(34, 37, 53, 0.06);
}

.reg-ops-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reg-ops-card__item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(28, 34, 44, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.reg-ops-card__item span,
.reg-ops-card__list > span {
  display: block;
  margin-bottom: 6px;
  color: #657184;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reg-ops-card__item strong {
  display: block;
  color: #252c39;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.5;
}

.reg-ops-card__list {
  padding: 14px 16px;
  border: 1px solid rgba(28, 34, 44, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.reg-ops-card__list--control {
  border-color: rgba(255, 89, 95, 0.14);
  background: rgba(255, 111, 115, 0.045);
}

.reg-ops-card__list ol,
.reg-ops-card__list ul {
  margin: 0;
  padding-left: 22px;
}

.reg-ops-card__list li {
  margin: 7px 0;
  line-height: 1.55;
}

.reg-ops-card__note {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: #423982;
  font-size: 0.84rem;
  font-weight: 800;
}

.pipeline-passport {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 18px;
  border: 1px solid rgba(42, 33, 119, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(34, 37, 53, 0.055);
}

.pipeline-passport--review {
  border-color: rgba(255, 111, 115, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 111, 115, 0.07), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.pipeline-passport__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.pipeline-badge,
.pipeline-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.pipeline-badge {
  background: rgba(42, 33, 119, 0.1);
  color: #332879;
}

.pipeline-confidence {
  background: rgba(241, 242, 246, 0.95);
  color: #657184;
}

.pipeline-passport__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-passport__grid > div,
.pipeline-review,
.pipeline-reference-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.pipeline-passport__grid span,
.pipeline-review span,
.pipeline-reference-card span {
  display: block;
  margin-bottom: 6px;
  color: #657184;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline-passport__grid strong,
.pipeline-reference-card strong {
  display: block;
  color: #252c39;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.5;
}

.pipeline-review {
  border-color: rgba(255, 111, 115, 0.18);
  background: rgba(255, 111, 115, 0.055);
}

.pipeline-review ul {
  margin: 0;
  padding-left: 20px;
}

.pipeline-review li {
  margin: 6px 0;
}

.pipeline-table-scroll {
  margin: 8px 0 18px;
}

.pipeline-process-table th:first-child,
.pipeline-process-table td:first-child {
  width: 58px;
  text-align: center;
}

.pipeline-process-table th:nth-child(2),
.pipeline-process-table td:nth-child(2) {
  width: 29%;
}

.pipeline-process-table th:nth-child(3),
.pipeline-process-table td:nth-child(3) {
  width: 34%;
}

.pipeline-process-table th:nth-child(4),
.pipeline-process-table td:nth-child(4) {
  width: 28%;
}

.pipeline-step-number {
  color: #2f247e;
  font-weight: 900;
}

.pipeline-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.pipeline-script-block {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
  padding: 18px;
  border-left: 5px solid rgba(255, 111, 115, 0.78);
  border-radius: 16px;
  background: rgba(255, 111, 115, 0.055);
}

.pipeline-script-block p {
  margin: 0;
  color: #2d3340;
  font-size: 1rem;
  line-height: 1.65;
}

.pipeline-source {
  margin: 14px 0 2px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 14px;
  background: rgba(247, 248, 252, 0.9);
  overflow: hidden;
}

.pipeline-source summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #4d5666;
  font-size: 0.86rem;
  font-weight: 900;
}

.pipeline-source pre {
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-top: 1px solid rgba(28, 34, 44, 0.08);
  color: #354052;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pipeline-media-note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(42, 33, 119, 0.075);
  color: #423982;
  font-weight: 800;
}

.reg-structured-block {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
}

.reg-structured-row {
  display: grid;
  grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(28, 34, 44, 0.07);
  border-radius: 16px;
  background: rgba(241, 242, 246, 0.72);
  color: #2d3441;
  line-height: 1.6;
}

.reg-structured-row:not(.has-label) {
  grid-template-columns: 1fr;
}

.reg-structured-row--field {
  background: rgba(255, 255, 255, 0.78);
}

.reg-structured-row--link {
  border-color: rgba(255, 89, 95, 0.18);
  background: rgba(255, 111, 115, 0.055);
}

.reg-structured-row--note {
  border-color: rgba(255, 89, 95, 0.2);
  background: rgba(255, 111, 115, 0.075);
}

.reg-structured-row--scope {
  border-color: rgba(42, 33, 119, 0.14);
  background: rgba(90, 69, 221, 0.055);
}

.reg-structured-row__label {
  color: #657184;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.6;
  text-transform: uppercase;
}

.reg-structured-row__content {
  min-width: 0;
}

.reg-section.search-target {
  animation: sectionFlash 1.6s ease;
}

.reg-section--faq > h1,
.reg-section--faq > h2,
.reg-section--faq > h3,
.reg-section--faq > h4 {
  margin-bottom: 20px;
}

.project-catalog {
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.08));
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 18px 40px rgba(34, 37, 53, 0.06);
}

.project-catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-catalog__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-catalog h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.project-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 138px;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 252, 0.94)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(42, 33, 119, 0.1));
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 14px 30px rgba(34, 37, 53, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  color: var(--text);
  text-decoration: none;
}

.project-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 111, 115, 0.2), transparent 70%);
  pointer-events: none;
}

.project-tile:hover,
.project-tile.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 89, 95, 0.24);
  box-shadow: 0 20px 42px rgba(34, 37, 53, 0.1);
}

.project-tile__index {
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-tile strong {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.08;
  text-decoration: none;
}

.doc-article .project-tile,
.doc-article .project-tile:hover {
  color: var(--text);
  text-decoration: none;
  text-decoration-line: none;
}

.doc-article .project-tile strong,
.doc-article .project-tile span {
  text-decoration: none;
  text-decoration-line: none;
}

.project-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.05), rgba(90, 69, 221, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.project-panel__title-card {
  margin-bottom: 14px;
  background:
    linear-gradient(180deg, rgba(42, 33, 119, 0.97), rgba(75, 56, 184, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 20px 42px rgba(42, 33, 119, 0.2);
}

.project-panel__title-card .reg-chip--eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.project-panel__title-card h2,
.project-panel__title-card p,
.project-panel__title-card li {
  color: #fff;
}

.project-panel__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-info-card {
  min-height: 100%;
  margin-bottom: 0;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(34, 37, 53, 0.05);
}

.project-info-card .reg-section__head {
  margin-bottom: 14px;
}

.project-info-card h3 {
  font-size: 1.1rem;
}

.project-info-card .reg-section__body > ul > li,
.project-info-card .reg-section__body > ol > li {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.62;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255, 89, 95, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(255, 111, 115, 0.06), rgba(90, 69, 221, 0.06));
  box-shadow: 0 16px 36px rgba(34, 37, 53, 0.06);
}

.faq-item[open] {
  border-color: rgba(255, 89, 95, 0.26);
  box-shadow: 0 22px 44px rgba(255, 89, 95, 0.1);
}

.faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 111, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.faq-question__text {
  font-size: 1.04rem;
  line-height: 1.55;
  font-weight: 800;
  color: #27303b;
}

.faq-question__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-question__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.3);
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer__body {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(241, 242, 246, 0.72);
  color: #313845;
}

.faq-answer__body > :last-child {
  margin-bottom: 0;
}

.faq-answer__body p,
.faq-answer__body li {
  font-size: 0.98rem;
  line-height: 1.72;
}

.faq-answer__body ul,
.faq-answer__body ol {
  margin-top: 12px;
}

.faq-answer__body a {
  font-weight: 700;
}

@keyframes sectionFlash {
  0% {
    background: rgba(255, 111, 115, 0.18);
    border-radius: 18px;
  }
  100% {
    background: transparent;
    border-radius: 0;
  }
}

.doc-article h1,
.doc-article h2,
.doc-article h3,
.doc-article h4,
.doc-article h5 {
  position: relative;
  scroll-margin-top: 20px;
}

.doc-article h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.04;
  margin: 0;
}

.doc-article h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1.12;
}

.doc-article h3 {
  margin: 4px 0 0;
  font-size: 1.22rem;
  line-height: 1.26;
}

.doc-article h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.doc-article h5 {
  margin: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.doc-article p,
.doc-article li,
.doc-article blockquote {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #2d3441;
}

.doc-article p,
.doc-article ul,
.doc-article ol,
.doc-article blockquote,
.doc-article table,
.doc-article hr {
  margin: 0 0 16px;
}

.doc-article ul,
.doc-article ol {
  padding-left: 1.35rem;
}

.doc-article li + li {
  margin-top: 8px;
}

.doc-article strong {
  font-weight: 800;
}

.doc-article em {
  color: var(--muted);
}

.doc-article a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(255, 89, 95, 0.3);
  text-underline-offset: 4px;
}

.doc-article a.reg-link {
  display: inline;
  max-width: 100%;
  padding: 1px 5px;
  border: 1px solid rgba(255, 89, 95, 0.22);
  border-radius: 8px;
  background: rgba(255, 111, 115, 0.06);
  color: var(--accent-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: normal;
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  vertical-align: baseline;
}

.doc-article a.reg-link::after {
  content: " ↗";
  font-size: 0.82em;
  font-weight: 900;
}

.doc-article a.reg-link:hover {
  border-color: rgba(255, 89, 95, 0.42);
  background: rgba(255, 111, 115, 0.14);
}

.doc-article hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-article blockquote {
  margin-left: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 111, 115, 0.06);
}

.doc-article table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.doc-article .reg-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(34, 37, 53, 0.06);
}

.doc-article .reg-table-scroll table {
  min-width: 920px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  table-layout: fixed;
}

.doc-article th,
.doc-article td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.doc-article th {
  background: rgba(42, 33, 119, 0.06);
  font-size: 0.92rem;
}

.doc-article tr > :first-child:nth-last-child(3) {
  width: 24%;
}

.doc-article tr > :nth-child(2):nth-last-child(2) {
  width: 30%;
}

.doc-article tr > :nth-child(3):last-child {
  width: 46%;
}

.doc-article tr > :first-child:nth-last-child(4) {
  width: 18%;
}

.doc-article tr > :nth-child(2):nth-last-child(3),
.doc-article tr > :nth-child(3):nth-last-child(2) {
  width: 26%;
}

.doc-article tr > :nth-child(4):last-child {
  width: 30%;
}

.doc-article td .reg-link,
.doc-article th .reg-link {
  overflow-wrap: anywhere;
  word-break: normal;
}

.doc-article .reg-table--dense th,
.doc-article .reg-table--dense td {
  padding: 9px 10px;
  font-size: 0.88rem;
  line-height: 1.42;
}

.doc-article .reg-table--dense th {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.doc-article .reg-screenshot {
  margin: 20px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(34, 37, 53, 0.07);
}

.doc-article .reg-screenshot img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 12px;
}

.doc-article .reg-screenshot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.doc-article .reg-inline-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  margin: 0 0.18em;
  vertical-align: -0.28em;
}

.doc-article .reg-inline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.doc-article img {
  max-width: 100%;
  height: auto;
}

.reg-section__body > ul,
.reg-section__body > ol {
  display: grid;
  gap: 10px;
}

.reg-section__body > ul > li,
.reg-section__body > ol > li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(241, 242, 246, 0.72);
  border: 1px solid rgba(28, 34, 44, 0.06);
}

.reg-section__body > ul > li::marker,
.reg-section__body > ol > li::marker {
  color: var(--accent-strong);
  font-weight: 800;
}

.reg-callout {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.reg-callout__label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reg-callout__body {
  display: grid;
  gap: 10px;
}

.reg-callout__body > :last-child {
  margin-bottom: 0;
}

.reg-callout--important {
  background: linear-gradient(180deg, rgba(255, 244, 221, 0.92), rgba(255, 248, 233, 0.92));
  border-color: rgba(255, 198, 92, 0.3);
}

.reg-callout--important .reg-callout__label {
  background: rgba(255, 198, 92, 0.24);
  color: #8c5600;
}

.reg-callout--exception {
  background: linear-gradient(180deg, rgba(232, 238, 255, 0.88), rgba(245, 247, 255, 0.92));
  border-color: rgba(90, 69, 221, 0.22);
}

.reg-callout--exception .reg-callout__label {
  background: rgba(90, 69, 221, 0.14);
  color: #4134a8;
}

.reg-callout--restriction {
  background: linear-gradient(180deg, rgba(255, 235, 236, 0.96), rgba(255, 244, 244, 0.94));
  border-color: rgba(255, 89, 95, 0.24);
}

.reg-callout--restriction .reg-callout__label {
  background: rgba(255, 89, 95, 0.14);
  color: #b43338;
}

.reg-callout--control {
  background: linear-gradient(180deg, rgba(236, 243, 255, 0.95), rgba(245, 248, 255, 0.94));
  border-color: rgba(65, 112, 201, 0.2);
}

.reg-callout--control .reg-callout__label {
  background: rgba(65, 112, 201, 0.12);
  color: #315ea8;
}

.reg-callout--note,
.reg-callout--answer {
  background: rgba(245, 246, 250, 0.95);
}

.reg-callout--note .reg-callout__label,
.reg-callout--answer .reg-callout__label {
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
}

.doc-article code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.94em;
  padding: 0.12em 0.38em;
  border-radius: 8px;
  background: rgba(42, 33, 119, 0.06);
}

.doc-article pre {
  margin: 0 0 16px;
  padding: 18px;
  overflow-x: auto;
  border-radius: 18px;
  background: #1f242c;
  color: #f3f5f9;
}

body[data-page="kc-md"] .reg-section {
  border-radius: 20px;
}

body[data-page="kc-md"] .reg-section--process {
  border-left-color: rgba(42, 33, 119, 0.16);
}

body[data-page="kc-md"] .reg-section--script {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(255, 255, 255, 0.93)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.055), rgba(255, 111, 115, 0.035));
  border-color: rgba(42, 33, 119, 0.12);
}

body[data-page="kc-md"] .reg-section__body {
  gap: 12px;
}

body[data-page="kc-md"] .reg-section__body > p {
  max-width: 92ch;
}

body[data-page="kc-md"] .reg-section__body > .reg-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
  padding-left: 0;
  list-style: none;
}

body[data-page="kc-md"] .reg-section__body > .reg-list > li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 248, 251, 0.74);
  border-color: rgba(28, 34, 44, 0.065);
  line-height: 1.65;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--procedure > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: reg-step;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 251, 0.8)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.018), rgba(255, 111, 115, 0.018));
}

body[data-page="kc-md"] .reg-section__body > .reg-list--procedure {
  counter-reset: reg-step;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--procedure > li::before {
  content: counter(reg-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--rules > li,
body[data-page="kc-md"] .reg-section__body > .reg-list-item--control {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 248, 251, 0.82)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.025), rgba(255, 111, 115, 0.025));
  border-color: rgba(42, 33, 119, 0.09);
}

body[data-page="kc-md"] .reg-section__body > .reg-list--checklist > li {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 248, 251, 0.82)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.02), rgba(255, 111, 115, 0.018));
}

body[data-page="kc-md"] .reg-section__body > .reg-list--script > li,
body[data-page="kc-md"] .reg-script-line,
body[data-page="kc-md"] .reg-script-quote {
  position: relative;
  padding: 14px 16px 14px 20px;
  border-left: 4px solid rgba(42, 33, 119, 0.24);
  border-radius: 0 14px 14px 0;
  background: rgba(42, 33, 119, 0.045);
  color: #27303b;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--script {
  padding-left: 0;
  list-style: none;
  counter-reset: none;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--script > li::before,
body[data-page="kc-md"] .reg-script-line::before,
body[data-page="kc-md"] .reg-script-quote::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 8px;
  color: rgba(42, 33, 119, 0.32);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

body[data-page="kc-md"] .reg-section__body > .reg-list--script > li {
  display: block;
  counter-increment: none;
}

body[data-page="kc-md"] .reg-script-label {
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
  font-size: 0.86rem;
  font-weight: 850;
}

body[data-page="kc-md"] .reg-list-item--condition {
  border-color: rgba(42, 33, 119, 0.1);
  background: rgba(245, 246, 250, 0.86);
}

body[data-page="kc-md"] .reg-structured-row {
  border-radius: 12px;
}

body[data-page="kc-md"] .reg-structured-block--process {
  margin: 4px 0 16px;
}

body[data-page="kc-md"] .reg-structured-block--process .reg-structured-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 251, 0.8)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.018), rgba(255, 111, 115, 0.018));
  border-color: rgba(42, 33, 119, 0.09);
}

body[data-page="kc-md"] .reg-readable-paragraph {
  padding: 14px 16px;
  border: 1px solid rgba(28, 34, 44, 0.065);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 251, 0.8)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.018), rgba(255, 111, 115, 0.018));
}

body[data-page="kc-md"] .reg-ops-table-scroll {
  margin: 8px 0 18px;
}

body[data-page="kc-md"] .reg-ops-table {
  min-width: min(1040px, 100%);
}

body[data-page="kc-md"] .reg-ops-table th:first-child,
body[data-page="kc-md"] .reg-ops-table td:first-child {
  width: 64px;
  text-align: center;
}

body[data-page="kc-md"] .reg-ops-table th:nth-child(2),
body[data-page="kc-md"] .reg-ops-table td:nth-child(2) {
  width: 34%;
}

body[data-page="kc-md"] .reg-ops-table th:nth-child(3),
body[data-page="kc-md"] .reg-ops-table td:nth-child(3) {
  width: 28%;
}

body[data-page="kc-md"] .reg-ops-table th:nth-child(4),
body[data-page="kc-md"] .reg-ops-table td:nth-child(4) {
  width: 34%;
}

body[data-page="kc-md"] .reg-ops-table__number {
  color: var(--indigo);
  font-size: 0.88rem;
  font-weight: 850;
}

body[data-page="kc-md"] .reg-ops-table__action,
body[data-page="kc-md"] .reg-ops-table__condition,
body[data-page="kc-md"] .reg-ops-table__result {
  line-height: 1.68;
}

body[data-page="kc-md"] .reg-ops-table__condition {
  color: #4a5363;
}

body[data-page="kc-md"] .reg-ops-table__result {
  color: #28313e;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section {
  border-radius: 16px;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section--process {
  border-left-color: rgba(42, 33, 119, 0.16);
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section--script {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.9)),
    linear-gradient(135deg, rgba(42, 33, 119, 0.045), rgba(255, 111, 115, 0.028));
  border-color: rgba(42, 33, 119, 0.11);
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list {
  display: grid;
  gap: 7px;
  margin: 2px 0 10px;
  padding-left: 0;
  list-style: none;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list > li {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(247, 248, 251, 0.74);
  border: 1px solid rgba(28, 34, 44, 0.06);
  line-height: 1.5;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list--procedure > li {
  position: relative;
  display: block;
  min-width: 0;
  padding-left: 42px;
  counter-increment: reg-step;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list--procedure {
  counter-reset: reg-step;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list--procedure > li::before {
  content: counter(reg-step);
  position: absolute;
  top: 9px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 850;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-section__body > .reg-list--script > li,
body:is([data-page="kc"], [data-page="kc-md"]) .reg-script-line,
body:is([data-page="kc"], [data-page="kc-md"]) .reg-script-quote {
  position: relative;
  padding: 10px 12px 10px 18px;
  border-left: 3px solid rgba(42, 33, 119, 0.22);
  border-radius: 0 12px 12px 0;
  background: rgba(42, 33, 119, 0.04);
  color: #27303b;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-script-label {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(42, 33, 119, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 850;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-structured-block--process,
body:is([data-page="kc"], [data-page="kc-md"]) .reg-readable-paragraph {
  margin: 2px 0 10px;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-readable-paragraph {
  padding: 10px 12px;
  border: 1px solid rgba(28, 34, 44, 0.06);
  border-radius: 12px;
  background: rgba(247, 248, 251, 0.74);
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table-scroll {
  margin: 6px 0 12px;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table {
  min-width: 980px;
  table-layout: fixed;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table th,
body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table td {
  padding: 9px 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table th:first-child,
body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table td:first-child {
  width: 48px;
  text-align: center;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table th:nth-child(2),
body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table td:nth-child(2) {
  width: 34%;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table th:nth-child(3),
body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table td:nth-child(3) {
  width: 28%;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table th:nth-child(4),
body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table td:nth-child(4) {
  width: 34%;
}

body:is([data-page="kc"], [data-page="kc-md"]) .reg-ops-table__number {
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 850;
}

.doc-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
}

.doc-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .reglam-hero,
  .reglam-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card--home,
  .hero-card--doc,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="kc-terms"] .doc-article,
  body[data-page="okk-terms"] .doc-article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-sidebar {
    position: static;
    max-height: min(78vh, 760px);
    padding-right: 2px;
  }

  .doc-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body[data-page="projects"] .doc-content {
    order: -1;
  }

  .reg-ops-card__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--content-width));
    padding-top: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reglam-header__nav {
    justify-content: flex-start;
  }

  .reglam-brand {
    width: 150px;
  }

  .reglam-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px;
    border-radius: 24px;
  }

  .reglam-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .reglam-preview__chat {
    margin-left: 0;
  }

  .reglam-feature-grid {
    grid-template-columns: 1fr;
  }

  .reglam-feature {
    min-height: auto;
  }

  .reglam-feature--wide {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .company-hero,
  .company-reg-grid {
    grid-template-columns: 1fr;
  }

  .company-hero {
    min-height: auto;
    padding: 26px;
    border-radius: 26px;
  }

  .company-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .company-section {
    padding: 18px;
    border-radius: 24px;
  }

  .company-reg-card {
    min-height: 150px;
    padding: 18px;
  }

  .brand__text strong {
    font-size: 1.5rem;
  }

  .hero-card,
  .doc-article,
  .sidebar-card,
  .department-card {
    padding: 24px;
    border-radius: 24px;
  }

  .project-tile-grid,
  .project-panel__cards {
    grid-template-columns: 1fr;
  }

  body[data-page="kc-terms"] .doc-article,
  body[data-page="okk-terms"] .doc-article {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .project-catalog {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-card h1 {
    max-width: none;
    font-size: 2.45rem;
  }

  body[data-page="psk"] .hero-card h1 {
    font-size: 3.4rem;
  }

  .home-entry-card {
    min-height: 132px;
    padding: 24px;
  }

  body[data-page="psk"] .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .doc-article h1 {
    font-size: 2rem;
  }

  .qa-answer__sources {
    align-items: flex-start;
  }

  .reg-section {
    padding: 20px;
    border-radius: 22px;
  }

  .article-intro {
    padding: 18px 20px;
  }

  .reg-chip {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .qa-widget__teaser {
    width: 72px;
    height: 72px;
  }

  .qa-widget__panel {
    width: min(400px, calc(100vw - 24px));
  }

  .editor-panel {
    width: min(720px, calc(100vw - 20px));
    padding: 20px;
  }
}

/* Передача выбранных пунктов через АИК */
.aik-inbox-notice {
  position: fixed;
  z-index: 950;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(26, 25, 40, 0.26);
}

.aik-inbox-notice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
  background: linear-gradient(135deg, rgba(255, 111, 115, 0.1), rgba(90, 69, 221, 0.07));
}

.aik-inbox-notice__head div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.aik-inbox-notice__head span {
  color: #ff595f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.aik-inbox-notice__head strong {
  color: #282933;
  font-size: 0.9rem;
}

.aik-inbox-notice__head button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #626472;
  cursor: pointer;
  font-size: 1.2rem;
}

.aik-inbox-notice__body {
  display: grid;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding: 14px;
}

.aik-inbox-notice__message {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-radius: 15px;
  background: #f7f7fb;
}

.aik-inbox-notice__message strong {
  color: #33343d;
  font-size: 0.78rem;
}

.aik-inbox-notice__message p {
  margin: 0;
  color: #565866;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-line;
}

.reg-section--selected {
  border-color: rgba(90, 69, 221, 0.48);
  box-shadow: 0 20px 46px rgba(54, 41, 147, 0.12), inset 0 0 0 1px rgba(90, 69, 221, 0.1);
}

.reg-share-select {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(42, 33, 119, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #544f68;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reg-share-select:hover {
  border-color: rgba(90, 69, 221, 0.34);
  color: var(--indigo);
  transform: translateY(-1px);
}

.reg-share-select:has(input:checked) {
  border-color: rgba(90, 69, 221, 0.44);
  background: rgba(90, 69, 221, 0.1);
  color: var(--indigo);
}

.reg-share-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--indigo);
}

.reg-share-tray {
  position: fixed;
  z-index: 880;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  background: rgba(24, 25, 34, 0.94);
  box-shadow: 0 20px 54px rgba(18, 18, 28, 0.28);
  color: #fff;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.reg-share-tray[hidden] {
  display: none;
}

.reg-share-tray strong {
  white-space: nowrap;
  font-size: 0.86rem;
}

.reg-share-tray button,
.reg-share-button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.reg-share-tray__clear {
  padding: 0 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.reg-share-tray__send {
  padding: 0 17px;
  background: linear-gradient(135deg, #ff6f73, #ff595f);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 89, 95, 0.26);
}

body.reg-share-modal-open {
  overflow: hidden;
}

.reg-share-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.reg-share-modal[hidden] {
  display: none;
}

.reg-share-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 19, 27, 0.52);
  cursor: default;
  backdrop-filter: blur(8px);
}

.reg-share-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(25, 23, 45, 0.32);
}

.reg-share-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
  background: linear-gradient(135deg, rgba(255, 111, 115, 0.08), rgba(90, 69, 221, 0.06));
}

.reg-share-dialog__head div > span {
  display: block;
  margin-bottom: 5px;
  color: #ff595f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.reg-share-dialog__head h2 {
  margin: 0;
  color: #20222a;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.12;
}

.reg-share-dialog__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #5e6070;
  cursor: pointer;
  font-size: 1.45rem;
}

.reg-share-dialog__body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px;
}

.reg-share-points,
.reg-share-preview {
  padding: 15px 17px;
  border: 1px solid rgba(42, 33, 119, 0.1);
  border-radius: 17px;
  background: #f7f7fb;
}

.reg-share-points strong,
.reg-share-preview > strong {
  color: #262733;
  font-size: 0.87rem;
}

.reg-share-points ul,
.reg-share-preview ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: #5e6070;
  font-size: 0.78rem;
  line-height: 1.45;
}

.reg-share-search {
  display: grid;
  gap: 8px;
}

.reg-share-search > span {
  color: #3b3c48;
  font-size: 0.82rem;
  font-weight: 850;
}

.reg-share-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(42, 33, 119, 0.16);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #242630;
  font: inherit;
  font-size: 0.9rem;
}

.reg-share-search input:focus {
  border-color: rgba(90, 69, 221, 0.5);
  box-shadow: 0 0 0 4px rgba(90, 69, 221, 0.08);
}

.reg-share-directory-summary {
  margin-top: 12px;
  color: #676978;
  font-size: 0.76rem;
  font-weight: 750;
}

.reg-share-filters {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.reg-share-filter {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(42, 33, 119, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #666876;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.reg-share-filter:hover,
.reg-share-filter.is-selected {
  border-color: rgba(90, 69, 221, 0.3);
  background: rgba(90, 69, 221, 0.08);
  color: var(--indigo);
}

.reg-share-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.reg-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(90, 69, 221, 0.18);
  border-radius: 999px;
  background: rgba(90, 69, 221, 0.08);
  color: var(--indigo);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.reg-share-chip small {
  font-size: 1rem;
}

.reg-share-results {
  display: grid;
  gap: 7px;
  max-height: 360px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.reg-share-results__group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 4px 3px;
  background: #fff;
  color: #777988;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reg-share-person {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(28, 34, 44, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #2a2b34;
  cursor: pointer;
  text-align: left;
}

.reg-share-person:hover,
.reg-share-person.is-selected {
  border-color: rgba(90, 69, 221, 0.3);
  background: rgba(90, 69, 221, 0.05);
}

.reg-share-person__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(90, 69, 221, 0.09);
  color: var(--indigo);
  font-weight: 900;
}

.reg-share-person strong,
.reg-share-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-share-person strong {
  font-size: 0.82rem;
}

.reg-share-person small {
  margin-top: 3px;
  color: #7b7d8d;
  font-size: 0.72rem;
}

.reg-share-empty {
  padding: 20px;
  border-radius: 14px;
  background: #f7f7fa;
  color: #747686;
  font-size: 0.8rem;
  text-align: center;
}

.reg-share-empty--error,
.reg-share-status[data-tone="error"] {
  color: #b6373c;
}

.reg-share-preview dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.reg-share-preview dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.reg-share-preview dt {
  color: #7a7c8b;
  font-size: 0.76rem;
}

.reg-share-preview dd {
  margin: 0;
  color: #30313a;
  font-size: 0.8rem;
  font-weight: 750;
}

.reg-share-status {
  min-height: 20px;
  color: #6b6d7b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.reg-share-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(28, 34, 44, 0.08);
}

.reg-share-button {
  padding: 0 16px;
}

.reg-share-button--quiet {
  border: 1px solid rgba(28, 34, 44, 0.1);
  background: #fff;
  color: #5c5e6c;
}

.reg-share-button--primary {
  background: linear-gradient(135deg, #ff6f73, #ff595f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 89, 95, 0.22);
}

.reg-share-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.reg-share-success {
  display: grid;
  gap: 6px;
  color: #30313a;
}

.reg-share-success strong {
  color: #23815a;
  font-size: 0.95rem;
}

.reg-share-success span {
  color: #686a79;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .aik-inbox-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .reg-share-tray {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    min-height: 0;
    padding: 10px;
    transform: none;
  }

  .reg-share-tray__clear {
    grid-column: 1;
    justify-self: start;
    min-height: 30px !important;
  }

  .reg-share-tray__send {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .reg-share-modal {
    align-items: end;
    padding: 0;
  }

  .reg-share-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .reg-share-dialog__head,
  .reg-share-dialog__body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .reg-share-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px max(18px, env(safe-area-inset-bottom));
  }

  .reg-share-button--primary:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body.qa-widget-open {
    overflow: hidden;
  }

  .site-shell {
    width: min(calc(100% - 16px), var(--content-width));
  }

  .meta-pill,
  .top-nav__link,
  .telegram-link--header {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .user-avatar,
  .exit-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .top-nav--dropdowns {
    width: 100%;
  }

  .nav-menu {
    flex: 1 1 calc(50% - 8px);
  }

  .nav-menu__button {
    width: 100%;
  }

  .nav-menu__panel {
    min-width: min(260px, calc(100vw - 32px));
  }

  body[data-page="psk"] .hero-card h1 {
    font-size: 2.25rem;
    letter-spacing: -0.045em;
  }

  .qa-widget__panel-head {
    align-items: center;
  }

  .telegram-link--widget {
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }

  .button {
    width: 100%;
  }

  .change-log {
    padding: 18px;
    border-radius: 20px;
  }

  .change-log__head {
    display: grid;
    gap: 10px;
  }

  .change-log__row,
  .change-log__row--head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .change-log__row--head {
    display: none;
  }

  .page-utility .hero-card h1 {
    font-size: 2.3rem;
  }

  .access-manager {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .access-manager__nav {
    grid-template-columns: 1fr 1fr;
  }

  .access-panel {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .access-panel__head {
    display: grid;
  }

  .access-add-form {
    grid-template-columns: 1fr;
  }

  .reglam-shell {
    width: min(calc(100% - 16px), 1180px);
  }

  .reglam-header__nav,
  .reglam-bottom-actions,
  .reglam-hero .hero-actions {
    width: 100%;
  }

  .reglam-header__nav .top-nav__link {
    flex: 1 1 calc(50% - 8px);
  }

  .reglam-features {
    padding: 22px;
    border-radius: 22px;
  }

  .home-entry-card {
    min-height: 120px;
    padding: 20px;
    border-radius: 24px;
  }

  .home-entry-card strong {
    font-size: 1.45rem;
  }

  .qa-widget {
    left: 8px;
    right: 8px;
    bottom: 12px;
  }

  .qa-widget.is-open {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
  }

  .qa-widget__teaser,
  .qa-widget__panel {
    width: 100%;
  }

  .qa-widget__teaser {
    width: 68px;
    height: 68px;
    padding: 0;
  }

  .qa-widget__avatar {
    width: 52px;
    height: 52px;
  }

  .qa-widget__avatar--large {
    width: 50px;
    height: 50px;
  }

  .qa-widget__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: calc(100dvh - 12px);
    height: auto;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border: none;
  }

  .qa-widget__panel.is-chatting {
    inset: 0;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
  }

  .qa-widget__identity {
    align-items: center;
  }

  .qa-widget__identity-copy strong {
    font-size: 0.96rem;
  }

  .qa-widget__identity-copy span {
    font-size: 0.88rem;
  }

  .qa-widget__teaser::before {
    display: none;
  }

  .qa-thread {
    max-height: none;
  }

  .doc-article {
    padding: 20px;
  }

  .doc-article p,
  .doc-article li,
  .doc-article blockquote {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .article-intro,
  .reg-section {
    padding: 16px;
  }

  .project-catalog,
  .project-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .project-tile {
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
  }

  .project-panel__cards {
    gap: 12px;
  }

  .reg-section {
    margin-bottom: 16px;
    border-radius: 20px;
  }

  .reg-section__head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .reg-section__body {
    gap: 12px;
  }

  .reg-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .scroll-top {
    min-height: 40px;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.84rem;
  }

  .scroll-top span[aria-hidden="true"] {
    width: 18px;
    height: 18px;
    font-size: 0.88rem;
  }

  .reg-callout {
    padding: 14px;
    gap: 10px;
  }

  .reg-ops-card {
    padding: 14px;
    border-radius: 16px;
  }

  .reg-ops-card__item,
  .reg-ops-card__list {
    padding: 12px;
  }

  .reg-ops-card__item span,
  .reg-ops-card__list > span {
    font-size: 0.72rem;
  }

  .pipeline-passport {
    padding: 14px;
    border-radius: 16px;
  }

  .pipeline-passport__grid,
  .pipeline-reference-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-passport__grid > div,
  .pipeline-review,
  .pipeline-reference-card {
    padding: 12px;
  }

  .pipeline-process-table {
    min-width: 860px;
  }

  .qa-suggestions {
    flex-direction: column;
  }

  .faq-question {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .faq-question__index {
    grid-column: 1 / 2;
    justify-self: start;
    min-width: 40px;
    min-height: 34px;
  }

  .faq-question__text {
    grid-column: 1 / 2;
    font-size: 1rem;
  }

  .faq-question__icon {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-answer__body {
    padding: 16px;
  }

  .qa-suggestion,
  .qa-citation {
    width: 100%;
    justify-content: center;
  }

  .toc-key-groups,
  .toc-key-group,
  .toc-key-pills--children {
    gap: 6px;
  }

  .toc-pill {
    width: auto;
    justify-content: flex-start;
  }

  .editor-controls {
    width: 100%;
    margin-left: 0;
  }

  .editor-admin-trigger {
    width: 100%;
  }

  .editor-panel {
    inset: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
    transform: none;
    top: 0;
    left: 0;
    padding: 16px;
  }

  .editor-actions .button {
    width: 100%;
  }

  .access-form {
    grid-template-columns: 1fr;
  }

  .access-form__actions {
    display: block;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .access-item__remove {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body[data-page="psk"] .hero-card h1 {
    font-size: 1.72rem;
    letter-spacing: -0.035em;
  }

  .access-manager__nav {
    grid-template-columns: 1fr;
  }

  .access-email-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .access-email-item__actions {
    width: 100%;
    justify-content: space-between;
  }

  .access-email-item button {
    width: 38px;
  }
}

@media (max-width: 1180px) {
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-card--doc,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-grid {
    grid-template-columns: 1fr;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-sidebar {
    max-height: min(72vh, 640px);
  }
}

@media (max-width: 820px) {
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-card--doc {
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-card h1 {
    max-width: 100%;
    font-size: clamp(1.65rem, 9vw, 2.25rem);
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-lead,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .hero-note {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article {
    padding: 14px;
    border-radius: 18px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2 {
    padding: 12px;
    border-radius: 14px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2 {
    padding: 0 12px 12px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--has-subsections {
    padding: 0 12px 12px;
    border-left-width: 6px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section__head {
    display: grid;
    gap: 7px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h1 > .reg-section__head,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--level-h2 > .reg-section__head {
    margin: 0 -12px 12px;
    padding: 18px 12px 12px 14px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .reg-section--has-subsections > .reg-section__head {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 14px;
  }

  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article p,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article li,
  body:is([data-page="kc"], [data-page="kc20"], [data-page="okk"], [data-page="kc-md"], [data-page="kc-pipeline"], [data-page="op"]) .doc-article blockquote {
    font-size: 0.89rem;
  }
}
