*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg:        #0d0f15;
      --bg2:       #12151e;
      --bg3:       #181b27;
      --border:    rgba(255,255,255,0.07);
      --border2:   rgba(255,255,255,0.12);
      --text:      #e0e2f0;
      --muted:     #72768a;
      --accent:    #5865f2;
      --green:     #57f287;
      --red:       #ed4245;
      --gold:      #f0b429;
      --orange:    #ff7e33;
      --yellow:    #fee75c;
      --pink:      #eb459e;
      --blue:      #00b0f4;
      --sidebar-w: 280px;
      --topbar-h:  58px;
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-size: 15px;
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }
    code {
      font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
      background: rgba(255,255,255,0.07);
      padding: 2px 6px;
      border-radius: 5px;
      font-size: 0.875em;
      color: #c9d1d9;
    }
    pre {
      background: #0a0c12;
      border: 1px solid var(--border2);
      border-radius: 10px;
      padding: 16px 18px;
      overflow-x: auto;
      font-size: 0.875rem;
      line-height: 1.6;
      margin: 14px 0;
    }
    pre code { background: none; padding: 0; font-size: 1em; }

    .docs-topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--topbar-h);
      background: rgba(13,15,21,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 20px;
      gap: 14px;
      z-index: 1000;
    }
    .docs-topbar__logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1.05rem;
      color: var(--text);
      text-decoration: none!important;
    }
    .docs-topbar__logo img { width: 30px; height: 30px; border-radius: 6px; }
    .docs-topbar__divider { width: 1px; height: 22px; background: var(--border2); }
    .docs-topbar__label { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
    .docs-topbar__search-wrap {
      margin-left: auto;
      position: relative;
      display: flex;
      align-items: center;
    }
    .docs-topbar__search {
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border2);
      border-radius: 8px;
      color: var(--text);
      font-size: 0.85rem;
      padding: 7px 12px 7px 34px;
      width: 220px;
      outline: none;
      transition: border-color .2s, width .25s;
    }
    .docs-topbar__search:focus { border-color: var(--accent); width: 280px; }
    .docs-topbar__search::placeholder { color: var(--muted); }
    .docs-topbar__search-icon {
      position: absolute;
      left: 10px;
      color: var(--muted);
      font-size: 0.78rem;
      pointer-events: none;
    }
    .docs-menu-btn {
      display: none;
      background: none;
      border: 1px solid var(--border2);
      border-radius: 8px;
      color: var(--text);
      width: 36px;
      height: 36px;
      cursor: pointer;
      font-size: 1rem;
      align-items: center;
      justify-content: center;
    }
    .docs-topbar__home {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.82rem;
      color: var(--muted);
      padding: 6px 10px;
      border-radius: 7px;
      border: 1px solid var(--border);
      transition: color .15s, border-color .15s;
    }
    .docs-topbar__home:hover { color: var(--text); border-color: var(--border2); text-decoration: none; }

    
    .docs-layout {
      display: flex;
      padding-top: var(--topbar-h);
      min-height: 100vh;
    }

    
    .docs-sidebar {
      position: fixed;
      top: var(--topbar-h);
      left: 0;
      width: var(--sidebar-w);
      height: calc(100vh - var(--topbar-h));
      overflow-y: auto;
      overflow-x: hidden;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      padding: 0 0 0;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.07) transparent;
      z-index: 900;
      transition: transform .25s ease;
      display: flex;
      flex-direction: column;
    }
    .docs-sidebar::-webkit-scrollbar { width: 3px; }
    .docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

    
    .sb-header {
      padding: 12px 12px 10px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--bg2);
      z-index: 5;
      flex-shrink: 0;
    }
    .sb-search-wrap { position: relative; display: flex; align-items: center; }
    .sb-search-icon {
      position: absolute;
      left: 10px;
      color: var(--muted);
      font-size: 0.7rem;
      pointer-events: none;
    }
    .sb-search {
      width: 100%;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-size: 0.8rem;
      padding: 7px 10px 7px 30px;
      outline: none;
      transition: border-color .18s, background .18s;
      font-family: inherit;
    }
    .sb-search:focus { border-color: var(--accent); background: rgba(88,101,242,0.05); }
    .sb-search::placeholder { color: var(--muted); }

    
    .sb-section { padding: 10px 10px 6px; }
    .sb-section + .sb-section { border-top: 1px solid var(--border); padding-top: 12px; }
    .sb-section__label {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 2px 4px 8px;
      font-size: 0.62rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--muted);
    }
    .sb-section__licon {
      width: 16px;
      height: 16px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.58rem;
      flex-shrink: 0;
    }
    .sb-count {
      margin-left: auto;
      font-size: 0.6rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 1px 7px;
      color: var(--muted);
      font-weight: 700;
    }
    .sb-section--premium .sb-section__label { color: rgba(240,180,41,0.8); }
    .sb-section--premium .sb-count { background: rgba(240,180,41,0.1); border-color: rgba(240,180,41,0.2); color: var(--gold); }
    .sb-section--mod .sb-section__label { color: rgba(114,137,218,0.8); }

    
    .docs-nav-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 8px 5px 6px;
      border-radius: 7px;
      font-size: 0.81rem;
      color: var(--muted);
      cursor: pointer;
      transition: background .12s, color .12s, border-left-color .12s;
      border: none;
      border-left: 2px solid transparent;
      background: none;
      width: 100%;
      text-align: left;
      text-decoration: none;
      margin-bottom: 1px;
    }
    .docs-nav-link:hover {
      background: rgba(255,255,255,0.04);
      color: var(--text);
      text-decoration: none;
      border-left-color: rgba(255,255,255,0.12);
    }
    .docs-nav-link.active {
      background: rgba(88,101,242,0.1);
      color: var(--text);
      font-weight: 600;
      border-left-color: var(--accent);
    }
    .docs-nav-link.sb-hidden { display: none; }

    
    .nav-chip {
      width: 20px;
      height: 20px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      flex-shrink: 0;
      opacity: 0.75;
      transition: opacity .12s;
    }
    .docs-nav-link:hover .nav-chip,
    .docs-nav-link.active .nav-chip { opacity: 1; }

    
    .sb-sub .docs-nav-link { padding-left: 10px; font-size: 0.79rem; }
    .sb-sub .nav-chip { width: 18px; height: 18px; font-size: 0.6rem; border-radius: 4px; }

    
    .nav-badge {
      margin-left: auto;
      font-size: 0.58rem;
      padding: 2px 6px;
      border-radius: 8px;
      font-weight: 700;
      background: rgba(240,180,41,0.1);
      color: var(--gold);
      border: 1px solid rgba(240,180,41,0.2);
      white-space: nowrap;
    }

    
    .sb-footer {
      margin-top: auto;
      padding: 10px 10px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    .sb-back-top {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: 8px;
      font-size: 0.78rem;
      color: var(--muted);
      transition: color .15s, background .15s;
      text-decoration: none;
      border: 1px solid transparent;
    }
    .sb-back-top:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border); text-decoration: none; }

    
    .phase-flow {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin: 18px 0 6px;
      flex-wrap: wrap;
      gap: 8px;
    }
    .phase-card {
      flex: 1;
      min-width: 140px;
      border-radius: 10px;
      padding: 14px 14px;
      border: 1px solid var(--border);
      background: var(--bg3);
    }
    .phase-card--1 { border-top: 3px solid #57f287; }
    .phase-card--2 { border-top: 3px solid #faa61a; }
    .phase-card--3 { border-top: 3px solid #ed4245; }
    .phase-card__num {
      font-size: 0.62rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 6px;
    }
    .phase-card--1 .phase-card__num { color: #57f287; }
    .phase-card--2 .phase-card__num { color: #faa61a; }
    .phase-card--3 .phase-card__num { color: #ed4245; }
    .phase-card__icon { font-size: 1.5rem; margin-bottom: 6px; }
    .phase-card__label { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
    .phase-card__desc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
    .phase-arrow {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--muted);
      font-size: 0.8rem;
      padding: 0 2px;
      flex-shrink: 0;
      align-self: center;
    }
    .phase-arrow span { font-size: 0.6rem; white-space: nowrap; }

    
    .example-box {
      background: rgba(88,101,242,0.05);
      border: 1px solid rgba(88,101,242,0.14);
      border-left: 3px solid var(--accent);
      border-radius: 0 8px 8px 0;
      padding: 14px 16px;
      margin: 14px 0;
      font-size: 0.88rem;
    }
    .example-box__label {
      font-size: 0.62rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--accent);
      margin-bottom: 8px;
    }
    .example-box p { color: #b0b4c8; margin: 0 0 6px; }
    .example-box p:last-child { margin-bottom: 0; }
    .example-box strong { color: var(--text); }
    .example-box code { background: rgba(255,255,255,0.08); }

    
    .esc-timeline { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
    .esc-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.83rem;
    }
    .esc-step:last-child { border-bottom: none; }
    .esc-step__num {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      font-weight: 800;
      margin-top: 1px;
    }
    .esc-step__body { flex: 1; }
    .esc-step__trigger { font-weight: 600; color: var(--text); margin-bottom: 3px; }
    .esc-step__detail { color: var(--muted); font-size: 0.8rem; }
    .esc-phase {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 8px;
      margin-left: 6px;
      vertical-align: middle;
    }
    .esc-phase--0  { background: rgba(114,118,138,0.12); color: var(--muted); border: 1px solid rgba(114,118,138,0.2); }
    .esc-phase--1  { background: rgba(87,242,135,0.1);   color: #57f287;      border: 1px solid rgba(87,242,135,0.2); }
    .esc-phase--2  { background: rgba(250,166,26,0.1);   color: #faa61a;      border: 1px solid rgba(250,166,26,0.2); }
    .esc-phase--3  { background: rgba(237,66,69,0.1);    color: #ed4245;      border: 1px solid rgba(237,66,69,0.2); }

    
    .module-entry {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 18px;
      overflow: hidden;
    }
    .module-entry__head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      background: rgba(255,255,255,0.02);
    }
    .module-entry__head h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; }
    .module-entry__head p  { font-size: 0.78rem; color: var(--muted); margin: 2px 0 0; }
    .module-entry__icon {
      width: 34px; height: 34px;
      border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.88rem;
      flex-shrink: 0;
    }
    .module-entry__body { padding: 14px 18px; }
    .module-entry__cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 14px;
    }
    .module-entry__col h5 {
      font-size: 0.68rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      margin-bottom: 7px;
    }
    .module-entry__col.triggers h5    { color: #57f287; }
    .module-entry__col.no-trigger h5  { color: var(--muted); }
    .module-entry__col ul { padding-left: 16px; color: #b0b4c8; font-size: 0.8rem; }
    .module-entry__col li { margin-bottom: 4px; }
    .module-entry__rec {
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 12px;
      font-size: 0.8rem;
    }
    .module-entry__rec-label {
      font-size: 0.62rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: var(--gold);
      margin-bottom: 6px;
    }
    .module-entry__rec table { width: 100%; border-collapse: collapse; }
    .module-entry__rec td { padding: 3px 8px 3px 0; color: #b0b4c8; font-size: 0.78rem; vertical-align: top; }
    .module-entry__rec td:first-child { color: var(--text); font-weight: 600; min-width: 110px; }
    @media (max-width: 600px) {
      .module-entry__cols { grid-template-columns: 1fr; }
    }

    
    .phase-trace { display: flex; flex-direction: column; gap: 0; }
    .phase-trace__row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 9px 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.82rem;
      flex-wrap: wrap;
    }
    .phase-trace__row:last-child { border-bottom: none; }
    .pt-count { color: var(--muted); min-width: 100px; font-weight: 600; flex-shrink: 0; padding-top: 1px; }
    .pt-arrow { color: var(--muted); flex-shrink: 0; padding-top: 1px; }
    .pt-phase {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 9px;
      border-radius: 9px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .pt-phase--1 { background: rgba(87,242,135,0.1); color: #57f287; border: 1px solid rgba(87,242,135,0.2); }
    .pt-phase--2 { background: rgba(250,166,26,0.1); color: #faa61a; border: 1px solid rgba(250,166,26,0.2); }
    .pt-phase--3 { background: rgba(237,66,69,0.1); color: #ed4245; border: 1px solid rgba(237,66,69,0.2); }
    .pt-result { color: var(--muted); font-size: 0.8rem; padding-top: 2px; }

    
    .docs-main {
      margin-left: var(--sidebar-w);
      flex: 1;
      padding: 40px 40px 80px;
      max-width: 900px;
    }

    
    .docs-hero {
      margin-bottom: 48px;
      padding-bottom: 32px;
      border-bottom: 1px solid var(--border);
    }
    .docs-hero__badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--green);
      background: rgba(87,242,135,0.1);
      border: 1px solid rgba(87,242,135,0.25);
      border-radius: 20px;
      padding: 4px 12px;
      margin-bottom: 14px;
    }
    .docs-updated-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.7rem;
      color: var(--muted);
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 3px 10px;
      margin-left: 8px;
      vertical-align: middle;
      font-weight: 500;
    }
    .docs-updated-tag i { font-size: 0.62rem; }

    .docs-hero h1 {
      font-size: 2.2rem;
      font-weight: 900;
      line-height: 1.15;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #e0e2f0 30%, var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .docs-hero p { font-size: 1rem; color: var(--muted); max-width: 600px; }

    
    .doc-section {
      margin-bottom: 60px;
      scroll-margin-top: calc(var(--topbar-h) + 20px);
    }
    .doc-section__header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
    }
    .doc-section__icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      flex-shrink: 0;
    }
    .doc-section h2 {
      font-size: 1.45rem;
      font-weight: 800;
      color: var(--text);
    }
    .doc-section__sub {
      font-size: 0.82rem;
      color: var(--muted);
      margin-bottom: 18px;
      padding-left: 50px;
    }
    .doc-section__divider {
      height: 1px;
      background: var(--border);
      margin: 28px 0;
    }

    
    .doc-block { margin-bottom: 24px; }
    .doc-block h3 {
      font-size: 0.95rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--muted);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .doc-block h3::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .doc-block p { color: #b0b4c8; margin-bottom: 10px; font-size: 0.92rem; }
    .doc-block ul, .doc-block ol {
      padding-left: 20px;
      color: #b0b4c8;
      font-size: 0.92rem;
    }
    .doc-block li { margin-bottom: 6px; }
    .doc-block li strong { color: var(--text); }

    
    .doc-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px 20px;
      margin-bottom: 14px;
    }
    .doc-card__label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: var(--muted);
      margin-bottom: 8px;
    }

    
    .callout {
      display: flex;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 10px;
      margin: 14px 0;
      font-size: 0.88rem;
    }
    .callout--info    { background: rgba(88,101,242,0.08); border: 1px solid rgba(88,101,242,0.25); }
    .callout--warn    { background: rgba(254,231,92,0.07); border: 1px solid rgba(254,231,92,0.2); }
    .callout--danger  { background: rgba(237,66,69,0.08); border: 1px solid rgba(237,66,69,0.22); }
    .callout--success { background: rgba(87,242,135,0.07); border: 1px solid rgba(87,242,135,0.2); }
    .callout--premium { background: rgba(240,180,41,0.07); border: 1px solid rgba(240,180,41,0.22); }
    .callout i { margin-top: 2px; flex-shrink: 0; }
    .callout--info    i { color: var(--accent); }
    .callout--warn    i { color: var(--yellow); }
    .callout--danger  i { color: var(--red); }
    .callout--success i { color: var(--green); }
    .callout--premium i { color: var(--gold); }
    .callout p { margin: 0; color: var(--text); }
    .callout strong { color: var(--text); }

    
    .config-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.875rem; }
    .config-table th {
      text-align: left;
      padding: 9px 12px;
      background: rgba(255,255,255,0.04);
      color: var(--muted);
      font-weight: 600;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: .05em;
      border-bottom: 1px solid var(--border);
    }
    .config-table td {
      padding: 9px 12px;
      border-bottom: 1px solid var(--border);
      color: #b0b4c8;
      vertical-align: top;
    }
    .config-table tr:last-child td { border-bottom: none; }
    .config-table tr:hover td { background: rgba(255,255,255,0.02); }
    .config-table td:first-child { color: var(--text); font-weight: 600; font-family: 'Fira Code', monospace; font-size: 0.82rem; }
    .config-table td .default { color: var(--green); font-family: monospace; font-size: 0.82rem; }

    
    .flow {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 16px 0;
    }
    .flow-step {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 12px 0;
      position: relative;
    }
    .flow-step:not(:last-child)::before {
      content: '';
      position: absolute;
      left: 15px;
      top: 44px;
      bottom: 0;
      width: 2px;
      background: var(--border2);
    }
    .flow-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 0.75rem;
      font-weight: 800;
    }
    .flow-body { flex: 1; }
    .flow-body strong { color: var(--text); display: block; font-size: 0.9rem; margin-bottom: 3px; }
    .flow-body span { color: var(--muted); font-size: 0.82rem; }

    
    .punishments-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
      margin: 14px 0;
    }
    .punishment-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
    }
    .punishment-card__icon {
      font-size: 1.2rem;
      margin-bottom: 8px;
    }
    .punishment-card h4 {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }
    .punishment-card p {
      font-size: 0.78rem;
      color: var(--muted);
      margin: 0;
    }

    
    .modules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
      margin: 14px 0;
    }
    .module-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
      transition: border-color .15s;
    }
    .module-card:hover { border-color: var(--border2); }
    .module-card__head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }
    .module-card__head i { font-size: 0.9rem; }
    .module-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); }
    .module-card p { font-size: 0.78rem; color: var(--muted); margin: 0; line-height: 1.5; }

    
    .thresh-example {
      background: #0a0c12;
      border: 1px solid var(--border2);
      border-radius: 10px;
      overflow: hidden;
      margin: 14px 0;
      font-size: 0.83rem;
    }
    .thresh-example__head {
      display: flex;
      gap: 0;
      background: rgba(255,255,255,0.04);
      border-bottom: 1px solid var(--border);
    }
    .thresh-example__head span {
      flex: 1;
      padding: 8px 12px;
      color: var(--muted);
      font-weight: 600;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: .05em;
      border-right: 1px solid var(--border);
      text-align: center;
    }
    .thresh-example__head span:last-child { border-right: none; }
    .thresh-example__row {
      display: flex;
    }
    .thresh-example__row:not(:last-child) { border-bottom: 1px solid var(--border); }
    .thresh-example__row span {
      flex: 1;
      padding: 8px 12px;
      border-right: 1px solid var(--border);
      text-align: center;
      color: #b0b4c8;
    }
    .thresh-example__row span:last-child { border-right: none; }
    .thresh-example__row span:first-child { color: var(--text); font-weight: 600; text-align: left; }
    .thresh-on  { color: var(--green) !important; }
    .thresh-off { color: var(--muted) !important; }

    
    .anchor-link {
      display: inline-block;
      font-size: 0.72rem;
      color: var(--muted);
      margin-left: 8px;
      opacity: 0;
      transition: opacity .15s;
      vertical-align: middle;
    }
    .doc-section__header:hover .anchor-link { opacity: 1; }

    
    .premium-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 10px;
      background: rgba(240,180,41,0.12);
      color: var(--gold);
      border: 1px solid rgba(240,180,41,0.25);
      margin-left: 8px;
      vertical-align: middle;
    }

    
    .tag {
      display: inline-block;
      background: rgba(88,101,242,0.1);
      border: 1px solid rgba(88,101,242,0.2);
      color: var(--accent);
      font-size: 0.75rem;
      padding: 2px 8px;
      border-radius: 6px;
      margin: 2px;
      font-family: monospace;
    }

    
    .search-results {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 340px;
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      z-index: 2000;
      display: none;
    }
    .search-results.visible { display: block; }
    .search-results__empty { padding: 16px; color: var(--muted); font-size: 0.85rem; text-align: center; }
    .search-result-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background .12s;
    }
    .search-result-item:last-child { border-bottom: none; }
    .search-result-item:hover { background: rgba(255,255,255,0.04); }
    .search-result-item i { font-size: 0.8rem; color: var(--muted); width: 16px; }
    .search-result-item strong { font-size: 0.85rem; color: var(--text); display: block; }
    .search-result-item span { font-size: 0.75rem; color: var(--muted); }

    
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 850;
    }

    

    
    .sb-parent-row {
      display: flex;
      align-items: stretch;
      gap: 2px;
    }
    .sb-parent-row .sb-parent-link {
      flex: 1;
      min-width: 0;
    }

    
    .sb-chevron {
      flex-shrink: 0;
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      width: 28px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.6rem;
      transition: background .12s, color .12s;
      padding: 0;
      align-self: stretch;
    }
    .sb-chevron:hover { background: rgba(255,255,255,0.07); color: var(--text); }
    .sb-chevron i { transition: transform .2s ease; display: block; }
    .sb-chevron.open i { transform: rotate(90deg); }

    
    .sb-tree-children {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height .22s ease, opacity .18s ease;
      padding-left: 8px;
    }
    .sb-tree-children.open { max-height: 300px; opacity: 1; }

    .sb-child-link { font-size: 0.78rem; }
    .sb-child-link .nav-chip { width: 16px; height: 16px; font-size: 0.58rem; border-radius: 4px; }

    
    .sb-parent.has-active-child .sb-parent-link {
      background: rgba(237,66,69,0.07);
      border-left-color: rgba(237,66,69,0.5);
      color: var(--text);
    }
    .sb-parent.has-active-child .sb-parent-link .nav-chip { opacity: 1; }
    .sb-parent.has-active-child .sb-chevron { color: rgba(237,66,69,0.7); }

    
    @media (max-width: 900px) {
      .docs-main { margin-left: 0; padding: 24px 20px 60px; }
      .docs-sidebar { transform: translateX(-100%); }
      .docs-sidebar.open { transform: translateX(0); }
      .docs-menu-btn { display: flex; }
      .sidebar-overlay.open { display: block; }
      .docs-hero h1 { font-size: 1.7rem; }
      
      .docs-topbar__label { display: none; }
      .docs-topbar__divider { display: none; }
      .docs-topbar__search { width: 160px; }
      .docs-topbar__search:focus { width: 200px; }
    }
    @media (max-width: 640px) {
      .docs-topbar { padding: 0 10px; gap: 8px; }
      
      .docs-topbar__logo-text { display: none; color: #fff; }
      .docs-topbar__search { width: 120px; font-size: 0.78rem; padding: 6px 8px 6px 28px; }
      .docs-topbar__search:focus { width: 150px; }
      .docs-topbar__home .docs-topbar__home-text { display: none; }
    }
    @media (max-width: 480px) {
      
      .docs-topbar__search-wrap { display: none; }
      .punishments-grid { grid-template-columns: 1fr 1fr; }
      .modules-grid { grid-template-columns: 1fr; }
    }
