  :root {
    --ink: #ffffffdd;
    --ink-80: #23133a;
    --ink-60: #23133ae5;
    --surface: #f7f6f2;
    --surface-2: #eeecea;
    --surface-3: #e4e2de;
    --amber: #883CF0;
    --amber-light: #fef3c7;
    --amber-pale: #fffbeb;
    --teal: #0d7377;
    --teal-light: #ccfbf1;
    --green: #15803d;
    --green-light: #dcfce7;
    --red: #b91c1c;
    --red-light: #fee2e2;
    --border: #3a1c63;
    --border-strong: #5e309d;
    --radius: 4px;
    --radius-lg: 8px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .delinea-soc-compliance-guide {
    background: #191127;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    height: 100vh;
    overflow-y: auto;
  }

  /* ── HEADER ── */
  .site-header {
    background: #180f26;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid var(--amber);
  }
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem 1rem 0;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .brand-badge {
    background: var(--amber);
    color: var(--ink);
    
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    
    text-transform: uppercase;
  }
  .brand-title {
    font-size: 13px;
    font-weight: 500;
    
    color: rgba(255,255,255,0.9);
  }
  .brand-sub {
    
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
  }

  /* ── NAV TABS ── */
  .nav-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-left: 1.5rem;
  }
  .nav-tab {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    user-select: none;
    
    gap: 6px;
    white-space: nowrap;
  }
  .nav-tab:hover { color: rgba(255,255,255,0.8); }
  .nav-tab.active { color: var(--amber); border-bottom-color: var(--amber); }

  /* ── PROGRESS BAR ── */
  .progress-bar {
    background: rgba(255,255,255,0.08);
    height: 3px;
    position: relative;
  }
  .progress-fill {
    height: 100%;
    background: var(--amber);
    transition: width 0.4s ease;
    width: 0%;
  }

  /* ── LAYOUT ── */
  .page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
  }

  /* SECTIONS */
  .section { display: none; }
  .section.active { display: block; }

  /* ── HERO ── */
  .hero {
    background: var(--ink-80);
    color: #fff;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 100%;
    background: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      #331e4f5a 10px,
      #3c226104 20px
    );
    pointer-events: none;
  }
  .hero-eyebrow {
    
    font-size: 11px;
    
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.75rem;
  }
  .hero h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 600px;
  }
  .hero p {
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    font-size: 14px;
    line-height: 1.7;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
  }
  .hero-tag {
    
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #684895;
    color: var(--amber);
    border-radius: 2px;
  }

  /* ── OVERVIEW GRID ── */
  .criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .criteria-card {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-top: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .criteria-card:hover { box-shadow: 0 4px 16px #23133a9f; }
  .criteria-card.cc6 { border-top-color: #7c3aed; }
  .criteria-card.cc7 { border-top-color: var(--teal); }
  .criteria-card.cc9 { border-top-color: var(--amber); }
  .cc-label {
    
    font-size: 11px;
    font-weight: 600;
    
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .criteria-card.cc6 .cc-label { color: #7c3aed; }
  .criteria-card.cc7 .cc-label { color: var(--teal); }
  .criteria-card.cc9 .cc-label { color: var(--amber); }
  .cc-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .cc-desc {
    font-size: 12px;
    color: #c9d2de;
    line-height: 1.55;
  }
  .cc-count {
    margin-top: 10px;
    
    font-size: 11px;
    color: #e2e5eb;
  }

  /* ── INFO PANEL ── */
  .info-panel {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  .info-panel h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .info-panel p {
    font-size: 13px;
    color: #c9d2de;
    margin-bottom: 1rem;
  }

  /* ── CHECKLIST ── */
  .checklist-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    background: var(--ink-80);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 1.5rem;
  }
  .checklist-section-header:not(:first-of-type) { margin-top: 2.5rem; }
  .section-cc-badge {
    
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 2px;
    
  }
  .badge-cc6 { background: #7c3aed; color: #fff; }
  .badge-cc7 { background: var(--teal); color: #fff; }
  .badge-cc9 { background: var(--amber); color: var(--ink); }
  .section-header-title { font-size: 14px; font-weight: 500; }
  .section-header-count {
    margin-left: auto;
    
    font-size: 12px;
    color: rgba(255,255,255,0.4);
  }

  .checklist-body {
    background: #1f1232;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .checklist-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: start;
    transition: background 0.1s;
  }
  .checklist-item:last-child { border-bottom: none; }
  .checklist-item:hover { background:#23133a; }
  .checklist-item.completed { background: #23133a; }
  .checklist-item.completed:hover { background: #1f1232; }

  .check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.15s;
    background: #fff;
  }
  .check-box:hover { border-color: var(--green); }
  .checklist-item.completed .check-box {
    background: var(--green);
    border-color: var(--green);
  }
  .check-mark {
    display: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }
  .checklist-item.completed .check-mark { display: block; }

  .item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
  }
  .checklist-item.completed .item-title { color: var(--green); }
  .item-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .item-path {
    
    font-size: 11px;
    background: #0f0818;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--border);
    display: inline-block;
    margin-top: 4px;
    word-break: break-all;
  }
  .item-expand-btn {
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
    padding: 3px 8px;
    white-space: nowrap;
    transition: all 0.15s;
    margin-top: 2px;
  }
  .item-expand-btn:hover { background: #23133a; color: var(--ink); }

  .item-detail {
    display: none;
    margin-top: 10px;
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 12px;
    color: #fff;
    line-height: 1.6;
  }
  .item-detail.open { display: block; }
  .item-detail strong { font-weight: 600; color: var(--ink); }
  .item-detail code {
    
    font-size: 11px;
    background: #0f0818;
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 2px;
  }
  .detail-steps {
    list-style: none;
    margin-top: 8px;
  }
  .detail-steps li {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
  }
  .detail-steps li::before {
    content: attr(data-n);
    
    font-size: 10px;
    font-weight: 600;
    background:#23133a;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── PROGRESS SUMMARY ── */
  .progress-summary {
    background:#23133a;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  .prog-stat { text-align: center; }
  .prog-num {
    
    font-size: 28px;
    font-weight: 600;
    color: var(--amber);
    line-height: 1;
    display: block;
  }
  .prog-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    
    
  }
  .prog-bar-wrap { flex: 1; min-width: 200px; }
  .prog-bar-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
  }
  .prog-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
  }
  .prog-bar-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
  }
  .prog-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }

  /* ── AUDIT REPORTS ── */
  .report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .report-card {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: box-shadow 0.15s;
  }
  .report-card:hover { box-shadow: 0 4px 16px rgba(13,17,23,0.08); }
  .report-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  .report-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    
    font-weight: 600;
  }
  .icon-amber { background: var(--amber-light); color: var(--amber); }
  .icon-teal { background: var(--teal-light); color: var(--teal); }
  .icon-purple { background: #ede9fe; color: #7c3aed; }
  .icon-green { background: var(--green-light); color: var(--green); }
  .report-title { font-size: 13px; font-weight: 600; }
  .report-criteria {  font-size: 11px; color: #9ca3af; margin-top: 2px; }
  .report-desc { font-size: 12px; color: #6b7280; line-height: 1.55; margin-bottom: 12px; }

  .report-steps-header {
    
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    
    color: #9ca3af;
    margin-bottom: 6px;
  }
  .report-steps {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .report-step {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .report-step:last-child { border-bottom: none; }
  .step-num {
    
    font-size: 10px;
    font-weight: 600;
    background: #d6d1de;
    color: #883CF0;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .step-text { color: #fff; line-height: 1.5; }
  .step-text code {
    font-size: 10px;
    background: #0f0818;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid var(--border);
    color: var(--ink);
  }
  .export-badge {
    display: inline-block;
    
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
  }
  .badge-csv { background: #d1fae5; color: #065f46; }
  .badge-pdf { background: #fee2e2; color: #991b1b; }
  .badge-json { background: #dbeafe; color: #1e40af; }
  .badge-xml { background: #ede9fe; color: #5b21b6; }

  /* ── MAPPING TABLE ── */
  .mapping-table-wrap {
    background: #23133a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
  }
  .mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .mapping-table thead {
    background: #883cf050;
    color: #fff;
  }
  .mapping-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(223, 208, 208, 0.7);
  }
  .mapping-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: #d4d8df;
  }
  .mapping-table tr:last-child td { border-bottom: none; }
  .mapping-table tr:hover td { background: #1f1232; }
  .criteria-pill {
    
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 2px;
    display: inline-block;
    white-space: nowrap;
  }
  .pill-cc6 { background: #ede9fe; color: #5b21b6; }
  .pill-cc7 { background: #ccfbf1; color: #0f766e; }
  .pill-cc9 { background: #fef3c7; color: #92400e; }
  .setting-mono {
    
    font-size: 11px;
    color: var(--ink);
    word-break: break-all;
  }
  .status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
  }
  .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
  }
  .dot-required { background: var(--red); }
  .dot-recommended { background: var(--amber); }
  .dot-optional { background: #9ca3af; }

  /* ── CALLOUT BOXES ── */
  .callout {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: 1px solid;
    margin: 1.25rem 0;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .callout.warning { border-color: #fbbf24; background: var(--amber-pale); color: #78350f; }
  .callout.info { border-color: #7c3aed40; background: #23133a; color: #fff; }
  .callout.tip { border-color: #6ee7b7; background: #23133a; color: #064e3b; }
  .callout strong { font-weight: 600; }

  /* ── SECTION TITLE ── */
  .section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ink);
  }
  .section-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 1.75rem;
  }

  /* ── FOOTER ── */
  .guide-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    
  }
  .reset-btn {
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
    padding: 5px 12px;
    transition: all 0.15s;
  }
  .reset-btn:hover { background: #2a1647; color: var(--ink); }

  /* responsive */
  @media (max-width: 720px) {
    .header-inner{
          flex-direction: column;
    gap: 10px;
    padding: 10px;
    height: auto;
    }
    .criteria-grid { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; }
    .nav-tabs { gap: 0; }
    .nav-tab { padding: 0 0.75rem; font-size: 11px; }
    .header-brand { padding-right: 1rem; }
  }


  ::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }