  :root {
    --navy: #071828;
    --navy-mid: #0d2233;
    --navy-light: #142d42;
    --teal: #883CF0;
    --teal-dim: #883CF0;
    --cyan: #883CF0;
    --accent: #883CF0;
    --text: #e2eaf4;
    --text-dim: #b5cbda;
    --white: #f0f8ff;
    --border: #3a1c63;
    --card-bg: #23133a;
    --danger: #ff6b6b;
    --gold: #f4c542;
  }

  * { margin:0; padding:0; box-sizing:border-box; }

  html { scroll-behavior: smooth; }

  .strongdm-training-guide {
    background: var(--navy);
    color: var(--text);
    
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  /* ===== LAYOUT ===== */
  .shell { display:flex; min-height:100vh; position:relative; }

  /* ===== SIDEBAR ===== */
  .sidebar {
    width: 280px;
    background: #180f26;
    border-right: 1px solid var(--border);
    position: sticky;
    top:0; left:0; bottom:0;
    display:flex; flex-direction:column;
    overflow-y:auto;
    z-index:1;
    backdrop-filter: blur(12px);
    height: 100vh;
  }

  .sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-logo .brand {
    
    font-size:22px;
    font-weight:800;
    color: var(--white);
  }
  .sidebar-logo .brand span { color: var(--teal); }
  .sidebar-logo .sub {
    font-size:11px;
    color: var(--text-dim);
    text-transform:uppercase;
    margin-top:4px;
  }

  .progress-bar-wrap {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .progress-label {
    font-size:11px;
    color:var(--text-dim);
    text-transform:uppercase;
    margin-bottom:8px;
    display:flex; justify-content:space-between;
  }
  .progress-track {
    background: #282035;
    height:4px; border-radius:2px; overflow:hidden;
  }
  .progress-fill {
    height:100%;
    background: linear-gradient(90deg, var(--teal), #873cf060);
    border-radius:2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .nav-section { padding: 16px 0; }
  .nav-section-label {
    padding: 8px 24px 4px;
    font-size:10px;
    color:var(--text-dim);
    text-transform:uppercase;
    
  }

  .nav-item {
    display:flex; align-items:center; gap:12px;
    padding: 10px 24px;
    cursor:pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size:14px;
    color: var(--text-dim);
    position:relative;
  }
  .nav-item:hover { background: #23133a; color: var(--text); }
  .nav-item.active {
    border-left-color: var(--teal);
    background: #23133a;
    color: var(--white);
  }
  .nav-item .nav-num {
    
    font-size:10px;
    color: var(--text-dim);
    min-width:20px;
  }
  .nav-item.active .nav-num { color: var(--teal); }
  .nav-item .nav-check {
    margin-left:auto;
    width:16px; height:16px;
    border-radius:50%;
    border:1.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:9px;
    transition: all 0.3s;
  }
  .nav-item.completed .nav-check {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--navy);
  }

  /* ===== MAIN CONTENT ===== */
  .main {
    /* margin-left:280px; */
    flex:1;
    padding: 48px 60px 80px;
    max-width: calc(100% - 280px);
    position: relative;
    overflow-y:auto;
    height: 100vh;
    background-color: #191127;
  }

  /* ===== TOP BAR ===== */
  .topbar {
    position: sticky;
    top: -50px;
    background: #191127;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    margin: -48px -60px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1;
  }
  .menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
  }
  .menu-btn:hover { border-color: var(--teal); background: rgba(0,194,176,0.08); }
  .menu-btn:active { transform: translateY(1px); }
  .menu-btn svg { width: 18px; height: 18px; }
  .topbar-title { font-size: 14px; color: var(--text-dim); font-weight: 400; }
  .topbar-title strong { color: var(--white); font-weight: 600; }
  .topbar-actions { display: flex; gap: 10px; }


  /* ===== HERO ===== */
  .hero {
    padding: 60px 0 48px;
    position:relative;
  }
  .hero-tag {
    display:inline-flex; align-items:center; gap:8px;
    background: #23133a;
    border: 1px solid var(--border);
    border-radius:100px;
    padding:6px 16px;
    font-size:12px;
    color: var(--teal);
    margin-bottom:24px;
  }
  .hero-tag::before {
    content:'';
    width:6px; height:6px;
    background: var(--teal);
    border-radius:50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:0.5; transform:scale(0.8); }
  }

  .hero h1 {
    font-size:clamp(36px,5vw,58px);
    font-weight:800;
    color: var(--white);
    line-height:1.05;
    margin-bottom:16px;
  }
  .hero h1 em {
    font-style:normal;
    color: var(--teal);
  }
  .hero p {
    font-size:17px;
    color: var(--text-dim);
    max-width:600px;
    line-height:1.7;
    font-weight:300;
  }

  .hero-stats {
    display:flex; gap:32px; margin-top:36px;
    flex-wrap:wrap;
  }
  .stat {
    display:flex; flex-direction:column;
  }
  .stat-num {
    
    font-size:28px;
    font-weight:800;
    color: var(--white);
  }
  .stat-label {
    font-size:12px;
    color: var(--text-dim);
    text-transform:uppercase;
    
  }

  /* ===== SECTION CONTAINER ===== */
  .section {
    display:none;
    animation: fadeSlide 0.4s ease forwards;
  }
  .section.active { display:block; }
  @keyframes fadeSlide {
    from { opacity:0; transform:translateY(16px); }
    to { opacity:1; transform:translateY(0); }
  }

  .section-header {
    margin-bottom:40px;
    padding-bottom:24px;
    border-bottom:1px solid var(--border);
  }
  .section-tag {
    
    font-size:11px;
    color: var(--teal);
    text-transform:uppercase;
    margin-bottom:12px;
  }
  .section-header h2 {
    
    font-size:clamp(26px,4vw,40px);
    font-weight:800;
    color:var(--white);
    line-height:1.1;
    margin-bottom:12px;
  }
  .section-header p {
    color:var(--text-dim);
    font-size:16px;
    line-height:1.7;
    max-width:680px;
    font-weight:300;
  }

  /* ===== CARDS ===== */
  .card-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap:20px;
    margin-bottom:32px;
  }

  .card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius:16px;
    padding:28px;
    position:relative;
    overflow:hidden;
    transition: all 0.25s;
  }
  .card::before {
    content:'';
    position:absolute;
    top:0; left:0; right:0;
    height:2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity:0;
    transition:opacity 0.25s;
  }
  .card:hover { border-color: #5e309d; transform:translateY(-2px); }
  .card:hover::before { opacity:1; }

  .card-icon {
    width:44px; height:44px;
    background: #23133a;
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:20px;
    margin-bottom:16px;
    border:1px solid #5e309d;
  }
  .card h3 {
    
    font-size:17px;
    font-weight:700;
    color:var(--white);
    margin-bottom:8px;
  }
  .card p {
    font-size:14px;
    color:var(--text-dim);
    line-height:1.6;
    font-weight:300;
  }

  /* ===== DIAGRAM ===== */
  .diagram-wrap {
    background: var(--card-bg);
    border:1px solid var(--border);
    border-radius:16px;
    padding:36px;
    margin-bottom:32px;
    overflow:hidden;
    position:relative;
  }
  .diagram-label {
    
    font-size:11px;
    color:var(--text-dim);
    text-transform:uppercase;
    margin-bottom:24px;
  }

  /* Proxy flow diagram */
  .flow {
    display:flex;
    align-items:center;
    gap:0;
    flex-wrap:wrap;
    justify-content:center;
    row-gap:20px;
  }
  .flow-node {
    background: #883cf050;
    border: 1.5px solid var(--border);
    border-radius:12px;
    padding:16px 22px;
    text-align:center;
    min-width:120px;
    position:relative;
    transition: all 0.3s;
    cursor:default;
  }
  .flow-node:hover {
    border-color: var(--teal);
    background: #3a1c6350;
    transform: scale(1.04);
  }
  .flow-node .node-label {
    
    font-size:10px;
    color:var(--text-dim);
    text-transform:uppercase;
    margin-bottom:4px;
  }
  .flow-node .node-name {
    font-weight:600;
    color:var(--white);
    font-size:14px;
  }
  .flow-node.highlight {
    border-color: var(--teal);
    background: #3a1c6350;
  }
  .flow-node.highlight .node-name { color:var(--teal); }

  .flow-arrow {
    display:flex; flex-direction:column; align-items:center;
    min-width:70px;
    position:relative;
  }
  .arrow-line {
    width:60px;
    height:2px;
    background: linear-gradient(90deg, var(--border), var(--teal));
    position:relative;
  }
  .arrow-line::after {
    content:'';
    position:absolute;
    right:-1px; top:-4px;
    width:0; height:0;
    border-left: 8px solid var(--teal);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }
  .arrow-label {
    
    font-size:9px;
    color:var(--teal);
    text-transform:uppercase;
    margin-top:6px;
    text-align:center;
  }
  .dashed-box {
    border: 2px dashed rgba(0,194,176,0.3);
    border-radius:16px;
    padding:20px 24px;
    display:flex;
    align-items:center;
    gap:0;
    position:relative;
  }
  .dashed-box-label {
    position:absolute;
    bottom:-12px; left:50%; transform:translateX(-50%);
    background: var(--navy-mid);
    border:1px solid var(--border);
    border-radius:100px;
    padding:3px 12px;
    
    font-size:9px;
    color:var(--text-dim);
    text-transform:uppercase;
    white-space:nowrap;
  }

  /* ===== CALLOUT BLOCKS ===== */
  .callout {
    border-radius:12px;
    padding:20px 24px;
    margin-bottom:24px;
    display:flex;
    gap:16px;
    border: 1px solid;
  }
  .callout-info {
    background: #23133a;
    border-color: #3a1c63;
  }
  .callout-warn {
    background: rgba(244,197,66,0.07);
    border-color: rgba(244,197,66,0.25);
  }
  .callout-danger {
    background: rgba(255,107,107,0.07);
    border-color: rgba(255,107,107,0.25);
  }
  .callout-icon { font-size:20px; flex-shrink:0; margin-top:1px; }
  .callout-body h4 {
    font-weight:600;
    color:var(--white);
    font-size:14px;
    margin-bottom:6px;
  }
  .callout-body p {
    font-size:14px;
    color:var(--text-dim);
    line-height:1.6;
    font-weight:300;
  }

  /* ===== KEY CONCEPTS TABLE ===== */
  .concept-table {
    width:100%;
    border-collapse:collapse;
    margin-bottom:32px;
    font-size:14px;
  }
  .concept-table th {
    
    font-size:10px;
    text-transform:uppercase;
    color:var(--text-dim);
    padding:12px 16px;
    border-bottom:1px solid var(--border);
    text-align:left;
  }
  .concept-table td {
    padding:14px 16px;
    border-bottom:1px solid #3a1c63;
    color:var(--text);
    vertical-align:top;
    line-height:1.6;
  }
  .concept-table tr:hover td { background: #1f1232; }
  .concept-table td:first-child {
    font-weight:600;
    color:var(--white);
    width:180px;
    
    font-size:12px;
  }
  .badge {
    display:inline-block;
    background: #291a3e;
    border:1px solid #5e309d;
    color:var(--teal);
    border-radius:6px;
    padding:2px 10px;
    
    font-size:10px;
  }
  .badge-gold {
    background: rgba(244,197,66,0.15);
    border-color: rgba(244,197,66,0.3);
    color:var(--gold);
  }
  .badge-red {
    background: rgba(255,107,107,0.15);
    border-color: rgba(255,107,107,0.3);
    color: var(--danger);
  }

  /* ===== QUIZ ===== */
  .quiz-wrap { margin-bottom:32px; }
  .quiz-q {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius:16px;
    padding:28px;
    margin-bottom:20px;
  }
  .quiz-q h4 {
    font-size:16px;
    color:var(--white);
    font-weight:600;
    margin-bottom:20px;
    line-height:1.5;
  }
  .quiz-q h4 span {
    
    font-size:10px;
    color:var(--teal);
    display:block;
    margin-bottom:8px;
  }
  .quiz-options { display:flex; flex-direction:column; gap:10px; }
  .quiz-opt {
    display:flex; align-items:flex-start; gap:14px;
    background: #883cf050;
    border:1.5px solid var(--border);
    border-radius:10px;
    padding:14px 18px;
    cursor:pointer;
    transition:all 0.2s;
    font-size:14px;
    color:var(--text);
    line-height:1.5;
    user-select:none;
  }
  .quiz-opt:hover { border-color:var(--teal); background:#3a1c6350; }
  .quiz-opt.correct { border-color: #77b255;
    background: #77b25520;
    color: #60c090; }
  .quiz-opt.wrong { border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90; }
  .quiz-opt.disabled { cursor:default; pointer-events:none; }
  .opt-bullet {
    width:24px; height:24px; flex-shrink:0;
    border-radius:50%;
    border:1.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    
    font-size:10px;
    color:var(--text-dim);
    transition:all 0.2s;
  }
  .quiz-opt.correct .opt-bullet { border-color: #77b255;
    background: #77b25520;
    color: #60c090; }
  .quiz-opt.wrong .opt-bullet { border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90; }
  .quiz-feedback {
    margin-top:14px;
    padding:12px 16px;
    border-radius:8px;
    font-size:13px;
    line-height:1.5;
    display:none;
    font-weight:300;
  }
  .quiz-feedback.show { display:block; }
  .quiz-feedback.correct-fb { background: #77b25520;
    border: 1px solid #77b255;
    color: #60c090; }
  .quiz-feedback.wrong-fb {background: #dc143c2b;
    border: 1px solid #dc143c;
    color: #ff7a90; }

  /* ===== ROUTING SECTION ===== */
  .routing-cases {
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:32px;
  }
  .routing-case {
    background:var(--card-bg);
    border:1px solid var(--border);
    border-radius:12px;
    padding:0;
    overflow:hidden;
  }
  .case-header {
    padding:16px 20px;
    display:flex; align-items:center; gap:14px;
    cursor:pointer;
    transition:background 0.2s;
  }
  .case-header:hover { background:#2a1647; }
  .case-num {
    width:32px; height:32px;
    background:#1f1232;
    border:1px solid var(--border);
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    
    font-size:12px;
    color:var(--teal);
    flex-shrink:0;
  }
  .case-title {
    font-weight:600;
    color:var(--white);
    font-size:14px;
  }
  .case-toggle {
    margin-left:auto;
    color:var(--text-dim);
    transition:transform 0.25s;
    font-size:12px;
  }
  .routing-case.open .case-toggle { transform:rotate(180deg); }
  .case-body {
    padding:0 20px;
    max-height:0;
    overflow:hidden;
    transition:all 0.3s ease;
  }
  .routing-case.open .case-body {
    max-height:200px;
    padding:0 20px 20px;
  }
  .case-body p {
    font-size:14px;
    color:var(--text-dim);
    line-height:1.65;
    font-weight:300;
    border-top:1px solid var(--border);
    padding-top:16px;
  }

  /* ===== NAVIGATION BUTTONS ===== */
  .nav-buttons {
    display:flex; justify-content:space-between; align-items:center;
    margin-top:48px;
    padding-top:32px;
    border-top:1px solid var(--border);
  }
  .btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 24px;
    border-radius:10px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:all 0.2s;
    border:none;
  }
  .btn-ghost {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
  }
  .btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: #3a1c63; }
  .btn-outline {
    background:transparent;
    border:1.5px solid var(--border);
    color:var(--text);
  }
  .btn-outline:hover {
    border-color:var(--teal);
    color:var(--white);
    background:#3a1c63;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dim));
    color: var(--navy);
    font-weight:600;
  }
  .btn-primary:hover { transform:translateY(-1px); box-shadow:0 8px 24px #be52e50f; }
  .btn:disabled { opacity:0.3; cursor:not-allowed; }
  .btn:disabled:hover { transform:none; box-shadow:none; }

  /* ===== COMPLETION CARD ===== */
  .completion {
    text-align:center;
    padding:60px 0;
  }
  .completion-icon {
    font-size:64px;
    margin-bottom:24px;
    animation:bounce 1s ease;
  }
  @keyframes bounce {
    0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)}
  }
  .completion h2 {
    
    font-size:36px;
    font-weight:800;
    color:var(--white);
    margin-bottom:12px;
  }
  .completion p {
    color:var(--text-dim);
    font-size:16px;
    max-width:480px;
    margin:0 auto 32px;
    line-height:1.7;
    font-weight:300;
  }
  .cert-card {
    display:inline-block;
    background: linear-gradient(135deg, #1f1232,#be52e50f);
    border:1px solid #3a1c63;
    border-radius:16px;
    padding:32px 48px;
    margin-bottom:32px;
  }
  .cert-title {
    
    font-size:11px;
    color:var(--teal);
    text-transform:uppercase;
    margin-bottom:8px;
  }
  .cert-name {
    
    font-size:24px;
    font-weight:800;
    color:var(--white);
  }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar { width:6px; }
  ::-webkit-scrollbar-track { background:#873cf015; }
  ::-webkit-scrollbar-thumb { background:#873cf015; border-radius:3px; }

  /* ===== MOBILE ===== */
  @media(max-width:768px){
    .sidebar{width:280px; height:100vh; position:absolute; top:0; bottom:0; left:0; transform: translateX(-100%); transition: transform 0.22s ease;}
    .main{margin-left:0; max-width:100%; padding: 48px 20px 60px;}
    .shell{flex-direction:row;}
    .hero h1{font-size:28px;}
    .flow{gap:4px;}
    .topbar { padding: 12px 16px; margin: -48px -20px 24px; flex-direction: row; align-items: center; }
    .menu-btn { display: inline-flex; }
    .topbar-title {
      flex: 1;
      min-width: 0;
      font-size: 12.5px;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .topbar-actions { width: auto; display: flex; flex-direction: row; gap: 8px; }
    .topbar-actions .btn { width: auto; padding: 6px 12px; font-size: 12px; }
    .flow { flex-direction: column; row-gap: 12px; }
    .flow-arrow { min-width: 0; }
    .flow-node { width: 100%; max-width: 260px; }
    .arrow-line {
      width: 2px;
      height: 40px;
      background: linear-gradient(180deg, var(--border), var(--teal));
    }
    .arrow-line::after {
      right: auto;
      left: -4px;
      top: auto;
      bottom: -1px;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 8px solid var(--teal);
      border-bottom: 0;
    }
    .arrow-label { margin-top: 8px; }
    .dashed-box {
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: 320px;
      padding: 16px;
    }
    .dashed-box-label {
      position: static;
      transform: none;
      margin-top: 8px;
    }
    .flat-arch-control { text-align: center; padding: 10px 16px; }
    .flat-arch-row { flex-direction: column; gap: 12px; }
    .flat-arch-resources { align-items: center; width: 100%; }
    .ccs-grid {
      display: flex !important;
      flex-direction: column;
      gap: 16px;
      align-items: center;
    }
    .ccs-col { padding: 0 !important; width: 100%; max-width: 320px; }
    .ccs-node { width: 100%; }
    .ccs-line { width: 100% !important; height: auto !important; background: none !important; }
    .ccs-step {
      position: static !important;
      left: auto !important;
      right: auto !important;
      top: auto !important;
      bottom: auto !important;
      margin: 8px auto 0 !important;
      max-width: 100%;
      white-space: normal !important;
    }
    .ccs-item { max-width: 100%; margin: 0 auto 8px; }
    .gr-arch { flex-direction: column; gap: 12px; }
    .gr-box { width: 100%; max-width: 320px; }
    .gr-link { width: 100%; max-width: 200px; }
    .gr-link .gr-line { width: 2px !important; height: 32px !important; }
    .gr-link .gr-line-init { background: var(--danger) !important; opacity: 0.5; }
    .gr-link .gr-line-est { background: linear-gradient(180deg, var(--border), var(--teal)) !important; }
    .gr-link .gr-arrow-head {
      right: auto !important;
      left: -4px !important;
      top: auto !important;
      bottom: -1px !important;
      border-left: 5px solid transparent !important;
      border-right: 5px solid transparent !important;
      border-top: 8px solid var(--teal) !important;
      border-bottom: 0 !important;
    }
    .gr-box-resources { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
    .nav-buttons {
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
    }
    .nav-buttons .btn {
      width: 100%;
      justify-content: center;
    }
  }

  .sidebar-backdrop {
    position: fixed;
    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) {
    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; }
	  }
	  pre { max-width: 100%; overflow-x: auto; }