@layer components {
  /* ==========================================================================
     Standards & Curriculum Modern UI/UX Styles
     ========================================================================== */

  /* Subject Navigation (Sticky Frosted Glass) */
  .curr-nav-container {
    position: sticky;
    top: 4.5rem;
    z-index: 40;
    background-color: color-mix(in srgb, var(--color-bg-surface) 82%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  @media print {
    .curr-nav-container {
      display: none !important;
    }
  }

  .curr-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.625rem 1.5rem;
  }

  .curr-nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  /* Subject Segmented Tabs */
  .curr-tabs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.275rem;
    background: color-mix(in srgb, var(--color-bg-base) 80%, transparent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .curr-tabs::-webkit-scrollbar {
    display: none;
  }

  .curr-tab-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    color: var(--color-text-muted);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
  }

  .curr-tab-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }

  .curr-tab-btn:hover:not(.active) {
    color: var(--color-text-main);
    background-color: color-mix(in srgb, var(--color-bg-surface) 90%, transparent);
  }

  .curr-tab-btn:hover .curr-tab-icon-wrap {
    transform: scale(1.15);
  }

  .curr-tab-btn.active {
    color: #ffffff !important;
    font-weight: 900;
    transform: scale(1.02);
  }

  .tab-color-indigo.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(79, 70, 229, 0.45);
    border-color: #4338ca;
  }

  .tab-color-rose.active {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(225, 29, 72, 0.45);
    border-color: #be123c;
  }

  .tab-color-emerald.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(16, 185, 129, 0.45);
    border-color: #047857;
  }

  .tab-color-amber.active {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(245, 158, 11, 0.45);
    border-color: #b45309;
  }

  .color-indigo { color: var(--color-primary) !important; }
  .color-rose { color: var(--color-error) !important; }
  .color-emerald { color: var(--color-success) !important; }
  .color-amber { color: var(--color-warning) !important; }

  /* Curriculum Framework Selector */
  .curr-select-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: color-mix(in srgb, var(--color-bg-base) 80%, transparent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .curr-select-container:hover {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    background: var(--color-bg-surface);
  }

  .curr-select-icon {
    font-size: 0.8125rem;
    color: var(--color-primary);
  }

  .curr-select-label {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: none;
  }

  @media (min-width: 640px) {
    .curr-select-label {
      display: inline-block;
    }
  }

  .curr-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0.2rem 1.25rem 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    cursor: pointer;
    border-radius: var(--radius-sm, 4px);
  }

  .curr-select:focus-visible {
    outline: 2px solid var(--color-primary, #4f46e5);
    outline-offset: 2px;
  }

  .curr-select-chevron {
    position: absolute;
    right: 0.75rem;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    pointer-events: none;
  }

  /* Main Container */
  .curr-main {
    min-height: 100vh;
    padding-bottom: 6rem;
  }

  /* Header Section with Dynamic Ambient Glow */
  .curr-header {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-surface);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
  }

  .curr-header-ambient-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 45rem;
    height: 45rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    transition: background 0.6s ease;
    z-index: 1;
  }

  .curr-header[data-subject="math"] .curr-header-ambient-glow {
    background: radial-gradient(circle, #6366f1 0%, #3b82f6 50%, transparent 80%);
  }
  .curr-header[data-subject="ela"] .curr-header-ambient-glow {
    background: radial-gradient(circle, #f43f5e 0%, #ec4899 50%, transparent 80%);
  }
  .curr-header[data-subject="science"] .curr-header-ambient-glow {
    background: radial-gradient(circle, #10b981 0%, #06b6d4 50%, transparent 80%);
  }
  .curr-header[data-subject="social"] .curr-header-ambient-glow {
    background: radial-gradient(circle, #f59e0b 0%, #ea580c 50%, transparent 80%);
  }

  .curr-header-inner {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .curr-header-content {
    animation: rise-in 0.5s ease-out forwards;
  }

  .curr-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-bg-base) 80%, var(--color-bg-surface));
    border: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .curr-badge-pill i {
    color: var(--color-primary);
  }

  .curr-header-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  @media (min-width: 768px) {
    .curr-header-title {
      font-size: 3.25rem;
    }
  }

  .curr-header-desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.6;
    max-width: 44rem;
    margin-bottom: 2rem;
  }

  /* Header Top Row & Action Buttons */
  .curr-header-top-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  @media (min-width: 768px) {
    .curr-header-top-row {
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
    }
    .curr-header-top-row .curr-header-desc {
      margin-bottom: 0;
    }
  }

  .curr-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
  }

  .curr-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
  }

  .curr-btn-print:hover {
    background-color: var(--color-bg-base);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Export Dropdown */
  .curr-export-dropdown {
    position: relative;
    display: inline-block;
  }

  .curr-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
  }

  .curr-btn-export:hover,
  .curr-btn-export.active {
    background-color: var(--color-bg-base);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .curr-caret {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
  }

  .curr-btn-export:hover .curr-caret,
  .curr-btn-export.active .curr-caret {
    transform: rotate(180deg);
  }

  .curr-export-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 100;
    min-width: 17.5rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.25);
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    backdrop-filter: blur(12px);
  }

  .curr-export-menu.show {
    display: flex;
    animation: rise-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .curr-export-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-lg);
    border: none;
    background: transparent;
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }

  .curr-export-item i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
  }

  .curr-export-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
  }

  .curr-export-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.25;
  }

  .curr-export-sub {
    font-size: 0.7188rem;
    color: var(--color-text-muted);
    line-height: 1.25;
    font-weight: 400;
  }

  .curr-export-item:hover {
    background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  }

  .curr-export-item:hover .curr-export-title {
    color: var(--color-primary);
  }

  /* ==========================================================================
     Expandable Grade Groups (Grade School, Middle, High)
     ========================================================================== */
  .curr-grade-groups-container {
    margin-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  /* Group Tabs / Triggers */
  .curr-group-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  @media (min-width: 640px) {
    .curr-group-tabs {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .curr-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    text-align: left;
    user-select: none;
    position: relative;
    overflow: hidden;
  }

  .curr-group-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
  }

  .curr-group-btn:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    background: color-mix(in srgb, var(--color-bg-base) 60%, var(--color-bg-surface));
    box-shadow: var(--shadow-md);
  }

  .curr-group-btn.expanded {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-surface));
    box-shadow: 0 4px 16px -2px color-mix(in srgb, var(--color-primary) 22%, transparent);
  }

  .curr-group-btn.expanded::before {
    background: var(--color-primary);
  }

  .curr-group-btn-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .curr-group-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
  }

  .curr-group-btn.expanded .curr-group-icon-wrap {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 35%, transparent);
  }

  .curr-group-text {
    display: flex;
    flex-direction: column;
  }

  .curr-group-name {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .curr-group-sub {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
  }

  .curr-group-btn-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
  }

  .curr-group-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 800;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    white-space: nowrap;
  }

  .curr-group-chevron {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  }

  .curr-group-btn.expanded .curr-group-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
  }

  /* Expandable Group Panels */
  .curr-group-panels {
    position: relative;
  }

  .curr-group-panel {
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .curr-group-panel.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: panelExpand 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes panelExpand {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .curr-group-panel-inner {
    padding: 1.25rem 1.5rem;
    background: color-mix(in srgb, var(--color-bg-base) 65%, var(--color-bg-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
  }

  .curr-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
  }

  .curr-panel-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .curr-panel-label i {
    color: var(--color-primary);
  }

  .curr-panel-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    user-select: none;
  }

  .curr-panel-close-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 30%, transparent);
  }

  .curr-panel-close-btn i {
    font-size: 0.6875rem;
  }

  /* Grade Chips Container inside Panel (Wraps neatly, no scrolling required) */
  .curr-group-panel .curr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.125rem 0;
    overflow-x: visible;
  }

  .curr-grade-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    user-select: none;
  }

  .curr-grade-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  .curr-grade-level {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
    transition: color 0.2s ease;
  }

  .curr-grade-card:hover:not(.active) {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    background: color-mix(in srgb, var(--color-bg-base) 80%, var(--color-bg-surface));
    box-shadow: var(--shadow-md);
  }

  .curr-grade-card.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 6px 18px -2px color-mix(in srgb, var(--color-primary) 35%, transparent);
    transform: translateY(-2px);
  }

  .curr-grade-card.active .curr-grade-name {
    color: #ffffff;
  }

  .curr-grade-card.active .curr-grade-level {
    color: rgba(255, 255, 255, 0.85);
  }

  /* Modern Quick Stats Counter Grid */
  .curr-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  @media (min-width: 768px) {
    .curr-stats-bar {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .curr-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.35rem;
    background: color-mix(in srgb, var(--color-bg-surface) 85%, transparent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .curr-stat-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
  }

  .curr-stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    flex-shrink: 0;
  }

  .stat-icon-domains {
    background: color-mix(in srgb, #6366f1 14%, transparent);
    color: #6366f1;
  }

  .stat-icon-standards {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #10b981;
  }

  .stat-icon-competencies {
    background: color-mix(in srgb, #ec4899 14%, transparent);
    color: #ec4899;
  }

  .stat-icon-level {
    background: color-mix(in srgb, #f59e0b 14%, transparent);
    color: #f59e0b;
  }

  .curr-stat-info {
    display: flex;
    flex-direction: column;
  }

  .curr-stat-value {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .curr-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
  }

  /* Detailed Content Area */
  .curr-content-area {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
  }

  .curr-view-wrapper {
    animation: rise-in 0.4s ease-out forwards;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .curr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  @media (min-width: 1024px) {
    .curr-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .curr-col-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  @media (min-width: 1024px) {
    .curr-col-main {
      grid-column: span 2 / span 2;
    }
  }

  /* Cards */
  .curr-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
  }

  @media (min-width: 768px) {
    .curr-card {
      padding: 2.5rem;
    }
  }

  .curr-card-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem;
    opacity: 0.05;
    font-size: 6rem;
    pointer-events: none;
  }

  .curr-card-badge {
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
  }

  .badge-emerald { color: var(--color-success) !important; }
  .badge-indigo { color: var(--color-primary) !important; }
  .badge-gray { color: var(--color-text-muted) !important; }

  .curr-card-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.875rem;
    font-weight: 850;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
  }

  .curr-card-text {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .curr-mt {
    margin-top: 1rem;
  }

  /* Standards Alignment Card & Toolbar */
  .curr-standards-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .curr-standards-header-row .curr-card-badge {
    margin-bottom: 0;
  }

  .curr-standards-counter {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 12%, transparent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
  }

  .curr-standards-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .curr-toolbar-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  @media (min-width: 640px) {
    .curr-toolbar-row {
      flex-direction: row;
      align-items: center;
    }
  }

  .curr-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
  }

  .curr-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
  }

  #standards-search-input {
    width: 100%;
    padding: 0.75rem 4.5rem 0.75rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  #standards-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
    background-color: var(--color-bg-surface);
  }

  .curr-search-kbd-hint {
    position: absolute;
    right: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    pointer-events: none;
  }

  .curr-search-kbd-hint kbd {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-size: 0.625rem;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  }

  .curr-search-clear {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: color 0.2s;
  }

  .curr-search-clear:hover {
    color: var(--color-text-main);
  }

  .curr-btn-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .curr-btn-accordion-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-bg-base);
  }

  .curr-btn-accordion-toggle i {
    font-size: 0.75rem;
    color: var(--color-primary);
  }

  /* Export Dropdown in Filters Toolbar */
  .curr-export-dropdown-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
  }

  .curr-btn-export-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
  }

  .curr-btn-export-trigger i.fa-file-export {
    font-size: 0.8125rem;
    color: var(--color-primary);
  }

  .curr-export-arrow {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 0.15rem;
  }

  .curr-btn-export-trigger:hover,
  .curr-btn-export-trigger.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-bg-base);
    box-shadow: var(--shadow-md);
  }

  .curr-btn-export-trigger.active .curr-export-arrow,
  .curr-btn-export-trigger:hover .curr-export-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
  }

  /* Domain Filter Pills */
  .curr-domain-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 160px;
    overflow-y: auto;
    padding-top: 0.25rem;
  }

  .curr-domain-pill {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .curr-domain-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-text-main);
    background: var(--color-bg-base);
  }

  .curr-domain-pill.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px -1px color-mix(in srgb, var(--color-primary) 30%, transparent);
  }

  /* Standards List & Cards */
  .curr-standards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .curr-standard-item {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-2xl);
    background-color: color-mix(in srgb, var(--color-bg-base) 60%, var(--color-bg-surface));
    border: 1px solid var(--color-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .curr-standard-item:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  }

  .curr-standard-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }

  .curr-standard-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  /* Sidebar Highlights & Quick Links */
  .curr-col-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .curr-competencies-card {
    background-color: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg-surface));
    border-radius: var(--radius-3xl);
    padding: 2.25rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
  }

  .curr-comp-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .curr-comp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .curr-comp-icon {
    color: var(--color-primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
  }

  .curr-comp-text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    line-height: 1.5;
  }

  .curr-link-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-surface)) 0%, var(--color-bg-surface) 100%);
    transition: all 0.25s ease;
    border: 1px solid color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
  }

  .curr-link-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--color-primary) 20%, transparent);
    transform: translateY(-2px);
  }

  .curr-link-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .curr-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    font-weight: 850;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 8px 20px -3px color-mix(in srgb, var(--color-primary) 35%, transparent);
    transition: all 0.22s ease;
  }

  .curr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -3px color-mix(in srgb, var(--color-primary) 45%, transparent);
  }

  .curr-btn-primary:active {
    transform: scale(0.98);
  }

  /* Standard Code Badges (Click to Copy) */
  .std-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: color-mix(in srgb, var(--color-success) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-success) 25%, transparent);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .std-code-badge i {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .std-code-badge:hover {
    background: color-mix(in srgb, var(--color-success) 22%, transparent);
    border-color: var(--color-success);
    transform: translateY(-1px);
  }

  .std-code-badge:hover i {
    opacity: 1;
    transform: scale(1.15);
  }

  .std-code-badge:active {
    transform: scale(0.96);
  }

  /* Accordion Domain Headers & Body */
  .curr-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
  }

  .curr-accordion-header:hover .curr-standard-title {
    color: var(--color-primary);
  }

  .curr-accordion-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-grow: 1;
  }

  .curr-accordion-title-wrap .curr-standard-title {
    margin-bottom: 0;
    transition: color 0.2s ease;
  }

  .curr-accordion-count {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background-color: color-mix(in srgb, var(--color-border) 60%, transparent);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  .curr-accordion-chevron {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
  }

  .curr-accordion-header:hover .curr-accordion-chevron {
    color: var(--color-primary);
  }

  .curr-standard-item.collapsed .curr-accordion-chevron {
    transform: rotate(-90deg);
  }

  .curr-accordion-body {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.2s ease;
  }

  .curr-standard-item.collapsed .curr-accordion-body {
    display: none;
  }

  .curr-standard-item.collapsed {
    padding-bottom: 1.5rem;
    background-color: color-mix(in srgb, var(--color-bg-surface) 60%, transparent);
    border-color: var(--color-border);
  }

  .curr-standard-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.025em;
    opacity: 0.85;
    user-select: none;
    transition: opacity 0.2s ease, color 0.2s ease;
  }

  .curr-standard-disclaimer i {
    color: var(--color-primary);
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .curr-standard-disclaimer:hover {
    opacity: 1;
    color: var(--color-primary);
  }

  /* Toast Notification */
  .std-copy-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .std-copy-toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .std-copy-toast i {
    color: #10b981;
    font-size: 1rem;
  }

  /* No Results State */
  .curr-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-xl);
    background-color: var(--color-bg-base);
    border: 1px dashed var(--color-border);
  }

  .curr-no-results-icon {
    font-size: 2.5rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .curr-no-results-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
  }

  .curr-no-results-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .curr-btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
  }

  /* Standard Info (i) Button */
  .std-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.35rem;
    vertical-align: middle;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .std-info-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
  }

  .std-info-btn:active {
    transform: scale(0.95);
  }

  /* Standard Mastery Dossier Modal (Large Detail Popup) */
  .std-dossier-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .std-dossier-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .std-dossier-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 52rem;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(1.5rem) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .std-dossier-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem 1.25rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-bg-base) 50%, var(--color-bg-surface));
  }

  .std-dossier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .std-dossier-pill {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
  }

  .pill-indigo {
    background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
  }

  .pill-emerald {
    background-color: color-mix(in srgb, var(--color-success) 12%, transparent);
    color: var(--color-success);
  }

  .pill-slate {
    background-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
    color: var(--color-text-main);
  }

  .std-dossier-code-title {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
    font-family: 'Outfit', sans-serif;
  }

  .std-dossier-close-btn {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
  }

  .std-dossier-close-btn:hover {
    color: var(--color-text-main);
    background-color: color-mix(in srgb, var(--color-border) 40%, transparent);
  }

  .std-dossier-body {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .std-dossier-section-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .std-dossier-statement-box {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-main);
    font-weight: 500;
  }

  .std-dossier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  @media (min-width: 768px) {
    .std-dossier-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .std-dossier-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .std-dossier-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-main);
    background: var(--color-bg-base);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }

  .std-dossier-list-item i {
    color: var(--color-success);
    margin-top: 0.2rem;
    flex-shrink: 0;
  }

  .std-dossier-progression-box,
  .std-dossier-scaffolding-box {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-main);
  }

  .std-dossier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: color-mix(in srgb, var(--color-bg-base) 70%, var(--color-bg-surface));
    border-top: 1px solid var(--color-border);
  }

  .std-dossier-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .std-dossier-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .std-dossier-btn-secondary:hover {
    background-color: var(--color-border);
  }

  .std-dossier-btn-lesson {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    background-color: color-mix(in srgb, var(--color-secondary) 15%, transparent);
    color: var(--color-secondary);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 30%, transparent);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .std-dossier-btn-lesson:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }

  .std-dossier-btn-test {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
    transition: all 0.2s ease;
  }

  .std-dossier-btn-test:hover {
    background-color: color-mix(in srgb, var(--color-primary) 85%, black);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 40%, transparent);
  }

  /* Search Highlight */
  .std-highlight {
    background-color: color-mix(in srgb, var(--color-warning) 30%, transparent);
    color: inherit;
    font-weight: 700;
    padding: 0.05rem 0.25rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-warning) 50%, transparent);
  }

  /* Cross-Grade Suggestion Banner */
  .curr-cross-grade-alert {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }

  .curr-cross-grade-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .curr-cross-grade-title i {
    color: var(--color-primary);
  }

  .curr-cross-grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .curr-cross-grade-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .curr-cross-grade-chip-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  /* Standards Mastery Progress Overlay & Toggle */
  .curr-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .curr-progress-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    user-select: none;
  }

  .curr-progress-toggle-wrap:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-surface));
  }

  .curr-progress-toggle-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .curr-progress-slider {
    position: relative;
    width: 2rem;
    height: 1.15rem;
    background: var(--color-border);
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .curr-progress-slider::before {
    content: '';
    position: absolute;
    width: 0.85rem;
    height: 0.85rem;
    left: 0.15rem;
    top: 0.15rem;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
  }

  .curr-progress-toggle-wrap input:checked + .curr-progress-slider {
    background: var(--color-primary);
  }

  .curr-progress-toggle-wrap input:checked + .curr-progress-slider::before {
    transform: translateX(0.85rem);
  }

  .curr-progress-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .curr-progress-label i {
    color: var(--color-accent);
  }

  /* Progress Badges on Standards */
  .std-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
  }

  .std-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    animation: rise-in 0.3s ease;
  }

  .std-progress-badge.mastered {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
  }

  .std-progress-badge.proficient {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
  }

  .std-progress-badge.developing {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
  }

  .std-progress-badge.untested {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
  }

  [data-theme="dark"] .std-progress-badge.mastered {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #059669;
  }

  [data-theme="dark"] .std-progress-badge.proficient {
    background: #451a03;
    color: #fcd34d;
    border-color: #d97706;
  }

  [data-theme="dark"] .std-progress-badge.developing {
    background: #450a0a;
    color: #fca5a5;
    border-color: #dc2626;
  }

  [data-theme="dark"] .std-progress-badge.untested {
    background: #1e293b;
    color: #94a3b8;
    border-color: #475569;
  }

  /* Card Accents when Progress Overlay is Active */
  .show-mastery-overlay .curr-standard-item.std-item-mastered {
    border-left: 4px solid #10b981 !important;
    background: color-mix(in srgb, #10b981 3%, var(--color-bg-surface));
  }

  .show-mastery-overlay .curr-standard-item.std-item-proficient {
    border-left: 4px solid #f59e0b !important;
    background: color-mix(in srgb, #f59e0b 3%, var(--color-bg-surface));
  }

  .show-mastery-overlay .curr-standard-item.std-item-developing {
    border-left: 4px solid #f97316 !important;
    background: color-mix(in srgb, #f97316 3%, var(--color-bg-surface));
  }

  /* Print Optimization */
  @media print {
    .curr-nav-container,
    .curr-chips,
    .curr-header-actions,
    .curr-standards-toolbar,
    .curr-link-card,
    .std-copy-toast,
    .std-code-badge i,
    .curr-export-dropdown,
    .curr-export-dropdown-wrap,
    .curr-btn-accordion-toggle,
    .curr-accordion-chevron,
    .curr-accordion-count,
    header.site-header,
    footer.site-footer,
    nav {
      display: none !important;
    }

    .curr-accordion-body {
      display: flex !important;
    }

    body, .curr-main {
      background: #ffffff !important;
      color: #000000 !important;
      padding: 0 !important;
      margin: 0 !important;
      min-height: auto !important;
    }

    .curr-header {
      background: transparent !important;
      padding: 1.5rem 0 !important;
      border-bottom: 2px solid #000 !important;
    }

    .curr-header-title {
      font-size: 2rem !important;
      color: #000 !important;
    }

    .curr-header-desc {
      color: #333 !important;
      font-size: 1rem !important;
    }

    .curr-stats-bar {
      background: transparent !important;
      border: 1px solid #ccc !important;
      box-shadow: none !important;
      margin-top: 1rem !important;
      padding: 0.75rem 1rem !important;
    }

    .curr-content-area {
      padding: 1.5rem 0 !important;
      max-width: 100% !important;
    }

    .curr-grid {
      display: block !important;
    }

    .curr-col-main {
      gap: 1.5rem !important;
    }

    .curr-card {
      box-shadow: none !important;
      border: 1px solid #ddd !important;
      padding: 1.5rem !important;
      background: #fff !important;
      margin-bottom: 1.5rem !important;
      page-break-inside: auto !important;
      break-inside: auto !important;
    }

    .curr-standard-item {
      border: 1px solid #eee !important;
      background: #fafafa !important;
      page-break-inside: avoid;
      break-inside: avoid;
      margin-bottom: 1rem !important;
    }

    .std-code-badge {
      background: #eee !important;
      border: 1px solid #ccc !important;
      color: #000 !important;
    }

    .curr-col-side {
      margin-top: 1.5rem !important;
    }

    .curr-competencies-card {
      border: 1px solid #ddd !important;
      background: #fff !important;
      box-shadow: none !important;
      page-break-inside: avoid;
      break-inside: avoid;
    }
  }

  /* ==========================================================================
     CCSS Mathematics Glossary & Reference Tables (Modal Popup)
     ========================================================================== */
  .curr-glossary-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: currModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes currModalFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .curr-glossary-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .curr-glossary-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 64rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid #f59e0b;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: currModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes currModalSlideUp {
    from {
      transform: translateY(20px) scale(0.97);
    }
    to {
      transform: translateY(0) scale(1);
    }
  }

  .curr-glossary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    flex-shrink: 0;
  }

  .curr-glossary-title-wrap {
    flex: 1;
    min-width: 0;
  }

  .curr-glossary-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
  }

  .curr-glossary-pdf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #ef4444;
    border: 1px solid color-mix(in srgb, #ef4444 25%, transparent);
  }

  .curr-glossary-modal-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin: 0.25rem 0 0.35rem 0;
  }

  .curr-glossary-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
  }

  .curr-glossary-header-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-shrink: 0;
  }

  .curr-glossary-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .curr-glossary-close-btn:hover {
    color: var(--color-text-main);
    border-color: #ef4444;
    background: color-mix(in srgb, #ef4444 10%, transparent);
  }

  .curr-glossary-modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  .curr-glossary-view-switcher {
    display: inline-flex;
    padding: 0.25rem;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    gap: 0.25rem;
  }

  .curr-glossary-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .curr-glossary-toggle-btn:hover {
    color: var(--color-text-main);
  }

  .curr-glossary-toggle-btn.active {
    background: var(--color-bg-surface);
    color: #f59e0b;
    box-shadow: var(--shadow-sm);
  }

  /* Glossary Toolbar */
  .curr-glossary-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .curr-glossary-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .curr-glossary-search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text-main);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
  }

  .curr-glossary-search-box input:focus {
    border-color: #f59e0b;
    background-color: var(--color-bg-surface);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  }

  .curr-glossary-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
  }

  /* Letter Pills */
  .curr-glossary-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
  }

  .curr-letter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .curr-letter-pill:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-1px);
  }

  .curr-letter-pill.active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px -1px rgba(245, 158, 11, 0.35);
  }

  /* Terms Grid & Cards */
  .curr-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
  }

  .curr-term-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
  }

  .curr-term-card:hover {
    border-color: color-mix(in srgb, #f59e0b 60%, var(--color-border));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .curr-term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }

  .curr-term-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.3;
    margin: 0;
  }

  .curr-term-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, #f59e0b 15%, transparent);
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
  }

  .curr-term-def {
    font-size: 0.875rem;
    color: var(--color-text-main);
    line-height: 1.55;
    flex: 1;
  }

  .curr-term-example {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg-base);
    border-left: 3px solid #f59e0b;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.8125rem;
  }

  .curr-term-example-label {
    display: block;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .curr-term-example-body {
    color: var(--color-text-main);
    line-height: 1.5;
  }

  .curr-term-seealso {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-muted);
  }

  .curr-term-seealso-label {
    font-weight: 700;
    color: var(--color-text-muted);
    margin-right: 0.35rem;
  }

  .curr-term-seealso-text {
    color: var(--color-primary);
    font-weight: 600;
  }

  /* Empty state */
  .curr-glossary-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--color-bg-base);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
  }

  .curr-glossary-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
  }

  .curr-glossary-empty h4 {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
  }

  .curr-glossary-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
  }

  /* Tables View Navigation & Display */
  .curr-glossary-tables-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .curr-table-nav-pill {
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .curr-table-nav-pill:hover {
    color: #f59e0b;
    border-color: #f59e0b;
  }

  .curr-table-nav-pill.active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 2px 10px -2px rgba(245, 158, 11, 0.4);
  }

  .curr-table-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .curr-table-card-header {
    margin-bottom: 1.25rem;
  }

  .curr-table-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: color-mix(in srgb, #f59e0b 15%, transparent);
    color: #d97706;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
  }

  .curr-table-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
  }

  .curr-table-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
  }

  .curr-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }

  .curr-glossary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
  }

  .curr-glossary-table th {
    background: var(--color-bg-base);
    color: var(--color-text-main);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
  }

  .curr-glossary-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    vertical-align: top;
    line-height: 1.5;
  }

  .curr-glossary-table tr:last-child td {
    border-bottom: none;
  }

  .curr-glossary-table tr:hover td {
    background: color-mix(in srgb, var(--color-primary) 4%, transparent);
  }

  .curr-table-cell-lead {
    background: color-mix(in srgb, var(--color-bg-base) 60%, transparent);
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
  }

  /* Sidebar Quick Jump Card */
  .curr-glossary-side-card {
    border-top: 3px solid #f59e0b;
  }

  .curr-btn-glossary-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    color: #d97706;
    border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .curr-btn-glossary-jump:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.35);
  }

  /* Suppress MathJax Context Menu and Info Popups */
  .CtxtMenu_MenuFrame,
  .CtxtMenu_Info,
  .CtxtMenu_overlay,
  .MathJax_Menu,
  .MathJax_About,
  .MathJax_Zoom {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Deep Link Standard Highlight Pulse */
  @keyframes stdPulseGlow {
    0% {
      box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
      outline: 2px solid var(--color-primary);
    }
    50% {
      box-shadow: 0 0 0 12px rgba(79, 70, 229, 0);
      outline: 2px solid var(--color-primary);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
      outline: 2px solid transparent;
    }
  }

  .std-pulse-highlight {
    animation: stdPulseGlow 1.4s ease-out 2;
    border-radius: var(--radius-sm);
    background-color: color-mix(in srgb, var(--color-primary) 14%, transparent) !important;
  }

  /* ==========================================================================
     Standards 1-Click Action Links & Real-Time Mastery Checkmarks
     ========================================================================== */
  .std-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    vertical-align: middle;
    margin-right: 0.5rem;
  }

  .std-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.6rem;
    font-size: 0.725rem;
    font-weight: 750;
    border-radius: var(--radius-full, 9999px);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    line-height: 1.35;
    vertical-align: middle;
  }

  .std-quiz-btn {
    background: color-mix(in srgb, var(--color-primary, #2563eb) 12%, transparent);
    color: var(--color-primary, #2563eb);
    border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 30%, transparent);
  }

  .std-quiz-btn:hover {
    background: var(--color-primary, #2563eb);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  }

  .std-lesson-btn {
    background: color-mix(in srgb, var(--color-teal, #0d9488) 12%, transparent);
    color: var(--color-teal, #0d9488);
    border: 1px solid color-mix(in srgb, var(--color-teal, #0d9488) 30%, transparent);
  }

  .std-lesson-btn:hover {
    background: var(--color-teal, #0d9488);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
  }

  /* Real-Time Personal Mastery Checkmark Badge (>= 80% mastery) */
  .std-mastery-checkmark {
    display: none;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full, 9999px);
    background: color-mix(in srgb, var(--color-success, #10b981) 15%, transparent);
    color: var(--color-success, #059669);
    border: 1px solid color-mix(in srgb, var(--color-success, #10b981) 35%, transparent);
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    animation: fadeInCheckmark 0.25s ease;
  }

  .std-mastery-checkmark.active {
    display: inline-flex !important;
  }

  @keyframes fadeInCheckmark {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* ==========================================================================
   CCSS Mathematics Authentic PDF Document Layout Styles
   Matching Common Core State Standards for Mathematics publication (k.pdf)
   ========================================================================== */

/* Document Presentation Mode for CCSS Math */
.curr-grid.is-ccss-doc {
  display: block;
  max-width: 62rem;
  margin: 0 auto;
}

.curr-grid.is-ccss-doc .curr-col-main {
  width: 100%;
}

.curr-grid.is-ccss-doc .curr-col-side {
  display: none;
}

.curr-grid.is-ccss-doc .curr-card-overview {
  padding: 0;
  overflow: hidden;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  background: var(--color-bg-surface, #ffffff);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.curr-grid.is-ccss-doc .curr-card-overview .curr-card-bg-icon,
.curr-grid.is-ccss-doc .curr-card-overview > .curr-card-badge,
.curr-grid.is-ccss-doc .curr-card-overview > .curr-card-title {
  display: none;
}

.curr-grid.is-ccss-doc .curr-card-overview .curr-card-text {
  margin: 0;
  padding: 0;
}

.curr-grid.is-ccss-doc .curr-card-standards {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
  border-top: 1px dashed var(--color-border, #e5e7eb);
  background: var(--color-bg-surface, #ffffff);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.curr-grid.is-ccss-doc .curr-standard-item {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2.25rem;
}

.curr-grid.is-ccss-doc .curr-standard-item.collapsed {
  background: transparent;
  padding-bottom: 0;
}

.curr-grid.is-ccss-doc .curr-accordion-header.ccss-pdf-domain-strip {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.curr-grid.is-ccss-doc .curr-accordion-header.ccss-pdf-domain-strip:hover {
  background: #ede2e5;
  border-color: #d1bcc2;
}

.curr-grid.is-ccss-doc .curr-accordion-header.ccss-pdf-domain-strip:focus-visible {
  outline: 3px solid #7A1E28;
  outline-offset: 2px;
}

[data-theme="dark"] .curr-grid.is-ccss-doc .curr-accordion-header.ccss-pdf-domain-strip:hover {
  background: rgba(153, 27, 27, 0.32);
  border-color: rgba(239, 68, 68, 0.4);
}

.ccss-pdf-document {
  max-width: 60rem;
  margin: 0 auto 3rem auto;
  background: var(--color-bg-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  font-family: inherit;
  color: var(--color-text-base, #1f2937);
  transition: all 0.3s ease;
}

/* 1. Top Running Header Banner */
.ccss-pdf-running-header {
  background: linear-gradient(90deg, #7A1E28 0%, #8E2734 100%);
  color: #ffffff;
  padding: 0.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.ccss-pdf-page-wrapper {
  padding: 2.25rem 2.5rem;
}

@media (max-width: 768px) {
  .ccss-pdf-page-wrapper {
    padding: 1.5rem 1.25rem;
  }
}

/* Running Edge Page Stamp */
.ccss-pdf-page-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border, #f3f4f6);
  padding-bottom: 0.5rem;
}

/* 2. Cover / Section Title */
.ccss-pdf-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ccss-pdf-title-subject {
  color: #7A1E28;
  font-weight: 900;
}

.ccss-pdf-title-sep {
  color: #9ca3af;
  font-weight: 300;
}

.ccss-pdf-title-grade {
  color: var(--color-text-base, #374151);
  font-weight: 700;
}

/* Lead & Critical Areas */
.ccss-pdf-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-base, #374151);
  margin-bottom: 1.5rem;
}

.ccss-pdf-critical-area {
  margin: 1.25rem 0;
  padding: 1.1rem 1.35rem;
  background: color-mix(in srgb, #7A1E28 3.5%, var(--color-bg-surface, #ffffff));
  border-left: 3.5px solid #7A1E28;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ccss-pdf-critical-area p {
  margin: 0;
}

.ccss-pdf-critical-area strong {
  color: #7A1E28;
  font-weight: 800;
}

/* 3. Grade Overview (Two-Column Layout) */
.ccss-pdf-overview-section {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border, #e5e7eb);
}

.ccss-pdf-section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: #7A1E28;
  margin: 0 0 1.5rem 0;
}

.ccss-pdf-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .ccss-pdf-overview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ccss-pdf-domain-summary-card {
  margin-bottom: 1.25rem;
}

.ccss-pdf-domain-summary-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #7A1E28;
  margin: 0 0 0.35rem 0;
}

.ccss-pdf-cluster-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.ccss-pdf-cluster-bullet-item {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--color-text-base, #374151);
  margin-bottom: 0.35rem;
}

.ccss-pdf-cluster-bullet-item::before {
  content: "•";
  position: absolute;
  left: 0.1rem;
  top: 0;
  color: #7A1E28;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Mathematical Practices Shaded Box */
.ccss-pdf-practices-card {
  background: var(--color-bg-base, #f3f4f6);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}

.ccss-pdf-practices-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #7A1E28;
  margin: 0 0 1rem 0;
  border-bottom: 2px solid color-mix(in srgb, #7A1E28 20%, transparent);
  padding-bottom: 0.5rem;
}

.ccss-pdf-practices-list {
  list-style-type: decimal;
  padding-left: 1.35rem;
  margin: 0;
}

.ccss-pdf-practices-item {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
  color: var(--color-text-base, #374151);
}

.ccss-pdf-practices-item:last-child {
  margin-bottom: 0;
}

/* 4. Standards Section (The CCSS Specification Pages) */
.ccss-pdf-standards-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border, #e5e7eb);
}

/* Domain Header Strip */
.ccss-pdf-domain-strip {
  background: #f4ecee;
  border: 1px solid #e2d2d6;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.25rem 0 1rem 0;
}

.ccss-pdf-domain-strip:first-child {
  margin-top: 0;
}

.ccss-pdf-domain-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #7A1E28;
  margin: 0;
}

.ccss-pdf-domain-code {
  background: #7A1E28;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Cluster Subheading */
.ccss-pdf-cluster-header,
.curr-cluster-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-base, #111827);
  margin: 1.5rem 0 0.85rem 0;
  padding-left: 0.25rem;
}

/* Footnotes Section */
.ccss-pdf-footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #d1d5db);
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--color-text-muted, #6b7280);
}

.ccss-pdf-footnote-item {
  margin-bottom: 0.45rem;
}

.ccss-pdf-footnote-item:last-child {
  margin-bottom: 0;
}

/* Dark Mode Theme Adaptation */
[data-theme="dark"] .ccss-pdf-document {
  background: #18181b;
  border-color: #27272a;
  color: #e4e4e7;
}

[data-theme="dark"] .ccss-pdf-running-header {
  background: linear-gradient(90deg, #991b1b 0%, #7f1d1d 100%);
}

[data-theme="dark"] .ccss-pdf-title-subject {
  color: #f87171;
}

[data-theme="dark"] .ccss-pdf-title-grade {
  color: #f4f4f5;
}

[data-theme="dark"] .ccss-pdf-section-heading,
[data-theme="dark"] .ccss-pdf-domain-summary-title,
[data-theme="dark"] .ccss-pdf-domain-title,
[data-theme="dark"] .ccss-pdf-practices-title {
  color: #f87171;
}

[data-theme="dark"] .ccss-pdf-lead,
[data-theme="dark"] .ccss-pdf-cluster-bullet-item,
[data-theme="dark"] .ccss-pdf-practices-item {
  color: #d4d4d8;
}

[data-theme="dark"] .ccss-pdf-critical-area {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}

[data-theme="dark"] .ccss-pdf-critical-area strong {
  color: #fca5a5;
}

[data-theme="dark"] .ccss-pdf-domain-strip {
  background: rgba(153, 27, 27, 0.22);
  border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .ccss-pdf-domain-code {
  background: #991b1b;
}

[data-theme="dark"] .ccss-pdf-practices-card {
  background: #27272a;
  border-color: #3f3f46;
}

[data-theme="dark"] .ccss-pdf-cluster-header,
[data-theme="dark"] .curr-cluster-heading {
  color: #f4f4f5;
}

[data-theme="dark"] .ccss-pdf-footnotes {
  border-top-color: #3f3f46;
  color: #a1a1aa;
}

