  /* ══════════════════════════════════════
     GLOBAL SHELL Details
  ══════════════════════════════════════ */
  .app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  /* Header */
  .app-header {
    background: linear-gradient(135deg, var(--color-core-3) 0%, var(--color-core-2) 50%, var(--color-core-1) 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--color-core-1);
    z-index: 100;
    flex-shrink: 0;
  }

  /* Top strip: logo left, right controls right */
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-core-1), var(--color-sec-green-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(161,0,255,0.4);
  }

  .logo-text {
    font-family: var(--font-graphik-bold);
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
  }

  .logo-sub {
    font-size: 11px;
    color: var(--color-accent-4);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ══════════════════════════════════════
     BODY AREA: LEFT NAV PANE + CONTENT
  ══════════════════════════════════════ */
  .body-area {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--color-grey-100);
  }

  /* Left nav pane */
  .left-nav {
    width: 230px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-core-3) 0%, var(--color-grey-1000) 100%);
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 10;
  }

  /* Collapsed state — just shows numbers */
  .left-nav.collapsed {
    width: 54px;
  }

  /* When collapsed, hide labels, connectors, section heading text, and pin */
  .left-nav.collapsed .nav-label,
  .left-nav.collapsed .nav-connector,
  .left-nav.collapsed .left-nav-section-text,
  .left-nav.collapsed .nav-pin-btn { display: none; }

  /* Nav header row: section label + toggle + pin */
  .left-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px var(--spacing-1);
    min-height: 42px;
    flex-shrink: 0;
  }

  .left-nav-section {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
    overflow: hidden;
  }

  .nav-toggle-btn {
    width: 26px; height: 26px;
    border: none; border-radius: 7px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s;
  }
  .nav-toggle-btn:hover { background: rgba(255,255,255,0.14); color: white; }

  .nav-pin-btn {
    width: 24px; height: 24px;
    border: none; border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s;
    margin-left: 4px;
    font-size: 13px;
  }
  .nav-pin-btn:hover { color: rgba(255,255,255,0.7); }
  .nav-pin-btn.pinned { color: var(--color-accent-3); transform: rotate(-45deg); }

  /* When collapsed, show a bigger toggle centred */
  .left-nav.collapsed .left-nav-header {
    padding: 14px 0 var(--spacing-1);
    justify-content: center;
  }

  /* Nav items */
  .nav-items-wrap {
    flex: 1;
    overflow-y: auto;
    padding-bottom: var(--spacing-2);
    scrollbar-width: none;
  }
  .nav-items-wrap::-webkit-scrollbar { display: none; }

  /* Hover expand hint when collapsed */
  .left-nav.collapsed .nav-item {
    padding: 11px 0;
    justify-content: center;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px var(--spacing-2-5);
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
    border-radius: 0;
    text-decoration: none;
    user-select: none;
  }

  .nav-item:hover {
    background: rgba(255,255,255,0.05);
  }

  .nav-item.active {
    background: linear-gradient(90deg, rgba(161,0,255,0.2), rgba(161,0,255,0.05));
    border-right: none;
  }

  /* Active left accent bar */
  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-core-1);
  }

  .nav-item.done .nav-num {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
    font-size: 0 !important;
  }

  /* Tick mark for done steps */
  .nav-item.done .nav-num::before {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-top: -2px;
  }

  .nav-item.done .nav-label { color: rgba(255,255,255,0.7); }

  .nav-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: all 0.18s;
    position: relative;
  }

  .nav-item.active .nav-num {
    background: var(--color-core-1);
    border-color: var(--color-core-1);
    color: white;
    box-shadow: 0 0 12px rgba(161,0,255,0.5);
  }

  /* Dirty dot on nav num - removed */

  .nav-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    line-height: 1.3;
    transition: color 0.18s;
    flex: 1;
  }

  .nav-item.active .nav-label {
    color: white;
    font-weight: 600;
  }

  .nav-connector {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.1);
    margin: 0 0 0 var(--spacing-4);
  }

  /* Main Content */
  .main-content {
    flex: 1;
    background: var(--color-grey-100);
    overflow-y: auto;
  }

  /* Page Sections (screens) */
  .page { display: none; padding: var(--spacing-5) var(--spacing-6) var(--spacing-5); }
  .page.active { display: block; animation: fadeSlide 0.4s ease; }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(var(--spacing-2)); }
    to { opacity: 1; transform: translateY(0); }
  }
