    :root {
      --radius-xl: 26px;
      --radius-lg: 20px;
      --radius-md: 12px;
      --radius-sm: 8px;
    }
    
    body.theme-dark {
      --bg: #0c0d0f;
      --card-bg: #141619;
      --sidebar-bg: #0f1012;
      --border: #202328;
      --text: #f5f5f7;
      --text-muted: #8a99ad;
      --accent: #00e5ff;
      --accent-glow: rgba(0, 229, 255, 0.15);
      --green: #2ecc71;
      --green-glow: rgba(46, 204, 113, 0.15);
      --orange: #ff6a2e;
      --orange-glow: rgba(255, 106, 46, 0.15);
      --red: #ff4757;
      --red-glow: rgba(255, 71, 87, 0.15);
      --purple: #8b5cf6;
      --purple-glow: rgba(139, 92, 246, 0.15);
      --pdf-bg: #050a12;
      --active-row: #101f35;
    }
    
    body.theme-light {
      --bg: #f5f7fa;
      --card-bg: #ffffff;
      --sidebar-bg: #f0f2f5;
      --border: #e2e8f0;
      --text: #1e293b;
      --text-muted: #64748b;
      --accent: #00acc1;
      --accent-glow: rgba(0, 172, 193, 0.08);
      --green: #2ecc71;
      --green-glow: rgba(46, 204, 113, 0.08);
      --orange: #e67e22;
      --orange-glow: rgba(230, 126, 34, 0.08);
      --red: #e74c3c;
      --red-glow: rgba(231, 76, 60, 0.08);
      --purple: #8e44ad;
      --purple-glow: rgba(142, 68, 173, 0.08);
      --pdf-bg: #f8fafc;
      --active-row: #e2e8f0;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      display: flex;
      height: 100vh;
      overflow: hidden;
      transition: background-color 0.2s, color 0.2s;
    }
    
    /* Collapsible Sidebar */
    .sidebar {
      width: 50px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 18px 0;
      justify-content: space-between;
      height: 100%;
      flex-shrink: 0;
      transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, border-color 0.2s;
      overflow: hidden;
      z-index: 100;
    }
    
    .sidebar.expanded {
      width: 200px;
      align-items: flex-start;
      padding: 18px 16px;
    }
    
    .sidebar-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
      width: 100%;
    }
    .sidebar.expanded .sidebar-top {
      align-items: flex-start;
    }
    
    .q-logo {
      width: 24px;
      height: 24px;
      position: relative;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sidebar.expanded .q-logo {
      display: none !important;
    }
    
    .menu-items {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
      width: 100%;
    }
    .sidebar.expanded .menu-items {
      align-items: flex-start;
    }
    
    .menu-item {
      width: 34px;
      height: 34px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s, color 0.2s, width 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    .menu-item:hover, .menu-item.active {
      color: var(--accent);
      background: var(--accent-glow);
    }
    .sidebar.expanded .menu-item {
      width: 100%;
      justify-content: flex-start;
      padding: 0 10px;
      gap: 12px;
    }
    
    .menu-item-text {
      font-size: 0.82rem;
      font-weight: 500;
      opacity: 0;
      white-space: nowrap;
      transition: opacity 0.15s ease;
      display: none;
      color: var(--text);
    }
    .menu-item.active .menu-item-text {
      color: var(--accent);
      font-weight: 600;
    }
    .sidebar.expanded .menu-item-text {
      display: block;
      opacity: 1;
    }
    
    .sidebar-bottom {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 100%;
    }
    .sidebar.expanded .sidebar-bottom {
      align-items: flex-start;
      padding-left: 6px;
    }
    
    .user-badge {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--border);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: bold;
      cursor: pointer;
    }
    
    /* Main Content Area */
    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }
    
    /* Top Navigation Bar */
    .topbar {
      height: 55px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 12px;
      background: var(--card-bg);
      flex-shrink: 0;
      transition: background-color 0.2s, border-color 0.2s;
    }
    
    .topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    /* Robust Fallback Logo Display */
    .logo-img {
      height: 18px;
      width: auto;
    }
    
    .logo-img-light { display: block; }
    .logo-img-dark { display: none; }
    
    body.theme-dark .logo-img-light { display: none !important; }
    body.theme-dark .logo-img-dark { display: none; }
    
    body.theme-light .logo-img-light { display: none; }
    body.theme-light .logo-img-dark { display: none !important; }
    
    .page-title {
      font-size: 0.95rem;
      color: var(--text-muted);
      border-left: none;
      padding-left: 0;
    }
    
    .topbar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    /* Theme Toggle Button */
    .theme-toggle-btn {
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      width: 34px;
      height: 34px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .theme-toggle-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-glow);
    }
    
    body.theme-dark .theme-icon-sun { display: block; }
    body.theme-dark .theme-icon-moon { display: none; }
    body.theme-light .theme-icon-sun { display: none; }
    body.theme-light .theme-icon-moon { display: block; }
    
    /* Workspace Card Container */
    .workspace {
      position: relative;
      padding: 12px;
      overflow-y: auto;
      flex: 1;
    }
    
    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      transition: background-color 0.2s, border-color 0.2s;
    }
    
    /* 3-Column Layout */
    .gov-grid {
      display: grid;
      grid-template-columns: 38fr 27fr 35fr;
      gap: 12px;
      height: 100%;
      min-height: calc(100vh - 120px);
    }
    
    /* Left Column: Compliance Checklist Progress */
    .compliance-panel {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow-y: auto;
    }
    
    .compliance-header {
      display: flex;
      align-items: center;
      gap: 24px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 20px;
      flex-shrink: 0;
    }
    
    .circular-progress {
      position: relative;
      width: 100px;
      height: 100px;
      flex-shrink: 0;
    }
    
    .compliance-header-right {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    .readiness-score {
      font-size: 1.5rem;
      font-weight: 800;
    }
    
    .readiness-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    
    /* Accordion Category Items */
    .framework-category {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
      margin-bottom: 12px;
      flex-shrink: 0;
    }
    
    .framework-category-header {
      padding: 14px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(0,0,0,0.08);
      border-bottom: 1px solid var(--border);
      cursor: pointer;
    }
    
    .framework-header-left {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    
    .framework-title {
      font-size: 0.85rem;
      font-weight: 700;
    }
    
    .framework-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .framework-percent {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--accent);
    }
    
    /* Scrollable Checklist Body Container */
    .framework-category-body {
      padding: 12px 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 145px;
      overflow-y: auto;
    }
    
    /* Custom Scrollbar for Checklist Body */
    .framework-category-body::-webkit-scrollbar {
      width: 4px;
    }
    .framework-category-body::-webkit-scrollbar-track {
      background: transparent;
    }
    .framework-category-body::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 2px;
    }
    .framework-category-body::-webkit-scrollbar-thumb:hover {
      background: var(--accent);
    }
    
    /* Checklist Row */
    .checklist-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.76rem;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(20, 37, 61, 0.2);
      flex-shrink: 0;
    }
    .checklist-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    
    .checklist-row-left {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-muted);
    }
    
    .checklist-row-left.completed {
      color: var(--text);
    }
    
    .badge-capsule {
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 0.6rem;
      font-weight: bold;
      text-transform: uppercase;
    }
    
    .badge-completed {
      background: var(--green-glow);
      color: var(--green);
      border: 1px solid rgba(46, 204, 113, 0.2);
    }
    
    .badge-progress {
      background: var(--orange-glow);
      color: var(--orange);
      border: 1px solid rgba(255, 106, 46, 0.2);
    }
    
    /* Middle Column: Tasks & Recent Activity */
    .middle-panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .tasks-card {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
    }
    
    .tasks-title {
      font-size: 0.95rem;
      font-weight: 700;
      border-bottom: 1px solid var(--border);
      padding-bottom: 10px;
      margin-bottom: 4px;
    }
    
    .task-item {
      padding: 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.01);
      display: flex;
      gap: 12px;
      transition: all 0.2s;
    }
    
    .task-item:hover {
      background: var(--active-row);
    }
    
    .task-status-indicator {
      width: 6px;
      border-radius: 3px;
      flex-shrink: 0;
    }
    
    .task-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    .task-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    
    .task-label {
      font-size: 0.8rem;
      font-weight: 700;
    }
    
    .task-desc {
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.4;
    }
    
    .priority-badge {
      font-size: 0.6rem;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: bold;
    }
    .priority-critical {
      background: var(--red-glow);
      color: var(--red);
    }
    .priority-medium {
      background: var(--orange-glow);
      color: var(--orange);
    }
    
    .show-more-link {
      font-size: 0.75rem;
      color: var(--accent);
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      margin-top: 4px;
      transition: color 0.2s;
    }
    .show-more-link:hover {
      text-decoration: underline;
    }
    
    .activity-card {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
    }
    
    .activity-row {
      display: flex;
      gap: 12px;
      font-size: 0.75rem;
      position: relative;
    }
    
    .activity-bullet {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      margin-top: 4px;
      flex-shrink: 0;
      position: relative;
      z-index: 2;
    }
    
    .activity-row::before {
      content: "";
      position: absolute;
      left: 3px;
      top: 12px;
      bottom: -16px;
      width: 2px;
      background: var(--border);
      z-index: 1;
    }
    .activity-row:last-child::before {
      display: none;
    }
    
    .activity-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    
    .activity-text {
      font-weight: 500;
    }
    
    .activity-time {
      font-size: 0.68rem;
      color: var(--text-muted);
    }
    
    /* Right Column: Active Audit Readiness Report PDF */
    .report-panel {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .report-card-title {
      font-size: 0.95rem;
      font-weight: 700;
      border-bottom: 1px solid var(--border);
      padding-bottom: 10px;
    }
    
    .pdf-preview-box {
      flex: 1;
      background: var(--pdf-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0;
      position: relative;
      overflow: hidden;
      min-height: 150px;
    }
    
    .pdf-snapshot-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: transform 0.2s;
      cursor: pointer;
    }
    
    .pdf-snapshot-img:hover {
      transform: scale(1.02);
    }
    
    /* Premium HTML Mock PDF Thumbnail */
    .pdf-thumbnail {
      width: 140px;
      height: 190px;
      background: #ffffff;
      border-radius: 4px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3);
      border: 1px solid #e2e8f0;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      user-select: none;
    }
    
    .pdf-thumb-header {
      border-bottom: 2px solid #00acc1;
      padding-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    
    .pdf-logo-img {
      height: 8px;
      width: auto;
    }
    
    .pdf-title {
      font-size: 0.45rem;
      font-weight: 800;
      color: #1e293b;
      line-height: 1.3;
    }
    
    .pdf-body-lines {
      display: flex;
      flex-direction: column;
      gap: 5px;
      flex: 1;
    }
    
    .pdf-line {
      height: 3px;
      background: #f1f5f9;
      border-radius: 2px;
    }
    .pdf-line.long { width: 100%; background: #e2e8f0; }
    .pdf-line.medium { width: 75%; background: #e2e8f0; }
    .pdf-line.short { width: 45%; background: #e2e8f0; }
    
    .pdf-visual-ring {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 4px solid #f1f5f9;
      border-top-color: #2ecc71;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 4px auto;
    }
    
    .pdf-visual-text {
      font-size: 0.45rem;
      font-weight: bold;
      color: #1e293b;
    }
    
    .pdf-footer {
      font-size: 0.35rem;
      color: #94a3b8;
      text-align: center;
      border-top: 1px solid #f1f5f9;
      padding-top: 4px;
    }
    
    .metadata-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .metadata-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
    }
    
    .metadata-label {
      color: var(--text-muted);
    }
    
    .metadata-value {
      font-weight: 700;
    }
    
    .download-btn {
      width: 100%;
      background: transparent;
      border: 1px solid var(--accent);
      color: var(--accent);
      font-size: 0.82rem;
      font-weight: 700;
      padding: 12px;
      border-radius: 6px;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
    }
    .download-btn:hover {
      background: var(--accent-glow);
      transform: translateY(-1px);
    }

    /* Collapsible Sidebar Brand Area */
    .sidebar-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      cursor: pointer;
      gap: 10px;
      transition: justify-content 0.25s ease, padding 0.25s ease;
    }
    .sidebar.expanded .sidebar-brand {
      justify-content: flex-start;
      padding-left: 6px;
    }
    .sidebar-brand .sidebar-wordmark-light,
    .sidebar-brand .sidebar-wordmark-dark {
      display: none !important;
      height: 24px;
      width: 100%;
      object-fit: contain;
      object-position: left;
    }
    body.theme-dark .sidebar.expanded .sidebar-wordmark-light {
      display: block !important;
    }
    body.theme-light .sidebar.expanded .sidebar-wordmark-dark {
      display: block !important;
    }
    .sidebar.expanded ~ .content .logo-img-light,
    .sidebar.expanded ~ .content .logo-img-dark {
      display: none !important;
    }
    .sidebar.expanded ~ .content .page-title {
      border-left: none !important;
      padding-left: 0 !important;
    }
