/* Scoped overview usage analysis; inherits the New API theme. */
#lh-usage-analysis{grid-column:1/-1;min-width:0;color:var(--card-foreground,var(--foreground,#18181b));background:var(--card,#fff);border:1px solid var(--border,#e4e4e7);border-radius:16px;box-shadow:0 1px 2px #00000008;font-size:14px;overflow:hidden}
#lh-usage-analysis *{box-sizing:border-box}
#lh-usage-analysis [hidden]{display:none!important}
#lh-usage-analysis button,#lh-usage-analysis input,#lh-usage-analysis select{font:inherit;color:inherit}
#lh-usage-analysis button{cursor:pointer}
#lh-usage-analysis button:disabled{opacity:.5;cursor:default}
#lh-usage-analysis :is(button,select,input):focus-visible{outline:2px solid var(--ring,#a1a1aa);outline-offset:3px}
#lh-usage-analysis .lhua-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--border,#e4e4e7)}
#lh-usage-analysis .lhua-title{display:flex;align-items:center;gap:11px;flex-shrink:0}
#lh-usage-analysis .lhua-icon{display:grid;place-items:center;width:36px;height:36px;background:#a855f714;color:#c05cde;border-radius:12px}
#lh-usage-analysis h3{font-size:14px;font-weight:600;line-height:20px;margin:0}
#lh-usage-analysis .lhua-subtitle{color:var(--muted-foreground,#71717a);font-size:12px;line-height:18px;margin:3px 0 0}
#lh-usage-analysis .lhua-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
#lh-usage-analysis :is(select,input){background:var(--background,#fff);border:1px solid var(--border,#e4e4e7);border-radius:8px;min-height:36px;padding:6px 10px;font-size:12px;max-width:100%}
#lh-usage-analysis select{max-width:225px;cursor:pointer}
#lh-usage-analysis .lhua-refresh{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border,#e4e4e7);border-radius:9px;background:var(--background,#fff);flex-shrink:0}
#lh-usage-analysis .lhua-refresh:hover{background:var(--muted,#f4f4f5)}
#lh-usage-analysis .lhua-dates{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid var(--border,#e4e4e7);font-size:12px;color:var(--muted-foreground,#71717a)}
#lh-usage-analysis .lhua-apply{border:1px solid var(--border,#e4e4e7);border-radius:8px;padding:7px 12px;background:var(--foreground,#18181b);color:var(--background,#fff)}
#lh-usage-analysis .lhua-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px 0}
#lh-usage-analysis .lhua-tabs{display:flex;padding:3px;background:var(--muted,#f4f4f5);border-radius:9px;gap:2px}
#lh-usage-analysis .lhua-tabs button{border:0;background:transparent;color:var(--muted-foreground,#71717a);border-radius:6px;padding:5px 11px;font-size:12px;white-space:nowrap}
#lh-usage-analysis .lhua-tabs button[aria-pressed=true]{background:var(--background,#fff);color:var(--foreground,#18181b);box-shadow:0 1px 3px #0000000d;font-weight:500}
#lh-usage-analysis .lhua-content{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:20px}
#lh-usage-analysis .lhua-chart{display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:0;gap:14px}
#lh-usage-analysis .lhua-ring{width:210px;height:210px;position:relative}
#lh-usage-analysis .lhua-ring svg{display:block;width:100%;height:100%;overflow:visible}
#lh-usage-analysis .lhua-ring circle{transition:stroke-dasharray .2s ease}
#lh-usage-analysis .lhua-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:43px;text-align:center;gap:5px;pointer-events:none}
#lh-usage-analysis .lhua-center span{color:var(--muted-foreground,#71717a);font-size:12px}
#lh-usage-analysis .lhua-center strong{font-size:22px;font-weight:650;line-height:28px;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
#lh-usage-analysis .lhua-caption{color:var(--muted-foreground,#71717a);font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
#lh-usage-analysis .lhua-table-wrap{min-width:0;overflow:auto;border:1px solid var(--border,#e4e4e7);border-radius:12px;max-height:353px;scrollbar-width:thin}
#lh-usage-analysis table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
#lh-usage-analysis :is(th,td){padding:12px 14px;border-bottom:1px solid var(--border,#e4e4e7)}
#lh-usage-analysis th{font-weight:500;color:var(--muted-foreground,#71717a);background:var(--card,#fff);position:sticky;top:0;z-index:1}
#lh-usage-analysis tbody tr:last-child td{border-bottom:0}
#lh-usage-analysis th:not(:first-child),#lh-usage-analysis td:not(:first-child){text-align:right}
#lh-usage-analysis tbody tr:hover{background:var(--muted,#f4f4f5)}
#lh-usage-analysis .lhua-name{display:flex;align-items:center;gap:8px;max-width:290px}
#lh-usage-analysis .lhua-name span:last-child{overflow:hidden;text-overflow:ellipsis}
#lh-usage-analysis .lhua-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
#lh-usage-analysis .lhua-footer{padding:0 20px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--muted-foreground,#71717a);font-size:11px;line-height:18px}
#lh-usage-analysis .lhua-note{margin:0}
#lh-usage-analysis .lhua-status{color:var(--muted-foreground,#71717a);font-size:12px;line-height:20px;padding:48px 20px;text-align:center}
#lh-usage-analysis .lhua-status button{margin:12px auto 0;display:block;background:var(--background,#fff);border:1px solid var(--border,#e4e4e7);border-radius:8px;padding:6px 14px}
#lh-usage-analysis .lhua-warning{color:var(--muted-foreground,#71717a);font-size:12px;line-height:20px;padding:10px 20px;border-bottom:1px solid var(--border,#e4e4e7)}
#lh-usage-analysis .lhua-group-caption{font-size:11px;line-height:18px;max-width:225px;color:var(--muted-foreground,#71717a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1600px){#lh-usage-analysis .lhua-content{grid-template-columns:280px minmax(0,1fr)}#lh-usage-analysis .lhua-ring{width:230px;height:230px}}
@media(max-width:900px){#lh-usage-analysis .lhua-head{align-items:flex-start}#lh-usage-analysis .lhua-content{grid-template-columns:190px minmax(0,1fr);gap:14px}#lh-usage-analysis .lhua-ring{width:175px;height:175px}#lh-usage-analysis .lhua-center{padding:30px}#lh-usage-analysis .lhua-center strong{font-size:19px}#lh-usage-analysis :is(th,td){padding:11px}}
@media(max-width:640px){#lh-usage-analysis .lhua-head{padding:16px;gap:14px}#lh-usage-analysis .lhua-controls{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px}#lh-usage-analysis .lhua-controls select{width:100%;max-width:none;min-width:0}#lh-usage-analysis .lhua-scope{grid-column:1/-1}#lh-usage-analysis .lhua-toolbar{padding:14px 16px 0}#lh-usage-analysis .lhua-content{display:flex;flex-direction:column;padding:20px 16px 16px;gap:20px}#lh-usage-analysis .lhua-ring{width:195px;height:195px}#lh-usage-analysis .lhua-center strong{font-size:22px}#lh-usage-analysis table{min-width:530px}#lh-usage-analysis .lhua-footer{padding:0 16px 14px}#lh-usage-analysis .lhua-dates{padding:12px 16px}#lh-usage-analysis .lhua-dates input{min-width:0;max-width:150px}}
@media(prefers-reduced-motion:reduce){#lh-usage-analysis .lhua-ring circle{transition:none}}
