.dashboard {
    display: grid;
    gap: 0;
}

.team-row-detail[hidden] {
    display: none;
}

.team-row-detail td {
    padding: 0 12px 20px;
    border-bottom: 1px solid var(--border);
}

.team-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-900);
}

.team-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.team-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.team-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.team-actions .btn {
    white-space: nowrap;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--color-gray-900);
}

.modal-close {
    border: none;
    background: var(--color-gray-100);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.file-field {
    display: grid;
    gap: 6px;
}

.file-field label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-gray-700);
}

.file-field input {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-size: 14px;
}

.file-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.helper-text {
    font-size: 12px;
    color: var(--muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.status-message {
    font-size: 13px;
    color: #b42318;
}

.analysis-panel {
    background: var(--surface-muted);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: grid;
    gap: 16px;
    margin: 0;
}

.analysis-panel[hidden] {
    display: none;
}

.analysis-summary {
    display: grid;
    gap: 12px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.summary-block {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border);
}

.summary-block h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-block p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-gray-900);
}

.summary-block ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    color: var(--ink);
    font-size: 13px;
}

.analysis-tables {
    display: grid;
    gap: 16px;
}

.analysis-table {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
}

.analysis-table h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.analysis-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.analysis-table th,
.analysis-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
}

.analysis-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.analysis-table tbody tr:last-child td {
    border-bottom: none;
}

.analysis-table .data-table col:nth-child(1) { width: 48%; }
.analysis-table .data-table col:nth-child(2) { width: 16%; }
.analysis-table .data-table col:nth-child(3) { width: 36%; }

.analysis-table .data-table th:nth-child(2),
.analysis-table .data-table td:nth-child(2),
.analysis-table .data-table th:nth-child(3),
.analysis-table .data-table td:nth-child(3) {
    text-align: right;
}

.analysis-table .data-table td:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.analysis-table .data-table td:nth-child(3) .bar-track {
    width: 100%;
}

.bar {
    height: 6px;
    background: var(--accent);
    border-radius: 999px;
}

.bar-track {
    width: 100%;
    height: 6px;
    background: #e0e7ff;
    border-radius: 999px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    display: block;
    font-size: 16px;
    color: var(--color-gray-700);
    margin-bottom: 6px;
}
