            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            padding: 20px;
            background: #f5f5f5;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        h1 {
            margin-bottom: 30px;
            color: #333;
        }

        h2 {
            color: #333;
            margin-bottom: 15px;
        }

        .team-management {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .team-input-row {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            align-items: flex-end;
        }

        .team-input-row input {
            flex: 1;
        }

        .config-section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .config-row {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
            align-items: center;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        label {
            font-weight: 600;
            color: #555;
            font-size: 14px;
        }

        input, select, button {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #4CAF50;
        }

        input:disabled {
            background: #e8e8e8;
            color: #666;
            cursor: not-allowed;
        }

        button {
            background: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.3s;
        }

        button:hover {
            background: #45a049;
        }

        .btn-secondary {
            background: #2196F3;
        }

        .btn-secondary:hover {
            background: #0b7dda;
        }

        .btn-danger {
            background: #f44336;
        }

        .btn-danger:hover {
            background: #d32f2f;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #ddd;
            flex-wrap: wrap;
        }

        .tab {
            padding: 12px 20px;
            background: #f0f0f0;
            border: none;
            cursor: pointer;
            border-radius: 5px 5px 0 0;
            font-weight: 600;
            transition: all 0.3s;
        }

        .tab:hover {
            background: #e0e0e0;
        }

        .tab.active {
            background: #4CAF50;
            color: white;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
        }

        .card.team-card {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .card h3 {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 10px;
        }

        .card .value {
            font-size: 32px;
            font-weight: bold;
        }

        .module-tag {
            display: inline-block;
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            margin: 2px;
            font-weight: 600;
        }

        .developers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .developer-card {
            background: white;
            border: 2px solid #e0e0e0;
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .developer-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .developer-card h3 {
            margin-bottom: 10px;
            color: #333;
            font-size: 16px;
        }

        .capacity-bar {
            background: #e0e0e0;
            height: 20px;
            border-radius: 10px;
            overflow: hidden;
            margin: 10px 0;
        }

        .capacity-fill {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #45a049);
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: bold;
        }

        .capacity-fill.warning {
            background: linear-gradient(90deg, #ff9800, #f57c00);
        }

        .capacity-fill.danger {
            background: linear-gradient(90deg, #f44336, #d32f2f);
        }

        .capacity-info {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #666;
            margin-top: 5px;
        }

        .tickets-list {
            margin-top: 10px;
            font-size: 12px;
        }

        .ticket-item {
            background: #f5f5f5;
            padding: 5px 8px;
            margin: 5px 0;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
        }

        .add-ticket-section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .add-ticket-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            align-items: flex-end;
        }

        .add-ticket-form .form-group {
            min-width: 150px;
        }

        .add-ticket-form .full-width {
            grid-column: 1 / -1;
        }

        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 5px;
        }

        .badge-minor {
            background: #4CAF50;
            color: white;
        }

        .badge-moderate {
            background: #2196F3;
            color: white;
        }

        .badge-major {
            background: #ff9800;
            color: white;
        }

        .badge-critical {
            background: #f44336;
            color: white;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background: #f5f5f5;
            font-weight: 600;
            color: #333;
        }

        tr:hover {
            background: #fafafa;
        }

        .delete-btn {
            background: #f44336;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .delete-btn:hover {
            background: #d32f2f;
        }

        .actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .actions button {
            padding: 12px 24px;
        }

        .locked-field {
            padding: 10px;
            background: #e8e8e8;
            border-radius: 5px;
            color: #666;
            font-weight: 500;
            border: 1px solid #ccc;
        }

        .module-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            max-width: 600px;
            max-height: 70vh;
            overflow-y: auto;
            z-index: 1000;
        }

        .module-popup.active {
            display: block;
        }

        .module-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.45);
            z-index: 999;
        }

        .module-popup-overlay.active {
            display: block;
        }

        .module-checkbox-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 15px 0;
            max-height: 400px;
            overflow-y: auto;
        }

        .module-checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px;
        }

        .module-checkbox-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .module-checkbox-item label {
            cursor: pointer;
            margin: 0;
            font-size: 13px;
            font-weight: 400;
        }

        .analysis-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            max-width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            z-index: 1000;
            width: 1200px;
        }

        .analysis-popup.active {
            display: block;
        }

        .module-analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .module-analysis-card {
            background: #f9f9f9;
            border: 2px solid #e0e0e0;
            padding: 20px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .module-analysis-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-color: #4CAF50;
        }

        .module-analysis-card h4 {
            margin-bottom: 15px;
            color: #333;
            font-size: 16px;
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 8px;
        }

        .analysis-stat {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            font-size: 14px;
        }

        .analysis-stat-label {
            color: #666;
            font-weight: 600;
        }

        .analysis-stat-value {
            color: #333;
            font-weight: bold;
        }

        .developer-list {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #ddd;
        }

        .developer-list-item {
            padding: 5px 0;
            font-size: 13px;
            color: var(--muted);
        }

        .close-analysis-btn {
            position: sticky;
            top: 10px;
            float: right;
            background: #f44336;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            z-index: 10;
        }

        .close-analysis-btn:hover {
            background: #d32f2f;
        }

        .module-dropdown-wrapper {
            position: relative;
            z-index: 200;
        }

        .clear-module-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: #94a3b8;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .clear-module-btn:hover {
            background: #64748b;
        }

        .clear-module-btn.visible {
            display: flex;
        }

        .module-dropdown-list {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 250px;
            overflow-y: auto;
            background: white;
            border: 1px solid #e2e8f0;
            border-top: none;
            border-radius: 0 0 12px 12px;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            margin-top: 6px;
        }

        .module-dropdown-list.active {
            display: block;
        }

        .module-dropdown-list.drop-up {
            top: auto;
            bottom: 100%;
            margin-top: 0;
            margin-bottom: 6px;
            border-top: 1px solid #e2e8f0;
            border-bottom: none;
            border-radius: 12px 12px 0 0;
        }

        .module-dropdown-item {
            padding: 10px 12px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
            transition: background 0.2s;
        }

        .module-dropdown-item:hover {
            background: #f1f5f9;
        }

        .module-dropdown-item:last-child {
            border-bottom: none;
        }

        .module-dropdown-item.highlighted {
            background: #dbeafe;
        }

        .module-search-input {
            border-radius: 12px;
            padding-right: 35px;
        }

        .module-search-input:focus {
            border-radius: 12px 12px 0 0;
        }

        .no-results-message {
            padding: 12px;
            text-align: center;
            color: var(--muted);
            font-style: italic;
            font-size: 13px;
        }

        .module-count-indicator {
            position: sticky;
            bottom: 0;
            background: #f1f5f9;
            padding: 6px 12px;
            font-size: 11px;
            color: var(--muted);
            border-top: 1px solid #e2e8f0;
            text-align: center;
            font-weight: 600;
        }

        .module-dropdown-item mark {
            background: #fde68a;
            padding: 0 2px;
            font-weight: 600;
        }

        :root {
            --bg: #f8fafc;
            --bg-2: #eef2f7;
            --surface: #ffffff;
            --surface-alt: #f8fafc;
            --surface-muted: #eef2f7;
            --ink: #0f172a;
            --muted: #64748b;
            --primary: #2563eb;
            --primary-deep: #1d4ed8;
            --secondary: #0ea5e9;
            --secondary-deep: #0284c7;
            --accent: #14b8a6;
            --success: #16a34a;
            --warning: #f59e0b;
            --danger: #ef4444;
            --ring: rgba(37, 99, 235, 0.28);
            --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
            --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
            --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.18);
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-sm: 12px;
        }

        body {
            font-family: 'Manrope', 'Segoe UI', sans-serif;
            padding: 32px;
            background:
                radial-gradient(900px 500px at -10% -20%, rgba(37, 99, 235, 0.18), transparent 60%),
                radial-gradient(700px 420px at 110% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
                radial-gradient(620px 380px at 20% 100%, rgba(20, 184, 166, 0.14), transparent 55%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
            color: var(--ink);
            min-height: 100vh;
            line-height: 1.5;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
            background-size: 22px 22px;
            pointer-events: none;
            opacity: 0.4;
            z-index: 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: var(--surface);
            padding: 32px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            border: 1px solid #e2e8f0;
            position: relative;
            z-index: 1;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 24px;
            margin-bottom: 24px;
        }

        .eyebrow {
            text-transform: uppercase;
            letter-spacing: 0.24em;
            font-size: 12px;
            color: var(--secondary);
            font-weight: 700;
            margin-bottom: 6px;
        }

        h1 {
            margin-bottom: 8px;
            color: var(--ink);
            font-family: 'Outfit', 'Manrope', sans-serif;
            font-size: clamp(28px, 3vw, 40px);
            letter-spacing: -0.4px;
        }

        .subhead {
            color: var(--muted);
            font-size: 15px;
            max-width: 640px;
        }

        h2 {
            color: var(--ink);
            margin-bottom: 12px;
            font-size: 20px;
            font-family: 'Outfit', 'Manrope', sans-serif;
            font-weight: 600;
        }

        label {
            font-weight: 600;
            color: var(--muted);
            font-size: 13px;
        }

        input,
        select,
        button {
            padding: 11px 12px;
            border: 1px solid #e2e8f0;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-family: inherit;
            background: #f8fafc;
            color: var(--ink);
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--ring);
        }

        input:disabled {
            background: #edf2f7;
            color: #64748b;
            cursor: not-allowed;
        }

        button {
            background: linear-gradient(135deg, #3b82f6, var(--primary));
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
        }

        button:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        button:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--secondary), var(--secondary-deep));
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #0284c7, #0369a1);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger), #dc2626);
        }

        .btn-danger:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
        }

        .team-management,
        .config-section,
        .add-ticket-section {
            background: linear-gradient(135deg, #ffffff, var(--surface-alt));
            padding: 22px;
            border-radius: var(--radius-md);
            margin-bottom: 26px;
            border: 1px solid #e2e8f0;
            box-shadow: var(--shadow-sm);
        }

        .add-ticket-section {
            position: relative;
            z-index: 30;
            overflow: visible;
        }

        .ticket-filter {
            display: flex;
            gap: 16px;
            align-items: flex-end;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }

        .filter-pill {
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            color: #3730a3;
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            height: fit-content;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
            flex-wrap: wrap;
            padding-bottom: 8px;
        }

        .tab {
            padding: 10px 18px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            cursor: pointer;
            border-radius: 999px;
            font-weight: 600;
            color: var(--ink);
            transition: all 0.2s;
        }

        .tab:hover {
            background: #e2e8f0;
        }

        .tab.active {
            background: linear-gradient(135deg, #3b82f6, var(--primary));
            color: white;
            border-color: transparent;
            box-shadow: var(--shadow-sm);
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 18px;
            margin-bottom: 30px;
        }

        .card {
            --card-accent: rgba(37, 99, 235, 0.22);
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            color: var(--ink);
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid #e2e8f0;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .card::after {
            content: "";
            position: absolute;
            top: -40px;
            right: -40px;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, var(--card-accent), transparent 70%);
            opacity: 0.7;
        }

        .card.team-card {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border-color: #bfdbfe;
            --card-accent: rgba(37, 99, 235, 0.28);
        }

        .card.card-teams {
            background: linear-gradient(135deg, #ecfeff, #cffafe);
            border-color: #a5f3fc;
            --card-accent: rgba(14, 165, 233, 0.32);
        }

        .card.card-hours {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border-color: #bfdbfe;
            --card-accent: rgba(37, 99, 235, 0.28);
        }

        .card.card-allocated {
            background: linear-gradient(135deg, #fff7ed, #ffedd5);
            border-color: #fed7aa;
            --card-accent: rgba(249, 115, 22, 0.25);
        }

        .card.card-remaining {
            background: linear-gradient(135deg, #ecfdf3, #dcfce7);
            border-color: #bbf7d0;
            --card-accent: rgba(34, 197, 94, 0.25);
        }

        .card.card-tickets {
            background: linear-gradient(135deg, #fff1f2, #ffe4e6);
            border-color: #fecdd3;
            --card-accent: rgba(239, 68, 68, 0.22);
        }

        .card h3 {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
            margin-bottom: 10px;
        }

        .card .value {
            font-size: 30px;
            font-weight: 700;
        }

        .module-tag {
            display: inline-block;
            background: #e0f2fe;
            color: #0369a1;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            margin: 2px;
            font-weight: 600;
            border: 1px solid #bae6fd;
        }

        .developers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 18px;
            margin-bottom: 30px;
        }

        .developer-card {
            background: var(--surface);
            border: 1px solid #e2e8f0;
            padding: 16px;
            border-radius: var(--radius-md);
            transition: all 0.25s;
            box-shadow: var(--shadow-sm);
        }

        .developer-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-3px);
        }

        .developer-card h3 {
            margin-bottom: 10px;
            color: var(--ink);
            font-size: 16px;
        }

        .capacity-bar {
            background: #e2e8f0;
            height: 18px;
            border-radius: 999px;
            overflow: hidden;
            margin: 10px 0;
        }

        .capacity-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: bold;
        }

        .capacity-fill.warning {
            background: linear-gradient(90deg, var(--warning), #f97316);
        }

        .capacity-fill.danger {
            background: linear-gradient(90deg, var(--danger), #b91c1c);
        }

        .capacity-info {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: var(--muted);
            margin-top: 5px;
        }

        .tickets-list {
            margin-top: 10px;
            font-size: 12px;
        }

        .ticket-item {
            background: #f8fafc;
            padding: 6px 8px;
            margin: 6px 0;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            border: 1px solid #e2e8f0;
        }

        .badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            margin-left: 5px;
            text-transform: uppercase;
        }

        .badge-minor {
            background: rgba(22, 163, 74, 0.18);
            color: #15803d;
        }

        .badge-moderate {
            background: rgba(14, 165, 233, 0.2);
            color: #0369a1;
        }

        .badge-major {
            background: rgba(245, 158, 11, 0.24);
            color: #b45309;
        }

        .badge-critical {
            background: rgba(239, 68, 68, 0.2);
            color: #b91c1c;
        }

        .badge-sprint {
            background: rgba(37, 99, 235, 0.18);
            color: #1d4ed8;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: var(--surface);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        th,
        td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        th {
            background: #f1f5f9;
            font-weight: 700;
            color: var(--ink);
        }

        tr:nth-child(even) {
            background: #f8fafc;
        }

        tr:hover {
            background: #eef2f7;
        }

        .delete-btn {
            background: linear-gradient(135deg, var(--danger), #dc2626);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 11px;
        }

        .delete-btn:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
        }

        .actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .actions button {
            padding: 12px 22px;
        }

        .locked-field {
            padding: 10px;
            background: #f1f5f9;
            border-radius: var(--radius-sm);
            color: var(--muted);
            font-weight: 600;
            border: 1px solid #e2e8f0;
        }

        .module-popup,
        .analysis-popup {
            background: #ffffff;
            border-radius: var(--radius-md);
            border: 1px solid #e2e8f0;
            box-shadow: var(--shadow-lg);
        }

        .module-popup-overlay,
        .analysis-popup-overlay {
            backdrop-filter: blur(3px);
        }

        .module-analysis-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
        }

        .module-analysis-card:hover {
            box-shadow: var(--shadow-md);
            border-color: rgba(37, 99, 235, 0.4);
        }

        .module-analysis-card h4 {
            color: var(--ink);
            border-bottom: 2px solid rgba(37, 99, 235, 0.5);
        }

        .analysis-stat-label {
            color: var(--muted);
        }

        .analysis-stat-value {
            color: var(--ink);
        }

        .developer-list {
            border-top: 1px solid #e2e8f0;
        }

        .close-analysis-btn {
            background: linear-gradient(135deg, var(--danger), #dc2626);
        }

        .close-analysis-btn:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
        }

        .module-dropdown-list {
            border: 1px solid #e2e8f0;
            box-shadow: var(--shadow-md);
        }

        .module-dropdown-item {
            border-bottom: 1px solid #e2e8f0;
        }

        .module-dropdown-item:hover {
            background: #f1f5f9;
        }

        .module-dropdown-item.highlighted {
            background: #dbeafe;
        }

        .module-dropdown-item mark {
            background: #fde68a;
        }

        .module-count-indicator {
            background: #f1f5f9;
            color: var(--muted);
        }

        .tab-content.active {
            animation: liftIn 0.35s ease both;
        }

        .summary-cards .card,
        .team-management,
        .config-section,
        .add-ticket-section,
        .developer-card,
        .module-analysis-card {
            animation: liftIn 0.45s ease both;
        }

        .summary-cards .card:nth-child(1) {
            animation-delay: 0.05s;
        }

        .summary-cards .card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .summary-cards .card:nth-child(3) {
            animation-delay: 0.15s;
        }

        .summary-cards .card:nth-child(4) {
            animation-delay: 0.2s;
        }

        .summary-cards .card:nth-child(5) {
            animation-delay: 0.25s;
        }

        @keyframes liftIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 900px) {
            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .team-input-row {
                flex-direction: column;
                align-items: stretch;
            }

            .actions {
                justify-content: flex-start;
            }
        }

        @media (max-width: 640px) {
            body {
                padding: 16px;
            }

            .container {
                padding: 20px;
            }

            .tabs {
                gap: 6px;
            }

            .tab {
                padding: 8px 14px;
                font-size: 13px;
            }

            .developers-grid,
            .module-analysis-grid {
                grid-template-columns: 1fr;
            }

            .summary-cards {
                grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            }

            .ticket-filter {
                align-items: stretch;
            }

            .filter-pill {
                width: 100%;
                text-align: center;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition: none !important;
            }
