
.cz-toc,
.cz-toc--green {
  --cz-toc-bg:#F0F3F5;  --cz-toc-bg-inner:#fff;
  --cz-toc-border:#DDE6EB;  --cz-toc-border-lt:#C1CFD6;
  --cz-toc-accent:#09AE4E;  --cz-toc-accent-light:#E1F4E9;  --cz-toc-accent-dark:#067434;
  --cz-toc-text:#1A2E38;  --cz-toc-text-dim:#4A6672;  --cz-toc-text-mute:#5A7480;
  --cz-toc-hover:#E9EDF0;  --cz-toc-chip-bg:#1A2E38;  --cz-toc-focus:#09AE4E;
  --cz-toc-bar-bg:#F0F3F5;  --cz-toc-panel-bg:#fff;  --cz-toc-title-bg:#F4F7F9;
  --cz-toc-chevron:#5A7480;  --cz-toc-handle:#C1CFD6;
}
.cz-toc--neutral {
  --cz-toc-bg:#F0F3F5;  --cz-toc-bg-inner:#fff;
  --cz-toc-border:#DDE6EB;  --cz-toc-border-lt:#C1CFD6;
  --cz-toc-accent:#4A6672;  --cz-toc-accent-light:#EDF1F3;  --cz-toc-accent-dark:#1A2E38;
  --cz-toc-text:#1A2E38;  --cz-toc-text-dim:#4A6672;  --cz-toc-text-mute:#5A7480;
  --cz-toc-hover:#E8ECEF;  --cz-toc-chip-bg:#1A2E38;  --cz-toc-focus:#4A6672;
  --cz-toc-bar-bg:#F0F3F5;  --cz-toc-panel-bg:#fff;  --cz-toc-title-bg:#F4F7F9;
  --cz-toc-chevron:#5A7480;  --cz-toc-handle:#C1CFD6;
}
.cz-toc--orange {
  --cz-toc-bg:#FFF8F5;  --cz-toc-bg-inner:#fff;
  --cz-toc-border:#F0E0D8;  --cz-toc-border-lt:#E5CFBF;
  --cz-toc-accent:#D95A1B;  --cz-toc-accent-light:#FFF1EB;  --cz-toc-accent-dark:#B04712;
  --cz-toc-text:#1A2E38;  --cz-toc-text-dim:#4A6672;  --cz-toc-text-mute:#5A7480;
  --cz-toc-hover:#FFF1EB;  --cz-toc-chip-bg:#1A2E38;  --cz-toc-focus:#D95A1B;
  --cz-toc-bar-bg:#FFF8F5;  --cz-toc-panel-bg:#fff;  --cz-toc-title-bg:#FFF6F2;
  --cz-toc-chevron:#5A7480;  --cz-toc-handle:#E5CFBF;
}
.cz-toc--ghost {
  --cz-toc-bg:transparent;  --cz-toc-bg-inner:#fff;
  --cz-toc-border:#DDE6EB;  --cz-toc-border-lt:#C1CFD6;
  --cz-toc-accent:#09AE4E;  --cz-toc-accent-light:#E1F4E9;  --cz-toc-accent-dark:#067434;
  --cz-toc-text:#1A2E38;  --cz-toc-text-dim:#4A6672;  --cz-toc-text-mute:#5A7480;
  --cz-toc-hover:#F5F7F8;  --cz-toc-chip-bg:#1A2E38;  --cz-toc-focus:#09AE4E;
  --cz-toc-bar-bg:rgba(240,243,245,.6);  --cz-toc-panel-bg:#fff;  --cz-toc-title-bg:#F4F7F9;
  --cz-toc-chevron:#5A7480;  --cz-toc-handle:#C1CFD6;
}
.cz-toc--dark {
  --cz-toc-bg:#203540;  --cz-toc-bg-inner:#26404C;
  --cz-toc-border:#3D5866;  --cz-toc-border-lt:#4A6878;
  --cz-toc-accent:#2CC96D;  --cz-toc-accent-light:rgba(44,201,109,.12);  --cz-toc-accent-dark:#A8EDC7;
  --cz-toc-text:#F0F3F5;  --cz-toc-text-dim:#A0B4BF;  --cz-toc-text-mute:#97AEBB;
  --cz-toc-hover:#2C4A58;  --cz-toc-chip-bg:#26404C;  --cz-toc-focus:#2CC96D;
  --cz-toc-bar-bg:#26404C;  --cz-toc-panel-bg:#1B2F39;  --cz-toc-title-bg:#26404C;
  --cz-toc-chevron:#97AEBB;  --cz-toc-handle:#4A6878;
}
.cz-toc {
  position: relative;
  margin: 0 0 16px;
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: none;
}
.cz-toc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 11px 16px;
  border: 1px solid var(--cz-toc-border);
  border-radius: 12px;
  background: var(--cz-toc-bar-bg);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  touch-action: manipulation;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.cz-toc__bar:hover {
  border-color: var(--cz-toc-accent);
}
.cz-toc__bar-label,
.cz-toc__bar-toggle {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.cz-toc__bar-label {
  flex: 1 1 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cz-toc-text);
  text-align: left;
}
.cz-toc__bar-toggle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cz-toc-chevron);
  transition: background .15s, color .15s, transform .25s;
}
.cz-toc__bar-toggle:hover {
  background: var(--cz-toc-hover);
  color: var(--cz-toc-accent);
}
.cz-toc__chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .25s ease;
}
.cz-toc.is-open .cz-toc__chevron {
  transform: rotate(-135deg) translateY(-1px);
}
.cz-toc__bar-label:focus-visible,
.cz-toc__bar-toggle:focus-visible,
.cz-toc__chip:focus-visible,
.cz-toc__close:focus-visible {
  outline: 2px solid var(--cz-toc-focus);
  outline-offset: 2px;
}
.cz-toc__panel {
  display: none;
  margin-top: 6px;
  background: var(--cz-toc-panel-bg);
  border: 1px solid var(--cz-toc-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26,46,56,.08);
  padding: 0 0 14px;
  position: relative;
  width: 100%;
  z-index: 5;
  overflow: hidden;
}
.cz-toc.is-open .cz-toc__panel {
  display: block;
}
.cz-toc__drawer-handle {
  display: none;
}
.cz-toc__panel-title {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--cz-toc-text);
  margin: 0;
  line-height: 1.35;
  padding: 14px 16px;
  background: var(--cz-toc-title-bg);
  border-bottom: 1px solid var(--cz-toc-border);
  border-radius: 14px 14px 0 0;
  position: relative;
  padding-right: 52px;
}
.cz-toc__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--cz-toc-text-mute);
  cursor: pointer;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.cz-toc__close:hover {
  background: var(--cz-toc-hover);
  color: var(--cz-toc-text);
}
.cz-toc__body {
  padding: 12px 16px 4px;
  overflow-wrap: anywhere;
}
.cz-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cz-toc__sublist {
  margin: 4px 0 0;
  padding: 0 0 0 16px;
  list-style: none;
}
.cz-toc__item {
  margin: 0;
  list-style: none;
  position: relative;
  padding-left: 0;
}
.cz-toc__item a {
  display: block;
  padding: 6px 10px;
  color: var(--cz-toc-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.cz-toc__item a:hover {
  color: var(--cz-toc-accent);
  background: var(--cz-toc-hover);
}
.cz-toc__item.is-active > a {
  color: var(--cz-toc-accent);
  font-weight: 700;
  background: var(--cz-toc-accent-light);
}
.cz-toc__item.level-2 a {
  font-size: 13.5px;
  font-weight: 500;
}
.cz-toc__item.level-3 a,
.cz-toc__item.level-4 a,
.cz-toc__item.level-5 a,
.cz-toc__item.level-6 a {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.cz-toc--numbered .cz-toc__list,
.cz-toc--numbered .cz-toc__sublist { margin: 0; padding: 0; }
.cz-toc.cz-toc--numbered ol.cz-toc__list {
  list-style: none !important;
  counter-reset: item;
}
.cz-toc.cz-toc--numbered li.cz-toc__item {
  list-style: none !important;
  counter-increment: item;
  padding-left: 0;
  margin: 0;
}
.cz-toc.cz-toc--numbered .cz-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 10px;
  white-space: normal;
  word-break: break-word;
}
.cz-toc.cz-toc--numbered .cz-toc__link::before {
  content: counters(item, ".");
  flex: 0 0 2.3ch;
  min-width: 2.3ch;
  text-align: right;
  color: var(--cz-toc-text-mute);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.cz-toc.cz-toc--numbered .cz-toc__body > ol.cz-toc__list > li.cz-toc__item > .cz-toc__link::before {
  content: counter(item) ".";
  flex: 0 0 2.6ch;
  min-width: 2.6ch;
}
.cz-toc.cz-toc--numbered ol.cz-toc__list ol.cz-toc__list {
  margin-top: 2px;
  margin-left: 1rem;
}
.cz-toc:not(.cz-toc--numbered) li.cz-toc__item > a.cz-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cz-toc:not(.cz-toc--numbered) li.cz-toc__item > a.cz-toc__link::before {
  content: "";
  width: 5px;  min-width: 5px;  height: 5px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--cz-toc-text-mute);
  opacity: .4;
  flex-shrink: 0;
}
.cz-toc:not(.cz-toc--numbered) li.cz-toc__item.is-active > a.cz-toc__link::before {
  background: var(--cz-toc-accent);
  opacity: 1;
}
.cz-toc:not(.cz-toc--numbered) .cz-toc__list .cz-toc__list {
  padding-left: 14px !important;
}
.cz-toc .cz-toc__list { margin: 0; padding-left: 0 !important; }
.cz-toc .cz-toc__list .cz-toc__list { margin-top: 2px; padding-left: 12px !important; }
.cz-toc.cz-toc--numbered .cz-toc__list .cz-toc__list { padding-left: 10px !important; }
.cz-toc__backdrop { display: none; }
.cz-toc__chip {
  display: none;
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1002;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--cz-toc-chip-bg);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  font: 500 12px/1 inherit;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  width: 50vw;
  max-width: 260px;
  -webkit-tap-highlight-color: transparent;
}
.cz-toc__chip-icon {
  position: relative;
  width: 14px; height: 14px;
  display: inline-block;
}
.cz-toc__chip-icon::before,
.cz-toc__chip-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
}
.cz-toc__chip-icon::before { top: 4px; }
.cz-toc__chip-icon::after { bottom: 4px; }
.cz-toc__chip-current {
  flex: 1 1 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255,255,255,.8);
  font-size: 12px;
}
.cz-toc.is-open .cz-toc__chip { opacity: 0; pointer-events: none; }
body.cz-toc-lock { overflow: hidden; }
@media (max-width: 767px) {
  .cz-toc { margin: 0; width: 100%; max-width: none; }
  .cz-toc__panel {
    display: block;
    visibility: hidden;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32,.72,0,1), visibility 0s .28s;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(26,46,56,.18);
    border: 0;
    padding: 0;
    z-index: 1001;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cz-toc-panel-bg);
  }
  .cz-toc.is-open .cz-toc__panel {
    visibility: visible;
    transform: translateY(0);
    transition: transform .28s cubic-bezier(.32,.72,0,1), visibility 0s 0s;
  }
  .cz-toc__drawer-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 2px;
    cursor: grab;
  }
  .cz-toc__drawer-handle span {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--cz-toc-handle);
  }
  .cz-toc__panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--cz-toc-panel-bg);
    border-radius: 0;
    border-bottom: 1px solid var(--cz-toc-border);
    padding: 12px 16px;
    padding-right: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--cz-toc-text);
    line-height: 1.3;
    gap: 8px;
  }
  .cz-toc__close {
    position: static;
    transform: none;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }
  .cz-toc__body {
    padding: 10px 16px 24px;
  }
  .cz-toc__item a {
    font-size: 13.5px;
    line-height: 1.4;
    padding: 6px 10px;
  }
  .cz-toc__item.level-3 a,
  .cz-toc__item.level-4 a,
  .cz-toc__item.level-5 a,
  .cz-toc__item.level-6 a {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .cz-toc.cz-toc--numbered .cz-toc__link::before { flex-basis: 2.4rem; }
  .cz-toc.cz-toc--numbered ol.cz-toc__list ol.cz-toc__list { margin-left: .8rem; }
  .cz-toc__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26,46,56,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 1000;
  }
  .cz-toc.is-open .cz-toc__backdrop { opacity: 1; pointer-events: auto; }
  .cz-toc__chip { display: none; }
  .cz-toc__chip.is-visible { display: inline-flex; }
}
