.qa-dash-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-surface-base);
    border: var(--border-width-1) solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    height: 100%;
    box-sizing: border-box;
    font-family: var(--font-family-sans);
}

.qa-dash-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
}

.qa-dash-tile-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

.qa-dash-tile-value-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-height: 56px;
    justify-content: center;
}

.qa-dash-tile-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.qa-dash-tile-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
}
.qa-dash-tile-trend--up { color: var(--color-text-success); }
.qa-dash-tile-trend--down { color: var(--color-text-danger); }
.qa-dash-tile-trend--neutral { color: var(--color-text-muted); }

.qa-dash-tile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border-subtle);
}

.qa-dash-tile-chip {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-decelerate),
                color var(--duration-fast) var(--ease-decelerate),
                border-color var(--duration-fast) var(--ease-decelerate);
}
.qa-dash-tile-chip:hover {
    background: var(--color-surface-muted);
    color: var(--color-text-primary);
}
.qa-dash-tile-chip--active {
    background: var(--color-text-accent);
    border-color: var(--color-text-accent);
    color: var(--palette-neutral-0);
}
.qa-dash-tile-chip--active:hover {
    background: var(--color-text-accent);
    color: var(--palette-neutral-0);
}

.qa-dash-panel {
    display: flex;
    flex-direction: column;
    background: var(--color-surface-base);
    border: var(--border-width-1) solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.qa-dash-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
}

.qa-dash-panel-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.qa-dash-panel-sub {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.qa-dash-panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qa-dash-panel-body {
    padding: var(--space-4);
    flex: 1;
    min-width: 0;
}

.qa-dash-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.chart-wrap--sm { height: 240px; }
.chart-wrap--md { height: 280px; }
.chart-wrap--lg { height: 320px; }
