/* TokenHub uses the same semantic tokens and density as the billing workspace. */
.th-product{container-type:inline-size;color:var(--foreground);font:14px/1.6 var(--font-sans);font-variant-numeric:tabular-nums;min-width:0}
.th-product *{box-sizing:border-box}.th-product .th-shell{max-width:1480px;margin:auto;padding:28px 32px 64px;min-width:0}#tab-tokenhub .th-shell{padding:0;max-width:none}
.th-product h1{font-size:24px;font-weight:650;letter-spacing:-.5px;line-height:1.4;margin:5px 0 6px}.th-product h2{font-size:15px;line-height:1.5;font-weight:650;margin:0}.th-product h3{font-size:12px;font-weight:600;margin:20px 0 10px}.th-product p{margin:5px 0}.th-product .th-muted{color:var(--muted-foreground);font-size:12px;line-height:1.7}.th-product .th-header,.th-product .th-section-title,.th-product .th-source,.th-product .th-toolbar,.th-product .th-pager,.th-product .th-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.th-product .th-header{align-items:center;gap:20px;margin-bottom:20px}.th-product .th-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}.th-product .th-eyebrow{font-size:11px;color:var(--muted-foreground);display:flex;align-items:center;gap:8px}.th-product .th-eyebrow span{border-left:1px solid var(--border);padding-left:8px}.th-product a{color:var(--primary);text-decoration:none;font-size:12px;white-space:nowrap}
.th-product button,.th-product select,.th-product input{font:inherit;font-size:12px;color:var(--foreground);background:var(--card);border:1px solid var(--border);border-radius:7px;padding:7px 11px;line-height:1.6}.th-product button{cursor:pointer;white-space:nowrap}.th-product button:hover{background:var(--secondary)}.th-product button:disabled{opacity:.5;cursor:default}.th-product button:focus-visible,.th-product select:focus-visible,.th-product input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.th-product .th-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}.th-product .th-primary:hover{filter:brightness(.95);background:var(--primary)}
.th-product .th-source{color:var(--muted-foreground);font-size:11px;padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);flex-wrap:wrap}.th-product .th-source select{padding:5px 9px}.th-product .th-notice{font-size:12px;color:var(--muted-foreground);margin:11px 0 18px;line-height:1.8}.th-product.th-historical .th-notice{color:var(--warning-foreground);background:var(--secondary);padding:10px 12px;border-radius:7px}.th-product .th-error{color:var(--destructive)}
.th-product .th-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.th-product .th-metric{background:var(--card);border:1px solid var(--border);padding:18px 20px;border-radius:10px;min-width:0}.th-product .th-metric>span{font-size:12px;font-weight:500}.th-product .th-metric strong{display:block;font-size:29px;letter-spacing:-.8px;line-height:1.25;margin:12px 0 9px;font-weight:650;overflow-wrap:anywhere}.th-product .th-metric small{display:block;color:var(--muted-foreground);font-size:11px}.th-product .th-health{display:flex;flex-wrap:wrap;gap:0;padding:16px 0 21px}.th-product .th-health>div{display:flex;align-items:baseline;gap:8px;padding:0 18px;border-right:1px solid var(--border);font-size:12px}.th-product .th-health>div:first-child{padding-left:0}.th-product .th-health>div:last-child{border:0}.th-product .th-health span,.th-product .th-health small{color:var(--muted-foreground);font-size:11px}.th-product .th-health strong{font-size:14px;font-weight:600}
.th-product .th-panel{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:20px;min-width:0}.th-product .th-trend-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr);gap:16px;margin-bottom:16px}.th-product .th-secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.th-product .th-section-title{align-items:flex-start;margin-bottom:12px;flex-wrap:wrap}.th-product .th-section-title .th-muted{margin-top:4px}.th-product .th-chart{height:265px;width:100%;min-width:0}.th-product .th-chart-small{height:200px}.th-product .th-chart-caption{font-size:11px;color:var(--muted-foreground);padding-top:8px;border-top:1px solid var(--border)}.th-product .th-inline-value{font-weight:600;font-size:15px;color:var(--primary)}.th-product .th-bar-row{margin:13px 0}.th-product .th-bar-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;gap:12px;margin-bottom:6px}.th-product .th-bar-row strong{font-weight:500}.th-product .th-bar-row small{font-size:11px;color:var(--muted-foreground);padding-left:8px}.th-product .th-bar-track{height:5px;border-radius:4px;background:var(--secondary);overflow:hidden}.th-product .th-bar-track i{height:100%;display:block;border-radius:4px;background:var(--primary)}.th-product .th-chip-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.th-product .th-chip-list>span{background:var(--secondary);border-radius:5px;padding:5px 8px;font-size:11px;color:var(--muted-foreground)}.th-product .th-chip-list b{color:var(--foreground);font-weight:600;margin-left:6px}.th-product .th-feature{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--border);font-size:12px}.th-product .th-feature:last-child{border:0}.th-product .th-feature strong{font-weight:600}.th-product .th-feature small{color:var(--muted-foreground);font-size:11px}
.th-product .th-tabs{display:flex;gap:22px;overflow:auto;border-bottom:1px solid var(--border);margin:14px 0}.th-product .th-tabs button{border:0;border-radius:0;background:transparent;padding:10px 0;color:var(--muted-foreground);border-bottom:2px solid transparent}.th-product .th-tabs button.th-tab-active{border-bottom-color:var(--primary);color:var(--primary);font-weight:600}.th-product .th-tabs span{display:inline-block;font-size:10px;border-radius:4px;padding:1px 5px;background:var(--secondary);margin-left:5px}.th-product .th-toolbar{flex-wrap:wrap;margin:16px 0}.th-product .th-toolbar>input{width:310px;max-width:100%}.th-product .th-check{display:flex;align-items:center;gap:6px;color:var(--muted-foreground);font-size:11px;white-space:nowrap}.th-product .th-check input{accent-color:var(--primary)}
.th-product .th-table-wrap{max-height:610px;overflow:auto;border:1px solid var(--border);border-radius:8px;position:relative}.th-product table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;white-space:nowrap;line-height:1.6}.th-product th{position:sticky;top:0;z-index:2;background:var(--secondary);text-align:left;font-weight:500;color:var(--muted-foreground)}.th-product th,.th-product td{padding:12px 14px;border-bottom:1px solid var(--border);max-width:245px;overflow:hidden;text-overflow:ellipsis}.th-product th button{background:none!important;border:0;padding:0;color:inherit;font-size:11px}.th-product td strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;max-width:215px}.th-product td small{display:block;color:var(--muted-foreground);font-size:10px;max-width:215px;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.th-product th:first-child,.th-product td:first-child{position:sticky;left:0;background:var(--card);z-index:1;min-width:160px}.th-product th:first-child{background:var(--secondary);z-index:3}.th-product tbody tr:hover td{background:var(--secondary)}.th-product tbody tr:last-child td{border-bottom:0}.th-product .th-link{color:var(--primary);border:0;background:transparent;padding:0}.th-product .th-badge{font-size:10px;display:inline-block;padding:3px 7px;border-radius:4px;background:var(--secondary);color:var(--muted-foreground)}.th-product .th-positive{color:var(--success);background:color-mix(in srgb,var(--success) 9%,var(--card))}.th-product .th-negative{color:var(--destructive);background:color-mix(in srgb,var(--destructive) 7%,var(--card))}.th-product .th-pager{justify-content:flex-end;margin-top:16px;color:var(--muted-foreground);font-size:11px}.th-product .th-pager>span:first-child{margin-right:auto}.th-product .th-empty{min-height:180px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted-foreground);padding:24px;text-align:center}
.th-product .th-evidence{margin-top:20px;font-size:12px}.th-product summary{cursor:pointer;font-size:12px;font-weight:500}.th-product details>summary{padding:5px 0}.th-product pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--secondary);padding:14px;border-radius:6px;max-height:440px;overflow:auto;font:11px/1.7 var(--font-mono)}.th-product .th-evidence ul{max-height:200px;overflow:auto;color:var(--muted-foreground);padding-left:20px}.th-product .th-field-tags{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0}.th-product .th-field-tags>span{border:1px solid var(--border);border-radius:5px;padding:5px 8px}.th-product .th-field-tags small{color:var(--muted-foreground)}.th-product dialog{position:fixed;inset:0;margin:auto;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:12px;width:min(860px,92vw);max-height:88vh;overflow:auto;padding:24px}.th-product dialog::backdrop{background:var(--foreground);opacity:.3}.th-product .th-fields{margin:10px 0}.th-product .th-fields>div{display:grid;grid-template-columns:minmax(140px,28%) minmax(0,1fr);gap:20px;border-bottom:1px solid var(--border);padding:11px 0}.th-product .th-fields dt{font-size:12px;font-weight:500}.th-product .th-fields dt small{display:block;color:var(--muted-foreground);font:10px/1.6 var(--font-mono);overflow-wrap:anywhere;margin-top:3px}.th-product .th-fields dd{margin:0;font-size:12px;overflow-wrap:anywhere}.th-product .th-fields .th-fields>div{grid-template-columns:minmax(100px,35%) minmax(0,1fr);gap:12px}.th-product .th-related{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px}
@media(max-width:1100px){.th-product .th-trend-grid{grid-template-columns:1fr}.th-product .th-health>div{padding:4px 10px}.th-product .th-metric{padding:16px}.th-product .th-metric strong{font-size:25px}}
@media(max-width:750px){.th-product .th-shell{padding:20px 14px 40px}.th-product .th-header{align-items:flex-start;flex-direction:column}.th-product .th-metrics{grid-template-columns:1fr 1fr}.th-product .th-secondary-grid{grid-template-columns:1fr}.th-product .th-section-title{gap:10px}.th-product .th-panel{padding:15px}.th-product .th-source{align-items:flex-start;flex-direction:column;gap:8px}.th-product .th-health{gap:5px}.th-product .th-health>div{padding:3px 8px}.th-product .th-fields>div{grid-template-columns:1fr;gap:6px}.th-product h1{font-size:22px}.th-product .th-chart{height:230px}}
@media(prefers-reduced-motion:reduce){.th-product *{scroll-behavior:auto}}

