.dashboard-hero {
    position: relative;
    overflow: hidden;
}
.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 65%);
    pointer-events: none;
}
.dashboard-hero .page-hero__meta,
.dashboard-hero .hero-actions,
.dashboard-hero .metric-grid {
    position: relative;
    z-index: 2;
}
.dashboard-hero .page-hero__meta::after {
    content: "";
    position: absolute;
    inset: -32px -32px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 28px;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(30px);
    z-index: -1;
}
.section-block.team-console {
    gap: 32px;
    padding: clamp(32px, 5vw, 40px);
}
.team-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.team-field {
    position: relative;
    min-height: 580px;
    border-radius: 28px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.team-field-header {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow-sm);
    z-index: 3;
}
.field-control-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.play-selector {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.play-selector:hover {
    border-color: var(--accent-strong);
    background: var(--surface-muted);
}
.play-selector:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.lens-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.lens-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.lens-toggle.active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.35);
}
.simulation-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.simulation-reset:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.simulation-reset:disabled {
    opacity: 0.5;
    box-shadow: none;
}
.formation-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
#team-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
}
#team-canvas.drag-over {
    filter: none;
    box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.22);
}
.callout {
    position: absolute;
    inset: auto 24px 24px 24px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}
.drop-hint {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-strong);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.drop-hint.active {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}
#formation-tooltip {
    position: fixed;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translate3d(0, -6px, 0);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}
#formation-tooltip.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
#formation-tooltip .tooltip-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}
#formation-tooltip .tooltip-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5f5;
}
#formation-tooltip .tooltip-body {
    margin-top: 6px;
    font-size: 12px;
}
.team-insights-fullwidth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}
.team-insights-fullwidth > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.team-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}
.team-insights > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.team-insights h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 600;
}
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.insight-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.insight-item.preview-active {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-sm);
}
.insight-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.insight-metric {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}
.radar-shell {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}
canvas#gap-radar {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    display: block;
}
.radar-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    align-items: flex-start;
}
.radar-legend > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.radar-legend .chip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.matrix-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.matrix-filter {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.matrix-filter.active {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--accent-strong);
}
.heatmap-matrix {
    display: grid;
    grid-template-columns: 120px repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    max-width: 100%;
    overflow-x: auto;
}
.heatmap-matrix header,
.heatmap-matrix .cell {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    min-height: 60px;
    justify-content: center;
}
.heatmap-matrix header {
    align-items: flex-start;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.heatmap-matrix .cell strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.depth-stack {
    display: grid;
    gap: 12px;
}
.depth-card {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.depth-card .meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.depth-card .meta span {
    font-size: 12px;
    color: var(--text-muted);
}
.depth-card .value {
    font-weight: 600;
    font-size: 20px;
}
.roster-board {
    display: grid;
    gap: 32px;
}
.roster-card {
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.player-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
}
.player-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}
.player-card .meta {
    font-size: 12px;
    color: var(--text-muted);
}
.player-card .metrics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.player-card .metric {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.player-card .inspect-btn {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.player-card .inspect-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.playlist-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    background: var(--surface-muted);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow-sm);
}
.playlist-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.playlist-header h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.playlist-controls {
    display: inline-flex;
    gap: 10px;
}
.playlist-controls button,
.playlist-modal-actions button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.playlist-controls button.secondary,
.playlist-modal-actions button.secondary {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-subtle);
}
.playlist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.playlist-item {
    border-radius: 18px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.playlist-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.playlist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.playlist-tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: var(--accent-strong);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.playlist-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.playlist-actions button {
    flex: 1;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-strong);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.playlist-actions button.danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}
.playlist-empty {
    padding: 22px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    display: none;
}
.playlist-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.playlist-analytics-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.playlist-analytics-item span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.playlist-analytics-item strong {
    font-size: 20px;
    color: var(--text);
}
.playlist-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.playlist-modal,
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}
.modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}
.modal-backdrop.open {
    display: flex;
}
.playlist-modal {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    width: min(440px, 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.playlist-modal header h3 {
    margin: 0;
}
.playlist-modal header p {
    margin: 0;
    color: var(--text-subtle);
}
.playlist-modal form {
    display: grid;
    gap: 12px;
}
.playlist-modal label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.playlist-modal input,
.playlist-modal textarea,
.playlist-modal select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font: inherit;
    color: var(--text);
}
.playlist-modal textarea {
    resize: vertical;
    min-height: 120px;
}
.playlist-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.playlist-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    color: #f8fafc;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none;
    z-index: 1300;
}
.playlist-toast.show {
    display: inline-flex;
}
.timeline {
    display: grid;
    gap: 12px;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}
