  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg-primary: #191127;
    --bg-secondary: #2a1647;
    --bg-tertiary: #180f26;
    --bg-danger: #2a1647;
    --bg-success: #eaf5ee;
    --bg-warning: #fef7e6;
    --bg-info: #e8f2fb;
    --text-primary: #883CF0;
    --text-secondary: #fffdf3;
    --text-tertiary: #eae9e2;
    --text-danger: #eae9eb;
    --text-success: #1e7e44;
    --text-warning: #b35c00;
    --text-info: #f6faff;
    --border-tertiary: #3a1c63;
    --border-secondary: #5e309d;
    --border-primary: #3a1c63;
    --border-danger: #5e309d;
    --border-success: rgba(30,126,68,0.30);
    --border-warning: rgba(179,92,0,0.30);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
  }

  .delinea-breach-timeline-training {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    line-height: 1.6;
  }

  .delinea-breach-timeline-training .page {
    /* max-width: 800px; */
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 0.5px solid var(--border-secondary);
    padding: 2rem 2rem 2.5rem;
  }

  /* ── Header ── */
  .hdr { margin-bottom: 2rem; }
  .hdr-eyebrow {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hdr-eyebrow::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--text-danger);
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

  .hdr-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: .6rem;
  }
  .hdr-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 640px;
  }

  /* ── Stats ── */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.75rem;
  }
  @media (max-width: 520px) { .stats-row { grid-template-columns: 1fr; } }
  .stat {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: .875rem 1rem;
  }
  .stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    line-height: 1.4;
  }
  .stat-val { font-size: 22px; font-weight: 600; }
  .val-red { color: var(--text-danger); }
  .val-amber { color: var(--text-warning); }

  /* ── Controls ── */
  .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
  }
  .mode-seg {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 3px;
    flex: 1;
    min-width: 220px;
  }
  .mode-btn {
    flex: 1;
    padding: .45rem .75rem;
    font-size: 13px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .2s;
    
    font-weight: 400;
  }
  .mode-btn.active-attack {
    background: var(--bg-danger);
    color: var(--text-danger);
    font-weight: 500;
  }
  .mode-btn.active-pam {
    background: var(--bg-success);
    color: var(--text-success);
    font-weight: 500;
  }
  .sim-btn {
    padding: .45rem 1.1rem;
    font-size: 13px;
    border: 0.5px solid #5e309d;
    border-radius: var(--radius-md);
    background: #23133a;
    cursor: pointer;
    color: var(--text-primary);
    transition: all .2s;
    white-space: nowrap;
  }
  .sim-btn:hover { background: var(--bg-secondary); }

  /* ── Clock ── */
  .clock-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
  }
  .clock-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    width: 90px;
    flex-shrink: 0;
  }
  .clock-track {
    flex: 1;
    height: 6px;
    background: var(--border-tertiary);
    border-radius: 3px;
    overflow: hidden;
  }
  .clock-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s ease, background .3s;
    width: 0%;
    background: var(--text-danger);
  }
  .clock-time {
    font-size: 19px;
    font-weight: 600;
    min-width: 56px;
    text-align: right;
  }
  .clock-time.red { color: var(--text-danger); }
  .clock-time.grn { color: var(--text-success); }

  /* ── Timeline ── */
  .tl { position: relative; }

  .stage { display: flex; gap: 0; margin-bottom: 8px; }
  .stage-gutter {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 19px;
  }
  .stage-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    background: var(--bg-primary);
    z-index: 1;
    transition: all .3s;
    flex-shrink: 0;
  }
  .stage-line {
    width: 2px;
    flex: 1;
    background: var(--border-tertiary);
    margin-top: 3px;
    min-height: 16px;
    transition: background .3s;
  }
  .stage:last-child .stage-line { display: none; }

  .dot-active { border-color: var(--text-danger) !important; background: var(--bg-danger) !important; }
  .dot-passed-attack { background: var(--text-danger) !important; border-color: var(--text-danger) !important; }
  .dot-passed-pam { background: var(--text-success) !important; border-color: var(--text-success) !important; }
  .dot-blocked { background: var(--text-success) !important; border-color: var(--text-success) !important; }
  .line-passed-attack { background: var(--text-danger) !important; opacity: .4; }
  .line-passed-pam { background: var(--text-success) !important; opacity: .4; }

  .stage-card {
    flex: 1;
    background: var(--bg-primary);
    border: 0.5px solid var(--border-tertiary);
    border-radius: var(--radius-lg);
    padding: .9rem 1rem;
    cursor: pointer;
    transition: border-color .25s;
  }
  .stage-card:hover { border-color: var(--border-secondary); }
  .card-active { border-color: var(--border-danger) !important; }
  .card-blocked { border-color: var(--border-success) !important; background: var(--bg-success) !important; }
  .card-passed-attack { border-color: var(--border-danger) !important; opacity: .85; }

  .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .card-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .card-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
  .card-tagline { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
  .expand-icon {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform .25s;
    user-select: none;
  }
  .expand-icon.open { transform: rotate(180deg); }

  /* ── Detail panel ── */
  .detail-panel { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
  .detail-panel.open { max-height: 600px; }
  .detail-inner {
    padding-top: .9rem;
    border-top: 0.5px solid var(--border-tertiary);
    margin-top: .9rem;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: .8rem;
  }
  @media (max-width: 480px) { .detail-grid { grid-template-columns: 1fr; } }

  .detail-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: .75rem;
  }
  .detail-box-title {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: .5rem;
    font-weight: 600;
  }
  .detail-box-title.atk { color: var(--text-danger); }
  .detail-box-title.tool { color: var(--text-warning); }
  .detail-items { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

  .pam-block {
    background: var(--bg-success);
    border: 0.5px solid var(--border-success);
    border-radius: var(--radius-md);
    padding: .8rem;
    margin-top: .75rem;
  }
  .pam-block-hdr {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: .4rem;
  }
  .pam-block-icon {
    width: 16px; height: 16px;
    background: var(--text-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .pam-block-icon::after {
    content: '';
    width: 4px; height: 7px;
    border-right: 1.5px solid white;
    border-bottom: 1.5px solid white;
    transform: rotate(45deg) translate(-1px, -1px);
  }
  .pam-block-title { font-size: 12px; font-weight: 600; color: var(--text-success); }
  .pam-block-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

  .no-pam-note {
    background: var(--bg-danger);
    border: 0.5px solid var(--border-danger);
    border-radius: var(--radius-md);
    padding: .8rem;
    margin-top: .75rem;
  }
  .no-pam-note-title { font-size: 12px; font-weight: 600; color: var(--text-danger); margin-bottom: .3rem; }
  .no-pam-note-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

  /* ── Outcome ── */
  .outcome-bar {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: none;
  }
  .outcome-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: .875rem;
    color: var(--text-primary);
  }
  .outcome-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .55rem;
    font-size: 13px;
  }
  .outcome-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .outcome-dot.red { background: var(--text-danger); }
  .outcome-dot.grn { background: var(--text-success); }
  .outcome-lbl { flex: 1; color: var(--text-secondary); }
  .outcome-val {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 500;
  }
  .tag-red { background: var(--bg-danger); color: var(--text-danger); }
  .tag-grn { background: var(--bg-success); color: var(--text-success); }

  .reset-note {
    display: none;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: .6rem;
    text-align: center;
  }
  .reset-note.visible { display: block; }

  /* ── Footer ── */
  .footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid var(--border-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-brand { font-size: 12px; color: var(--text-tertiary); }
  .footer-links { display: flex; gap: 16px; }
  .footer-links a {
    font-size: 12px;
    color: var(--text-info);
    text-decoration: none;
  }
  .footer-links a:hover { text-decoration: underline; }

  /* ── Source badge ── */
  .sources {
    margin-top: .75rem;
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.6;
  }