body.th-standalone{margin:0;background:var(--background)}

.th-product .th-chart{position:relative}.th-product .th-chart>.th-empty{position:absolute;inset:0;background:var(--card)}


/* One responsive layer for both standalone and embedded product views. */
.th-product .th-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.th-product .th-page-main{min-width:0}.th-product .th-page-title-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.th-product .th-page-pill,.th-product .th-pill{background:var(--secondary);color:var(--primary);font-size:11px;font-weight:600;padding:3px 8px;border-radius:5px;white-space:nowrap}
.th-product .th-page-head h1{font-size:22px;margin:0}.th-product .th-page-sub{color:var(--muted-foreground);font-size:12px}
.th-product .th-block-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:16px 0 12px}.th-product .th-block-note{font-size:12px;color:var(--muted-foreground)}
.th-product .th-metric-tag{display:block;font-size:10px;font-style:normal;color:var(--muted-foreground);margin-bottom:6px}.th-product .th-metric strong{font-size:29px}
.th-product .th-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0 20px}
.th-product .th-health>div,.th-product .th-health>div:first-child,.th-product .th-health>div:last-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;min-width:0}
.th-product .th-health strong{overflow-wrap:anywhere}.th-product .th-health span,.th-product .th-health small{white-space:normal}
.th-product .th-donut{height:200px;width:100%}.th-product .th-donut-wrap{display:grid;grid-template-columns:minmax(130px,1fr) minmax(115px,1fr);align-items:center;gap:12px}
.th-product .th-donut-legend{display:flex;flex-direction:column;gap:10px;min-width:0}.th-product .th-donut-legend>div{display:grid;grid-template-columns:8px auto 1fr;align-items:center;gap:6px;font-size:11px}.th-product .th-donut-legend strong{justify-self:end}.th-product .th-donut-legend small{grid-column:2/4;color:var(--muted-foreground)}
.th-product .th-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.th-product .th-dot-0{background:var(--success)}.th-product .th-dot-1{background:var(--warning)}.th-product .th-dot-2{background:var(--destructive)}
.th-product .th-warning{color:var(--warning-foreground);background:color-mix(in srgb,var(--warning) 12%,var(--card))}
.th-product .th-coverage{margin-top:20px;font-size:12px;line-height:1.9}.th-product .th-feature{gap:12px;flex-wrap:wrap}.th-product .th-actions,.th-product .th-section-title>div{min-width:0}.th-product .th-chart{height:290px}
@container(max-width:850px){.th-product .th-trend-grid,.th-product .th-secondary-grid{grid-template-columns:minmax(0,1fr)}.th-product .th-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.th-product .th-health{grid-template-columns:repeat(2,minmax(0,1fr))}.th-product .th-metric strong{font-size:25px}}
@container(max-width:480px){.th-product .th-metrics,.th-product .th-health{grid-template-columns:minmax(0,1fr)}.th-product .th-page-head{align-items:flex-start;flex-direction:column}.th-product .th-actions{gap:6px}.th-product .th-panel{padding:14px}.th-product .th-donut-wrap{grid-template-columns:minmax(110px,1fr) minmax(105px,1fr)}.th-product .th-block-note{display:block}.th-product .th-section-title{align-items:flex-start;flex-direction:column}}
