[data-dtf-platform-link] { font-family: inherit; font-size: .875rem; font-weight: 400; line-height: 1.25rem; }
[data-dtf-platform-link]:hover, [data-dtf-platform-link]:focus-visible { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
[data-dtf-platform-link] svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dtf-admin-extension { color: hsl(var(--foreground)); display: grid; gap: 32px; font-family: var(--font-sans); }
.dtf-admin-extension * { box-sizing: border-box; }
.dtf-admin-extension svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dtf-page-heading h1 { color: hsl(var(--foreground)); font-size: 30px; font-weight: 700; line-height: 36px; margin: 0; }
.dtf-page-heading p { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 20px; margin: 4px 0 0; }
.dtf-filter-grid { display: grid; grid-template-columns: minmax(520px, 1.4fr) minmax(340px, 1fr); gap: 18px; max-width: 1000px; width: 100%; }
.dtf-filter-card { align-items: center; background: hsl(var(--card)); border: 1px solid hsl(var(--card-border)); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: grid; gap: 14px; grid-template-columns: 48px 1fr; padding: 18px; }
.dtf-filter-card > svg { background: hsl(var(--muted)); border-radius: var(--radius); height: 44px; padding: 10px; width: 44px; }
.dtf-filter-card b { color: hsl(var(--card-foreground)); display: block; font-size: 14px; font-weight: 500; line-height: 20px; margin-bottom: 7px; }
.dtf-filter-card select { background: hsl(var(--background)); border: 1px solid hsl(var(--input)); border-radius: 6px; color: hsl(var(--foreground)); font-size: 14px; min-height: 38px; padding: 6px 30px 6px 10px; width: 100%; }
.dtf-filter-card select:disabled { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); cursor: not-allowed; }
.dtf-panel { background: hsl(var(--card)); border: 1px solid hsl(var(--card-border)); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.dtf-panel-title { align-items: flex-start; display: flex; gap: 9px; margin-bottom: 22px; }
.dtf-panel-title > svg { height: 20px; margin-top: 4px; width: 20px; }
.dtf-panel-title h2 { color: hsl(var(--card-foreground)); font-size: 20px; font-weight: 700; line-height: 28px; margin: 0; }
.dtf-panel-title p { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 20px; margin: 0; }
.dtf-panel-title .dtf-evaluated-count { color: hsl(var(--foreground)); font-weight: 500; margin-top: 4px; }
.dtf-average-row { margin: 0 0 19px; }
.dtf-average-label { align-items: center; display: flex; font-size: 14px; gap: 15px; justify-content: space-between; margin-bottom: 8px; }
.dtf-average-label > span { font-size: 16px; font-weight: 700; line-height: 24px; }
.dtf-progress { background: hsl(var(--muted)); border-radius: 999px; height: 8px; overflow: hidden; }
.dtf-progress span { border-radius: inherit; display: block; height: 100%; }
.is-high { color: hsl(var(--chart-3)); }
.is-medium { color: hsl(var(--chart-2)); }
.is-low { color: hsl(var(--destructive)); }
.dtf-progress span.is-high { background: hsl(var(--chart-3)); }
.dtf-progress span.is-medium { background: hsl(var(--chart-2)); }
.dtf-progress span.is-low { background: hsl(var(--destructive)); }
.dtf-average-label strong, .dtf-overall strong { font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 32px; }
#dtf-history-content { display: grid; gap: 14px; }
.dtf-diagnostic { background: hsl(var(--muted) / .5); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 18px 18px 18px 42px; position: relative; }
.dtf-delete { align-items: center; background: #fff; border: 1px solid #f2a3a3; border-radius: 50%; color: #dc2626; cursor: pointer; display: flex; font-size: 21px; font-weight: 700; height: 27px; justify-content: center; left: 10px; line-height: 1; padding: 0 0 2px; position: absolute; top: 10px; width: 27px; }
.dtf-delete:hover, .dtf-delete:focus-visible { background: #dc2626; color: #fff; outline: none; }
.dtf-delete:disabled { cursor: wait; opacity: .5; }
.dtf-diagnostic-head { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.dtf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.dtf-badges span { background: hsl(var(--muted)); border-radius: 4px; color: hsl(var(--foreground)); font-size: 12px; padding: 3px 8px; }
.dtf-user-copy h3 { font-size: 16px; font-weight: 500; line-height: 24px; margin: 0 0 2px; }
.dtf-user-copy p, .dtf-user-copy time { color: hsl(var(--muted-foreground)); display: block; font-size: 14px; line-height: 20px; margin: 0 0 2px; }
.dtf-overall { border-left: 1px solid hsl(var(--border)); min-width: 150px; padding-left: 18px; text-align: right; }
.dtf-overall span { color: hsl(var(--muted-foreground)); display: block; font-size: 14px; font-weight: 500; line-height: 20px; margin-bottom: 3px; }
.dtf-pillar-grid { border-top: 1px solid hsl(var(--border)); display: grid; gap: 12px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; padding-top: 15px; }
.dtf-person-pillar > div:first-child { align-items: center; display: flex; font-size: 14px; gap: 10px; justify-content: space-between; margin-bottom: 5px; }
.dtf-person-pillar strong { font-family: var(--font-mono); font-size: 14px; font-weight: 700; line-height: 20px; }
.dtf-progress.is-small { height: 6px; }
.dtf-loading, .dtf-empty, .dtf-error { border-radius: 8px; margin: 0; padding: 24px; text-align: center; }
.dtf-loading, .dtf-empty { background: hsl(var(--muted) / .5); color: hsl(var(--muted-foreground)); }
.dtf-error { background: #fff1f1; color: #b42318; }
.dtf-status { color: hsl(var(--foreground)); font-size: 14px; margin: -10px 0 0; min-height: 18px; }
.dtf-admin-extension.is-busy select { cursor: progress; }
@media (max-width: 980px) {
  .dtf-filter-grid, .dtf-pillar-grid { grid-template-columns: 1fr; }
  .dtf-filter-grid { max-width: none; }
}
@media (max-width: 760px) {
  .dtf-diagnostic-head { align-items: stretch; flex-direction: column; }
  .dtf-overall { border-left: 0; border-top: 1px solid #d9dfe6; padding: 10px 0 0; text-align: left; }
}
