  :root {
    --navy: #03152b;
    --navy-mid: #23133a;
    --navy-card: #0d2744;
    --navy-border: #3a1c63;
    --cyan: #883CF0;
    --cyan-dim: #883CF0;
    --cyan-glow: #23133a;
    --white: #f0f6ff;
    --muted: #d6d6d6;
    --warn: #f5a623;
    --danger: #e05c6d;
    --success: #4dbe8a;
    --tag-bg: #291a3e;
    --sidebar-w: 260px;
    --radius: 12px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }
  main{
    width:0;
  }
  .strongdm-access-training {
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    line-height: 1.65;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  /* ── SIDEBAR ── */
  .strongdm-access-training #sidebar {
    width: var(--sidebar-w);
    background: #180f26;
    border-right: 1px solid #3a1c63;
    position: sticky;
    top: 0;
    overflow-y: auto;
    height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  .strongdm-access-training #sidebar::-webkit-scrollbar { width: 4px; }
  .strongdm-access-training #sidebar::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 2px; }

  .strongdm-access-training .sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #3a1c63;
    flex-shrink: 0;
  }

  .strongdm-access-training .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .strongdm-access-training .logo-mark {
    width: 32px; height: 32px;
    background: var(--cyan);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    flex-shrink: 0;
  }

  .logo-text { font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.2; }
  .logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

  .progress-wrap { margin-top: 4px; }
  .progress-label { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 6px; }
  .progress-bar { height: 4px; background: #2a2237; border-radius: 2px; overflow: hidden; }
  .progress-fill {
    height: 100%; background: var(--cyan);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .strongdm-access-training .nav-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    padding: 18px 20px 6px;
  }

  .strongdm-access-training .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 400;
    text-decoration: none;
    position: relative;
  }

  .nav-item:hover { background: #1f1232; color: var(--white); }
  .nav-item.active { background: var(--cyan-glow); color: var(--cyan); border-left-color: var(--cyan); font-weight: 500; }

  .nav-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

  .nav-badge {
    margin-left: auto;
    font-size: 10px;
    background: #2a2237;
    border-radius: 10px;
    padding: 1px 7px;
    color: var(--muted);
  }

  .nav-item.done .nav-badge { background: #23133a; color: var(--success); }

  /* ── MAIN ── */
  .strongdm-access-training #main {
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    width: auto;
    flex: 1;
    background-color:#191127;
  }

  /* ── TOP BAR ── */
  .strongdm-access-training .topbar {
    position: sticky;
    top: 0;
    background: #180f26;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #3a1c63;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
  }

  .strongdm-access-training .menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--navy-border);
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
  }
  .menu-btn:hover { border-color: var(--cyan); background: rgba(41,217,194,0.06); }
  .menu-btn:active { transform: translateY(1px); }
  .menu-btn svg { width: 18px; height: 18px; }

  .topbar-title { font-size: 14px; color: var(--muted); font-weight: 400; }
  .topbar-title strong { color: var(--white); font-weight: 600; }

  .topbar-actions { display: flex; gap: 10px; }

  .btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }

  .btn-ghost {
    background: transparent;
    border: 1px solid var(--navy-border);
    color: var(--muted);
  }
  .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

  .btn-primary {
    background: var(--cyan);
    color: var(--navy);
  }
  .btn-primary:hover { background: #883cf0e0; }

  /* ── SECTION ── */


  .strongdm-access-training .section {
  padding: 48px 40px 64px;
  max-width: 900px;
  display: none;
  animation: fadeUp 0.35s ease both;
  transform: none !important;
}
  .strongdm-access-training .section.active { display: block; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── HERO ── */
  .strongdm-access-training .hero {
    background: linear-gradient(135deg, #23133a 0%, #23133a49 100%);
    border: 1px solid #3a1c63;
    border-radius: 16px;
    padding: 40px 40px 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
  }

  .strongdm-access-training .hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, #140f1f 0%, transparent 70%);
    pointer-events: none;
  }

  .strongdm-access-training .hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
  }

  .strongdm-access-training .hero h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--white);
  }

  .strongdm-access-training .hero p { color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.7; }

  .strongdm-access-training .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .strongdm-access-training .chip {
    font-size: 12px;
    background: var(--tag-bg);
    border: 1px solid #5e309d;
    color: var(--cyan);
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 500;
  }

  /* ── SECTION TITLE ── */
  .strongdm-access-training .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--navy-border);
  }

  .section-icon {
    width: 40px; height: 40px;
    background: var(--tag-bg);
    border: 1px solid #5e309d;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .section-title h2 { font-size: 22px; font-weight: 700; color: var(--white); }
  .section-title p { font-size: 13px; color: var(--muted); margin-top: 2px; }

  /* ── CARD ── */
  .strongdm-access-training .card {
    background: #23133a;
    border: 1px solid #3a1c63;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
  }

  .strongdm-access-training .card:hover { border-color: #883CF0; }

  .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-title .dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
  }

  .card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

  /* ── KEY POINT LIST ── */
  .kp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .kp-list li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #c5d8f0;
    line-height: 1.6;
  }
  .kp-list li::before {
    content: '→';
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 600;
  }

  /* ── 2-COL GRID ── */
  .strongdm-access-training .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

  /* ── PERMISSION TABLE ── */
  .strongdm-access-training .perm-table-wrap {
    /* position: relative; */
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius);
    border: 1px solid var(--navy-border);
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
  .perm-table-wrap::before,
  .perm-table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    pointer-events: none;
    z-index: 1;
  }
  .perm-table-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #be52e51b, #be52e508);
  }
  .perm-table-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #be52e51b, #be52e508);
  }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th {
    background: #883cf050;
    color: var(--cyan);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #3a1c63;
  }
  td {
    padding: 9px 14px;
    border-bottom: 1px solid #23133a;
    color: #b0c8e8;
    vertical-align: middle;
  }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: rgba(41,217,194,0.04); }
  .check { color: var(--success); font-size: 16px; }
  .dash { color: #3a1c63; }

  /* ── NOTE BOX ── */
  .note {
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    border-left: 3px solid var(--warn);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #e8c87a;
    margin: 16px 0;
    line-height: 1.6;
  }

  .note strong { color: var(--warn); }

  .tip {
    background: #23133a;
    border: 1px solid #3a1c63;
    border-left: 3px solid var(--cyan);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #d6d6d6;
    margin: 16px 0;
    line-height: 1.6;
  }

  /* ── ACCORDION ── */
  .accordion { margin-bottom: 10px; }

  .accordion-head {
    background: #23133a;
    border: 1px solid #3a1c63;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: all 0.2s;
    user-select: none;
  }

  .accordion-head:hover { border-color: var(--cyan); color: var(--cyan); }
  .accordion-head.open { border-color: var(--cyan); border-bottom-left-radius: 0; border-bottom-right-radius: 0; color: var(--cyan); background: #291a3e; }

  .accordion-arrow { transition: transform 0.3s; font-size: 12px; color: var(--muted); }
  .accordion-head.open .accordion-arrow { transform: rotate(180deg); color: var(--cyan); }

  .accordion-body {
    display: none;
    background: #23133a;
    border: 1px solid var(--cyan);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 18px 18px 16px;
    font-size: 14px;
    color: #b0c8e8;
    line-height: 1.7;
  }

  .accordion-body.open { display: block; animation: fadeDown 0.25s ease; }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── WORKFLOW STEPS ── */
  .flow-steps { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }

  .flow-step {
    display: flex;
    gap: 16px;
    position: relative;
  }

  .flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: -10px;
    width: 2px;
    background: var(--navy-border);
  }

  .step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--tag-bg);
    border: 2px solid var(--cyan);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    flex-shrink: 0;
    z-index: 1;
  }

  .step-content { padding-bottom: 28px; }
  .step-content h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
  .step-content p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

  /* ── TAG PILLS ── */
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .tag { font-size: 12px; padding: 3px 11px; border-radius: 20px; font-weight: 500; }
  .tag-cyan { background: var(--tag-bg); color: var(--cyan); border: 1px solid #5e309d; }
  .tag-warn { background: rgba(245,166,35,0.1); color: var(--warn); border: 1px solid rgba(245,166,35,0.2); }
  .tag-green { background: rgba(77,190,138,0.1); color: var(--success); border: 1px solid rgba(77,190,138,0.2); }
  .tag-red { background: rgba(224,92,109,0.1); color: var(--danger); border: 1px solid rgba(224,92,109,0.2); }

  /* ── QUIZ ── */
  .quiz-card {
    background: #23133a;
    border: 1px solid var(--navy-border);
    border-radius: 14px;
    padding: 28px;
    margin: 24px 0;
  }

  .quiz-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .quiz-q { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 18px; line-height: 1.5; }

  .quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

  .quiz-opt {
    background:#291a3e;
    border: 1.5px solid var(--navy-border);
    border-radius: 9px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #f6f6f6;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
  }

  .quiz-opt:hover { border-color: var(--cyan); color: var(--white); }

  .quiz-opt.correct { background: rgba(77,190,138,0.12); border-color: var(--success); color: var(--success); }
  .quiz-opt.incorrect { background: rgba(224,92,109,0.1); border-color: var(--danger); color: var(--danger); }
  .quiz-opt.disabled { pointer-events: none; }

  .opt-letter {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--navy-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .quiz-opt.correct .opt-letter { background: var(--success); color: #fff; }
  .quiz-opt.incorrect .opt-letter { background: var(--danger); color: #fff; }

  .quiz-feedback {
    display: none;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 4px;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.ok { background: rgba(77,190,138,0.1); border: 1px solid rgba(77,190,138,0.25); color: #a8d8b4; }
  .quiz-feedback.bad { background: rgba(224,92,109,0.08); border: 1px solid rgba(224,92,109,0.2); color: #e8a0a9; }

  /* ── SPECTRUM ── */
  .spectrum-bar {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--danger) 0%, var(--warn) 50%, var(--success) 100%);
    margin: 16px 0 8px;
    position: relative;
  }

  .spectrum-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

  /* ── INTEGRATION CARDS ── */
  .integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }

  .int-card {
    background:#23133a;
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s;
    cursor: default;
  }

  .int-card:hover { border-color: var(--cyan); transform: translateY(-2px); }

  .int-logo {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .int-card h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
  .int-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

  /* ── TRUST LEVELS ── */
  .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }

  .trust-level {
    background: #23133a;
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    padding: 16px;
  }

  .trust-level h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .trust-level p { font-size: 12.5px; color: var(--muted); }
  .trust-high h4 { color: var(--success); }
  .trust-low h4 { color: var(--warn); }
  .trust-exempt h4 { color: var(--cyan); }
  .trust-unknown h4 { color: var(--muted); }

  code {
    
    font-size: 12px;
    background: #17011c;
    color: var(--cyan);
    padding: 1px 6px;
    border-radius: 4px;
  }

  .code-block {
    
    font-size: 12.5px;
    background: #01041c;
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
    color: #c7dfeb;
    overflow-x: auto;
    line-height: 1.8;
  }

  .code-block .kw { color: #f59e0b; }
  .code-block .str { color: #86efac; }
  .code-block .cm { color: var(--muted); font-style: italic; }

  /* ── SCORE DISPLAY ── */
  #score-display {
    background: #23133a;
    border: 1px solid var(--navy-border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .score-ring {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan) 0%, var(--navy-border) 0%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
  }

  .score-ring::before {
    content: '';
    width: 54px; height: 54px;
    background: #23133a;
    border-radius: 50%;
    position: absolute;
  }

  .score-num {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
  }

  .score-info h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
  .score-info p { font-size: 13px; color: var(--muted); }

  /* ── REF LINKS ── */
  .ref-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
  .ref-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    transition: all 0.2s;
  }

  .ref-link:hover { border-color: var(--cyan); color: var(--cyan); }
  .ref-link .ref-icon { font-size: 14px; }
  .ref-label { flex: 1; }
  .ref-url { font-size: 11px; color: var(--navy-border);  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

  /* scrollbar main */
  .strongdm-access-training #main::-webkit-scrollbar { width: 6px; }
  .strongdm-access-training #main::-webkit-scrollbar-thumb { background: #221538; border-radius: 3px; }

  h3.sub-head {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  h3.sub-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--navy-border);
  }

  /* responsive */
  @media (max-width: 768px) {
    .strongdm-access-training #sidebar { transform: translateX(-100%); position: absolute; }
    .strongdm-access-training #main { margin-left: 0; }
    .strongdm-access-training .grid-2, .integration-grid, .trust-grid { grid-template-columns: 1fr; }
    .strongdm-access-training .section { padding: 32px 20px 48px; }
    .strongdm-access-training .topbar { padding: 12px 16px; flex-direction: row; align-items: center; gap: 10px; }
    .strongdm-access-training .menu-btn { display: inline-flex; }
    .topbar-title {
      order: 2;
      flex: 1;
      min-width: 0;
      font-size: 12.5px;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .topbar-actions { order: 3; width: auto; display: flex; flex-direction: row; gap: 8px; }
    .topbar-actions .btn { width: auto; display: inline-flex; justify-content: center; padding: 6px 12px; font-size: 12px; }
    .kp-list li { display: block; position: relative; padding-left: 18px; }
    .kp-list li::before { position: absolute; left: 0; top: 0.15em; }
    .perm-table-wrap { -webkit-overflow-scrolling: touch; }
    .perm-table-wrap table { min-width: 600px; width: max-content; }
  }

  .sidebar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  @media (max-width: 768px) {
    .strongdm-access-training #sidebar { transition: transform 0.22s ease; }
    body.sidebar-open #sidebar { transform: translateX(0); }
    body.sidebar-open { overflow: hidden; }
  }

  /* responsive helpers */
  img, video, canvas, svg { max-width: 100%; height: auto; }
  table { max-width: 100%; }
  @media (max-width: 720px) {
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .perm-table-wrap table { display: table; }
  }
  pre { max-width: 100%; overflow-x: auto; }

.perm-table-wrap,
.perm-table-wrap table,
.perm-table-wrap th,
.perm-table-wrap td {
  box-shadow: none !important;
  filter: none !important;
}