.detail-body-right .timeline-step {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}
.timeline-step span:first-child {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.detail-body-right .timeline-step span:first-child {
    color: rgba(148, 163, 184, 0.9);
}
.detail-body-right .timeline-step span:last-child {
    color: rgba(255, 255, 255, 0.85);
}
.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1300;
}
.detail-overlay.open,
.detail-overlay.active {
    display: flex;
}
.detail-panel {
    width: min(1200px, 96%);
    max-height: 92vh;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.detail-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    opacity: 0.8;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.detail-close:hover {
    opacity: 1;
    background: white;
    transform: scale(1.05);
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.detail-header h3 {
    margin: 4px 0 0 0;
    font-size: 20px;
    font-weight: 700;
}
.detail-identity {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-weight: 700;
}
.fit-score {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(37, 99, 235, 1) 0%, rgba(99, 102, 241, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.detail-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    height: calc(92vh - 70px);
    min-height: 500px;
    position: relative;
    flex: 1;
}
.detail-body-left {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
}
.detail-body-right {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 360px;
    max-height: calc(100% - 180px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 15;
}
.detail-panel .metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (max-width: 1024px) {
    .detail-body-right {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        height: 50%;
        max-height: 50%;
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.3);
    }
}
@media (max-width: 768px) {
    .detail-panel .metric-grid {
        grid-template-columns: 1fr;
    }
    .detail-body-right {
        height: 60%;
        max-height: 60%;
    }
}
.metric-chip {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}
.detail-body-right .metric-chip {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}
.metric-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}
.detail-body-right .metric-chip:hover {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}
.metric-chip span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 600;
}
.detail-body-right .metric-chip span {
    color: rgba(148, 163, 184, 0.9);
}
.metric-chip strong {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.detail-body-right .metric-chip strong {
    color: rgba(255, 255, 255, 0.95);
}
.detail-section-title {
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.25);
}
.detail-body-right .detail-section-title {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(148, 163, 184, 0.3);
}
.avatar-controls {
    display: none;
}
.avatar-controls button {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: white;
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.avatar-controls button:hover {
    background: var(--surface-muted);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.avatar-controls button.active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.5);
    color: var(--accent-strong);
}
.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.avatar-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
}
#avatar-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    position: relative;
    z-index: 1;
}
#avatar-canvas:active {
    cursor: grabbing;
}
.avatar-fallback {
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.hidden {
    display: none !important;
}
.slot-cycle {
    display: grid;
    gap: 14px;
    border-radius: 18px;
    padding: 16px 20px;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin: 24px 40px 0 40px;
    position: relative;
    z-index: 20;
}
.cycle-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.cycle-tab {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.cycle-tab:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
}
.cycle-tab.active {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.18);
    color: var(--accent-strong);
}
.cycle-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.cycle-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
}
.cycle-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}
.cycle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.accessibility-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-subtle);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}
.accessibility-panel {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 260px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1500;
}
.accessibility-panel.open {
    display: flex;
}
.accessibility-panel h3 {
    margin: 0;
    font-size: 15px;
}
.accessibility-panel label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.accessibility-panel select,
.accessibility-panel input[type="checkbox"] {
    margin-left: 12px;
}
.dual-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.freshness-table {
    width: 100%;
    border-collapse: collapse;
}
.freshness-table th,
.freshness-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    text-align: left;
    vertical-align: top;
}
.freshness-table th {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.freshness-table td .freshness-contact {
    display: block;
    font-size: 12px;
    color: var(--accent-strong);
    text-decoration: none;
}
.freshness-fallback {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.team-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.team-status-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-status-card span {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.team-status-card strong {
    font-size: 24px;
}
@media (max-width: 1200px) {
    .team-insights {
        grid-template-columns: 1fr;
    }
    .radar-shell {
        flex-direction: column;
        gap: 20px;
    }
    canvas#gap-radar {
        width: 240px;
        height: 240px;
    }
    .radar-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 960px) {
    .team-field {
        min-height: 420px;
    }
    .dual-column {
        grid-template-columns: 1fr;
    }
}
.trait-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.trait-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}
.trait-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-sm);
}
.trait-card-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 600;
}
.trait-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.trait-card-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-top: 2px;
}
.trait-card-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}
.trait-card-fill.excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}
.trait-card-fill.good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.trait-card-status {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (max-width: 960px) {
    .trait-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
