﻿#userGuidePopup {
    width: min(980px, 94vw) !important;
    max-height: 90vh !important;
  }
  #guideContent {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--sur);
    color: var(--txt);
    padding: 20px;
    overflow-y: auto;
  }
  #guideContent .guide-doc {
    display: grid;
    gap: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--txt);
  }
  #guideContent .guide-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
  }
  #guideContent .guide-meta {
    margin: 0;
    color: var(--txt);
    font-size: 14px;
  }
  #guideContent .guide-section {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid var(--brd);
    border-radius: 10px;
    background: var(--sur2);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
  }
  #guideContent .guide-section > *:first-child { margin-top: 0; }
  #guideContent .guide-section > *:last-child { margin-bottom: 0; }
  #guideContent .guide-section h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
  }
  #guideContent .guide-section h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
  }
  #guideContent .guide-section p {
    margin: 0 0 14px;
    max-width: 72ch;
  }
  #guideContent .guide-list,
  #guideContent .guide-steps {
    margin: 0 0 16px;
    padding-left: 1.6em;
    max-width: 72ch;
  }
  #guideContent .guide-list { list-style: disc outside; }
  #guideContent .guide-steps { list-style: decimal outside; }
  #guideContent .guide-list li::marker,
  #guideContent .guide-steps li::marker {
    color: var(--mu);
  }
  #guideContent .guide-list li,
  #guideContent .guide-steps li {
    display: list-item;
    margin: 7px 0;
    line-height: 1.56;
  }
  #guideContent .guide-doc code {
    font-family: "JetBrains Mono", monospace;
    font-size: .88em;
    background: var(--sur3);
    border: 1px solid var(--brd);
    border-radius: 6px;
    padding: 1px 6px;
  }
  #guideContent .guide-note {
    margin: 0;
    border-left: 3px solid var(--acc);
    background: rgba(91,82,232,.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
  }
  #guideContent .guide-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--brd);
    border-radius: 10px;
    margin: 12px 0;
    background: var(--sur);
  }
  #guideContent .guide-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
  }
  #guideContent .guide-table th,
  #guideContent .guide-table td {
    border-bottom: 1px solid var(--brd);
    padding: 11px 13px;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
  }
  #guideContent .guide-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--di);
    font-weight: 700;
    background: var(--sur3);
  }
  #guideContent .guide-table tbody tr:nth-child(even) {
    background: rgba(127,127,127,.05);
  }
  @media (max-width: 760px) {
    #tabProfitability, #tabCommissions {
      padding: 12px 14px !important;
      font-size: 12px !important;
    }
    #guideContent { padding: 12px; }
    #guideContent .guide-doc { font-size: 14px; }
    #guideContent .guide-hero h1 { font-size: 30px; }
    #guideContent .guide-section { padding: 13px 13px 12px; border-radius: 10px; }
    #guideContent .guide-section h2 { font-size: 24px; margin-bottom: 10px; }
    #guideContent .guide-section h3 { font-size: 18px; margin-top: 13px; }
    #guideContent .guide-list,
    #guideContent .guide-steps {
      padding-left: 1.35em;
      margin-bottom: 14px;
    }
    #guideContent .guide-list li,
    #guideContent .guide-steps li { margin: 6px 0; }
    #guideContent .guide-table { min-width: 460px; font-size: 13px; }
    #guideContent .guide-table th,
    #guideContent .guide-table td { padding: 9px 10px; }
    #guideContent .guide-note { font-size: 13px; }
  }
  @media (max-width: 420px) {
    #userGuidePopup {
      width: 96vw !important;
      max-height: 92vh !important;
    }
    #guideContent { padding: 10px; }
    #guideContent .guide-doc { font-size: 13.5px; }
    #guideContent .guide-hero h1 { font-size: 26px; }
    #guideContent .guide-section h2 { font-size: 21px; }
    #guideContent .guide-section h3 { font-size: 17px; }
    #guideContent .guide-table { min-width: 420px; }
  }
