/* Shared styles for the portfolio dashboards (scoped to .k-page). */
.k-page { font-family: var(--font-anthropic-sans); max-width: 78rem; margin-inline: auto; }
.k-page h1 { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: var(--cds-font-size-title); margin: 0 0 var(--cds-gap-xs); }
.k-page .k-lead { font-size: var(--cds-font-size-body); color: var(--color-fg); margin: 0 0 var(--cds-gap-lg); max-width: 60rem; line-height: 1.5; }
.k-page .k-lead b, .k-page .k-tile b { font-weight: 600; }
.k-page h2 { font-size: var(--cds-font-size-heading); font-weight: var(--cds-font-weight-medium); margin: var(--cds-gap-xl) 0 var(--cds-gap-sm); }
.k-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--cds-gap-md); margin-bottom: var(--cds-gap-lg); }
.k-tile { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); }
.k-tile .k-label { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin: 0 0 var(--cds-gap-xs); }
.k-tile .k-big { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: var(--cds-font-size-title); font-variant-numeric: tabular-nums; margin: 0; }
.k-tile .k-sub { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin: var(--cds-gap-xs) 0 0; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: var(--cds-gap-md); }
.k-card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); min-width: 0; }
.k-card h3 { font-size: var(--cds-font-size-heading); font-weight: var(--cds-font-weight-medium); margin: 0 0 var(--cds-gap-xs); }
.k-card .k-note { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin: 0 0 var(--cds-gap-md); line-height: 1.45; }
.k-chart { min-height: 240px; }
.k-chart.k-tall { min-height: 320px; }
.k-tip { position: absolute; z-index: 5; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); border-radius: var(--cds-radius);
  box-shadow: var(--cds-shadow-popover); padding: var(--cds-pad-xs) var(--cds-pad-sm); font-size: var(--cds-font-size-caption); pointer-events: none; min-width: 9rem; }
.k-tip-head { color: var(--cds-text-secondary); margin-bottom: 2px; }
.k-tip-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.k-tip-row span:nth-child(2), .k-tip-row span:first-child:not(.k-sw) { flex: 1; }
.k-tip-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.k-sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.k-failed { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: inherit; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.k-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--color-bad); }
.k-table-wrap { max-height: 26rem; overflow: auto; }
.k-table { width: 100%; border-collapse: collapse; font-size: var(--cds-font-size-caption); font-variant-numeric: tabular-nums; }
.k-table th { position: sticky; top: 0; background: var(--color-panel); text-align: left; font-weight: var(--cds-font-weight-medium); color: var(--color-fg-muted);
  border-bottom: 1px solid var(--color-border-line); padding: var(--cds-pad-xs) var(--cds-pad-sm); }
.k-table td { border-bottom: 1px solid var(--color-border-line); padding: var(--cds-pad-xs) var(--cds-pad-sm); }
.k-table .k-num, .k-table th.k-num { text-align: right; }
.k-foot { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin-top: var(--cds-gap-xl); line-height: 1.5; }
.k-foot a { color: inherit; }
[data-dash-source-state=refreshing] { opacity: .5; transition: opacity var(--cds-dur-slow); }
