/* Three additive type variants. The original styles and routes stay intact. */
:root {
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --font-2xs: .75rem;
  --font-xs: .75rem;
  --font-sm: .875rem;
  --font-base: .875rem;
  --font-md: 1rem;
  --font-lg: 1.5rem;
  --font-xl: 1.75rem;
  --type-query: 1rem;
  --type-data: .9375rem;
  --type-label: .875rem;
  --type-meta: .75rem;
  --height-control: 34px;
  --height-row: 40px;
  --type-query-width: 380px;
}
html[data-typeface="roboto"] { --font-ui: Roboto, "Segoe UI", Arial, sans-serif; }
html[data-typeface="manrope"] { --font-ui: Manrope, "Segoe UI", Arial, sans-serif; }
body { font-size: var(--type-label); font-synthesis: none; }
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.brand { min-height: 56px; }
.brand-word { font-size: 26px; font-weight: 700; }
.brand-tag { display: none; }
.nav-section { padding-top: 8px; padding-bottom: 8px; }
.nav-label { font-size: var(--type-meta); letter-spacing: .035em; }
.nav-item { min-height: 38px; font-size: 13px; line-height: 1.35; }
.nav-badge { font-size: 11px; }
.sidebar-bottom .nav-item { font-size: 12px; }
.service-bar { height: 56px; }
.project-picker { width: 220px; height: 34px; font-size: var(--type-label); }
.demo-badge { font-size: 11px; }
.service-link { font-size: 13px; }
.balance { font-size: var(--type-label); }
.avatar { width: 31px; height: 31px; font-size: var(--type-meta); font-weight: 600; }
.workspace { overflow-y: auto; }
.page-heading { min-height: 28px; }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.heading-desc { font-size: 13px; }
.heading-meta { font-size: var(--type-meta); }
.btn { font-size: var(--type-label); }
.icon-btn { width: 34px; }
.btn .icon { width: 17px; height: 17px; }
.filter-bar { min-height: 48px; flex-wrap: wrap; row-gap: 4px; }
.filter-divider { margin-left: 3px; margin-right: 3px; }
.select-control,.select-control select { height: 34px; }
.select-control select { font-size: var(--type-label); max-width: 155px; min-width: 0; }
#source { width: 96px; }
#region { width: 104px; }
#folder { width: 118px; }
#group { width: 116px; }
#tag { width: 96px; }
.source-mark { font-size: 17px; }
.period-btn { font-size: 13px; }
.summary { display: flex; flex-wrap: nowrap; gap: 8px; min-height: 114px; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #bac6d6 transparent; }
.summary-card { height: 112px; padding: 10px 12px; }
.summary .dynamics-card { width: 280px; min-width: 280px; height: 112px; padding: 8px 10px; gap: 8px; }
.donut { width: 80px; height: 80px; }
.donut-value { font-size: 16px; font-weight: 600; }
.donut-label { font-size: 9px; }
.summary-title { font-size: 13px; font-weight: 500; }
.legend-line { min-height: 24px; font-size: var(--type-meta); gap: 4px; }
.legend-line>span:nth-last-child(2) { font-size: var(--type-meta); }
.legend-line>span:last-child { width: 30px; font-size: var(--type-meta); }
.summary .metric-card { min-width: 132px; }
.metric-value { font-size: 26px; font-weight: 500; line-height: 1.2; margin-top: 6px; }
.metric-value>small { font-size: 14px; }
.delta { font-size: var(--type-meta); }
.delta .icon { width: 12px; height: 12px; }
.summary .distribution { width: 330px; min-width: 330px; height: 112px; padding: 10px; gap: 10px; }
.dist-row { grid-template-columns: 53px 32px 20px 25px; height: 30px; font-size: var(--type-meta); gap: 4px; }
.range-tag,.dist-percent,.dist-change { font-size: var(--type-meta); }
.range-tag { padding: 3px; white-space: nowrap; }
.ai-summary .summary-card { height: 112px; }
.ai-summary .metric-card { width: 190px; min-width: 190px; max-width: 190px; }
.ai-summary .metric-value { font-size: 26px; margin-top: 9px; }
.metric-note { font-size: var(--type-meta); }
.ai-summary-hint { font-size: var(--type-meta); }
.graph-top { min-height: 42px; }
.graph-tab { font-size: 13px; }
.graph-body { height: 190px; }
.line-chart .chart-text { font-size: var(--type-meta); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(var(--chart-type-scale-x,1),var(--chart-type-scale-y,1)); }
.line-chart .chart-text[text-anchor="start"] { transform-origin: 0 50%; }
.line-chart .chart-text[text-anchor="end"] { transform-origin: 100% 50%; }
.graph-empty { font-size: var(--type-label); }
.chart-ring-label strong { font-size: 26px; font-weight: 500; }
.chart-ring-label span,.chart-current>span { font-size: var(--type-meta); }
.chart-legend { font-size: 13px; }
.graph-footer { min-height: 40px; }
.graph-footer .btn,.graph-tip { font-size: var(--type-meta); }
.table-panel { min-height: 240px; }
.table-toolbar { min-height: 50px; }
.search-input { height: 34px; width: 300px; }
.search-input input { font-size: var(--type-label); }
.search-input kbd { font-size: var(--type-meta); }
.segment { font-size: 13px; min-height: 28px; }
.toolbar-button { min-height: 32px; font-size: 13px; }
.data-table { font-size: var(--type-data); line-height: 1.35; }
.data-table th { height: 58px; font-size: var(--type-meta); font-weight: 500; }
.data-table td { height: var(--height-row); padding-top: 5px; padding-bottom: 5px; }
.data-table th.query-col,.data-table td.query-col,
.ai-table th.query-col,.ai-table td.query-col { width: var(--type-query-width) !important; min-width: var(--type-query-width) !important; max-width: var(--type-query-width) !important; }
.column-title { font-size: var(--type-label); font-weight: 600; }
.column-count { font-size: var(--type-meta); }
.query-label { font-size: var(--type-query); font-weight: 300; line-height: 1.45; color: #303843; letter-spacing: 0; }
.query-open .icon { width: 14px; height: 14px; }
.data-table input[type="checkbox"] { width: 14px; height: 14px; }
.freq-col { width: 80px; min-width: 80px; }
.data-table td.freq-col { line-height: 18px; padding-top: 4px; padding-bottom: 4px; }
.freq-secondary { font-size: var(--type-meta); line-height: 13px; }
.features-col { width: 76px; min-width: 76px; }
.feature-icons .icon { width: 14px; height: 14px; }
.date-col { width: 104px; min-width: 104px; max-width: 104px; }
.date-label { font-size: var(--type-meta); }
.date-sub { font-size: 11px; }
.rank-value { font-size: var(--type-data); font-weight: 400; }
.rank-delta { font-size: var(--type-meta); margin-left: 6px; }
.rank-delta .icon { width: 11px; height: 11px; }
.table-footer { min-height: 38px; font-size: var(--type-meta); }
.table-footer .btn { font-size: var(--type-meta); min-height: 28px; }
.ai-table .date-col,.mention-cell { width: 176px; min-width: 176px; max-width: 176px; }
.ai-table td { height: 52px; }
.ai-table .query-label { white-space: normal; }
.mention-badge { font-size: var(--type-meta); padding: 4px 7px; }
.mention-cell .citation-count { font-size: var(--type-meta); }
.snippets-table .date-col { width: 364px; min-width: 364px; max-width: 364px; }
.snippets-table td { height: 222px; padding: 0; }
.snippet-scroll { height: 221px; font-size: var(--type-data); line-height: 1.5; padding: 12px 14px; }
.snippet-scroll h3 { font-size: 17px; font-weight: 600; }
.snippet-scroll p { margin-bottom: 12px; text-wrap: pretty; }
.snippet-scroll .source-link { font-size: var(--type-meta); }
.snippet-status .mention-badge,.snippet-status>span:last-child { font-size: var(--type-meta); }
.popover { width: 290px; }
.popover-wide { width: 340px; }
.popover-title { font-size: var(--type-label); }
.popover-description,.popover-field { font-size: 13px; }
.popover-item,.popover-check { font-size: var(--type-label); }
.popover-check small,.notification-item small { font-size: var(--type-meta); }
.notification-item,.serp-preview,.serp-preview p { font-size: 13px; }
.serp-preview>strong { font-size: 16px; }
.toast { font-size: var(--type-label); }
.state-panel strong { font-size: 18px; }
.state-panel p { font-size: var(--type-label); max-width: 420px; }
.state-panel .btn { font-size: var(--type-label); }
.skeleton-row { height: var(--height-row); }
.loading-label { font-size: var(--type-label); }
.selection-bar { font-size: 13px; min-height: 40px; }
.selection-bar .btn { font-size: 13px; min-height: 30px; }
.filter-chip,.notice,.floating-tooltip { font-size: var(--type-meta); }
.full-table .table-panel { top: 66px; }
.type-review { margin: 0 2px 8px; padding: 8px 6px 10px; border-bottom: 1px solid #ccd5e0; }
.type-review label { display: block; font-size: 12px; color: #53647b; margin-bottom: 6px; }
.type-review-controls { display: flex; align-items: center; gap: 4px; }
.type-review select { width: 132px; height: 32px; padding: 3px 4px; background: #edf2f8; border: 1px solid #becbda; border-radius: 5px; font-size: 13px; }
.type-review a { width: 30px; height: 32px; display: grid; place-items: center; color: #455e7d; border-radius: 5px; }
.type-review a:hover { background: #ced9e6; }
.collapsed .type-review { margin: 0 0 8px; padding: 0 0 10px; }
.collapsed .type-review label,.collapsed .type-review select { display: none; }
.collapsed .type-review-controls { justify-content: center; }
@media (max-width: 1260px) {
  .service-link.hide-medium { display: none; }
  .summary .summary-card { flex-shrink: 0; }
  .ai-summary-hint { display: none; }
  .toolbar-button>span { display: none; }
  .table-footer .footer-key:last-of-type { display: none; }
}
@media (max-width: 1080px) {
  .shell { --width-sidebar: 196px; }
  .nav-item { font-size: 13px; gap: 8px; }
  .summary { display: flex; flex-wrap: nowrap; }
  .summary .metric-card { width: 170px; min-width: 170px; flex: 0 0 170px; }
  .service-bar .service-link { display: none; }
  .graph-body { height: 190px; }
  .heading-desc { display: none; }
}
@media (max-width: 800px) {
  .shell { --width-sidebar: 56px; }
  .summary { display: flex; }
  .summary .summary-card { max-width: none; }
  .summary .dynamics-card { width: 280px; min-width: 280px; height: 112px; }
  .summary .distribution { width: 330px; min-width: 330px; height: 112px; }
  .dist-row { grid-template-columns: 53px 32px 20px 25px; }
  .summary .metric-card { height: 112px; }
  .ai-summary .dynamics-card .donut { width: 80px; height: 80px; }
  .ai-summary .legend-line { font-size: var(--type-meta); }
  .project-picker { font-size: var(--type-label); width: 190px; }
  .balance { font-size: 13px; }
  .search-input { height: 34px; min-width: 230px; }
  .toolbar-button,.table-toolbar .icon-btn { width: 32px; }
  .graph-tab { font-size: 13px; }
  .type-review { margin: 0 0 8px; padding: 0 0 10px; }
  .type-review label,.type-review select { display: none; }
  .type-review-controls { justify-content: center; }
  .full-table .table-panel { top: 66px; }
}
