.resources-hero {
    padding: 8rem 2.5rem 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            transition: transform var(--transition-fast);
        }

        .back-link:hover {
            transform: translateX(-4px);
            color: var(--secondary);
        }

        .resources-hero h1 {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, var(--text-primary) 40%, #1e3a8a 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .chapter-ref {
            display: inline-block;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .resources-hero p {
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 3rem;
        }

        .tool-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 4rem;
    padding: 0 2.5rem;
    box-sizing: border-box;
}

        .card-panel {
            background: var(--bg-card);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            margin-bottom: 2rem;
        }

        .card-panel h2 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        /* RACI Guide Legend */
        .raci-legend {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        @media (max-width: 768px) {
            .raci-legend {
                grid-template-columns: 1fr;
            }
        }

        .legend-card {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1.25rem;
            background: white;
        }

        .legend-badge {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            border-radius: 50%;
            font-weight: 800;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .badge-r { background: #dbeafe; color: #1e40af; }
        .badge-a { background: #fee2e2; color: #991b1b; }
        .badge-c { background: #fef3c7; color: #92400e; }
        .badge-i { background: #d1fae5; color: #065f46; }

        .legend-card h3 {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }

        .legend-card p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .table-responsive {
            overflow-x: auto;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: white;
        }

        .raci-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.9rem;
            min-width: 800px;
        }

        .raci-table th {
            background: #f1f5f9;
            color: var(--text-primary);
            font-weight: 600;
            padding: 1rem;
            border-bottom: 2px solid var(--border-color);
            font-family: var(--font-heading);
        }

        .raci-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .raci-table tr:hover {
            background: #f8fafc;
        }

        .task-input {
            width: 100%;
            border: 1px solid transparent;
            border-radius: 4px;
            padding: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-primary);
            background: transparent;
            outline: none;
            transition: all var(--transition-fast);
        }

        .task-input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px var(--primary-glow);
        }

        .raci-select {
            width: 100%;
            padding: 0.5rem;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background: white;
            font-weight: 600;
            font-size: 0.9rem;
            outline: none;
            cursor: pointer;
            text-align-last: center;
            transition: all var(--transition-fast);
        }

        .raci-select:focus {
            border-color: var(--primary);
        }

        .raci-select.sel-r { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
        .raci-select.sel-a { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
        .raci-select.sel-c { background: #fffbeb; color: #d97706; border-color: #fde68a; }
        .raci-select.sel-i { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }

        /* Role Header Customization Styles */
        .role-header-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.25rem;
        }

        .role-header-input {
            width: 100%;
            background: transparent;
            border: 1px dashed transparent;
            border-radius: 6px;
            font-family: var(--font-heading);
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--text-primary);
            text-align: center;
            padding: 0.35rem 0.25rem;
            outline: none;
            transition: all var(--transition-fast);
        }

        .role-header-input:hover {
            border-color: var(--border-color);
            background: rgba(255, 255, 255, 0.8);
        }

        .role-header-input:focus {
            border-color: var(--primary);
            background: #ffffff;
            box-shadow: 0 0 0 2px var(--primary-glow);
        }

        .btn-del-role {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.2rem;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }

        .btn-del-role:hover {
            color: #ef4444;
            background: #fee2e2;
        }

        .row-action-btn {
            background: none;
            border: none;
            color: #ef4444;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: background var(--transition-fast);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .row-action-btn:hover {
            background: #fee2e2;
        }

        .actions-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .left-actions {
            display: flex;
            gap: 1rem;
        }

        .right-actions {
            display: flex;
            gap: 1rem;
        }

        /* Bibliography block */
        .bibliography-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 6rem;
    padding: 2rem 2.5rem 0;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
}

        .bibliography-section h3 {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .bibliography-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .bibliography-list li {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
            line-height: 1.5;
            text-indent: -1.5rem;
            padding-left: 1.5rem;
        }

        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: #10b981;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(10px);
            transition: all var(--transition-normal);
            pointer-events: none;
            z-index: 1000;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

.card-panel-intro { padding: 2rem; margin-bottom: 2rem; }
.col-width-35 { width: 35%; }

.th-width-12 { width: 12%; text-align: center; }
.th-width-5 { width: 5%; text-align: center; }
.btn-raci-action { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-icon-svg { margin-right: 0.5rem; vertical-align: middle; }
