* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--color-app); color: var(--color-text); font: var(--font-base)/1.4 var(--font-ui); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--color-accent); }
::selection { color: #173c70; background: #c9e2ff; }
a { color: var(--color-accent-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
input { accent-color: var(--color-accent); caret-color: var(--color-accent); }
input::placeholder { color: #5e6f85; opacity: 1; }
svg { flex-shrink: 0; }
button svg { pointer-events: none; }
small { font-size: var(--font-xs); }
h1,h2,h3,p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 17px; height: 17px; vertical-align: middle; }
.skip-link { position: fixed; top: -50px; left: 210px; padding: 8px 14px; z-index: 200; background: white; border: 1px solid var(--color-accent); border-radius: 5px; }
.skip-link:focus { top: 8px; }
.shell { height: 100dvh; display: grid; grid-template-columns: var(--width-sidebar) minmax(0,1fr); overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-width: 0; background: var(--color-sidebar); border-right: 1px solid #d2d9e2; }
.brand { display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 18px; color: var(--color-text); flex-shrink: 0; text-decoration: none !important; }
.brand-symbol { display: grid; place-items: center; width: 27px; height: 27px; background: var(--color-accent); color: white; border-radius: 7px; }
.brand-symbol svg { width: 20px; height: 20px; stroke-width: 2; }
.brand-word { font-size: 23px; font-weight: 720; letter-spacing: -.8px; line-height: 1; }
.brand-tag { color: #5b6b80; margin-left: auto; font-size: 10px; }
.nav-section { padding: 10px 8px 8px; border-top: 1px solid #d1d9e2; }
.nav-label { color: #637289; font-size: 10px; letter-spacing: .06em; padding: 0 10px; margin-bottom: 5px; }
.nav-item { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 7px 10px; border-radius: 5px; text-align: left; font-size: 12px; color: #55657b; text-decoration: none !important; transition: background var(--transition),color var(--transition); }
.nav-item .icon { color: #5e6f85; width: 18px; height: 18px; }
.nav-item:hover { background: #d2dbe5; color: #303843; }
.nav-item.active { background: #f5f8fc; color: var(--color-accent-text); font-weight: 600; }
.nav-item.active .icon { color: var(--color-accent); }
.nav-badge { margin-left: auto; font-size: 9px; padding: 1px 5px; color: #61728b; background: #cfd8e3; border-radius: 3px; letter-spacing: .02em; }
.nav-item.active .nav-badge { background: #e0edff; color: var(--color-accent-text); }
.sidebar-bottom { margin-top: auto; padding: 12px 8px 10px; }
.sidebar-bottom .nav-item { font-size: 11px; }
.sidebar-bottom .project-link { margin-top: 3px; }
.sidebar-rule { height: 1px; background: #ccd5e0; margin: 9px 10px; }
.main-column { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.service-bar { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; flex-shrink: 0; border-bottom: 1px solid #dfe5ec; }
.project-picker { width: 212px; height: 30px; border: 1px solid #cfd8e4; border-radius: 5px; background: #e3e8ef; display: flex; align-items: center; gap: 8px; padding: 0 9px; text-align: left; }
.project-picker>.icon:first-child { color: var(--color-accent-text); }
.project-picker>.icon:last-child { margin-left: auto; width: 14px; color: #6a7a90; }
.demo-badge { padding: 2px 6px; border: 1px solid #ced8e5; color: #64748b; font-size: 9px; line-height: 1.2; border-radius: 3px; letter-spacing: .035em; }
.service-spacer { flex: 1; }
.service-link { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 5px 7px; color: #53647b; font-size: 11px; border-radius: 4px; }
.service-link .icon { color: #70849e; width: 16px; height: 16px; }
.service-link:hover { background: #e0e7f0; }
.service-divider { height: 19px; width: 1px; background: #d7dfe9; margin: 0 4px; }
.balance { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.balance .icon-btn { width: 24px; height: 24px; min-height: 24px; color: var(--color-accent-text); }
.bell { position: relative; }
.bell:after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); position: absolute; right: 7px; top: 5px; border: 1px solid var(--color-app); }
.avatar { width: 27px; height: 27px; border: 1px solid #b6c8dd; background: #d5e4f4; color: #385b85; font-size: 10px; font-weight: 650; border-radius: 50%; display: grid; place-items: center; }
.workspace { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 23px; flex-shrink: 0; gap: 12px; }
.heading-group { display: flex; align-items: baseline; gap: 10px; }
h1 { font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.heading-desc { font-size: 11px; color: #66758a; }
.heading-meta { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: 10px; }
.heading-meta>.icon { width: 13px; height: 13px; color: #6a8b76; }
.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-panel); }
.filter-bar { min-height: 44px; display: flex; align-items: center; gap: 0; padding: 6px; flex-shrink: 0; }
.filter-divider { height: 18px; width: 1px; background: var(--color-border); margin: 0 5px; flex-shrink: 0; }
.filter-spacer { flex: 1; min-width: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--height-control); border: 1px solid transparent; background: transparent; border-radius: var(--radius-control); padding: 4px 8px; font-size: 12px; white-space: nowrap; text-decoration: none !important; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.btn:hover { background: var(--color-hover); }
.btn:active { background: #e6edf7; }
.btn-primary { background: var(--color-accent-text); border-color: var(--color-accent-text); color: white; }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-primary:active { background: #0566d1; }
.btn-outline { background: white; border-color: var(--color-border-strong); }
.btn-active { background: var(--color-accent-soft); color: var(--color-accent-text); }
.btn-active:hover { background: #d9eaff; }
.icon-btn { padding: 5px; width: 30px; flex-shrink: 0; color: #5e6f85; }
.icon-btn.btn-primary { color: white; }
.btn .icon { width: 16px; height: 16px; }
.refresh-btn { margin-right: 5px; }
.select-control { display: inline-flex; align-items: center; height: 30px; position: relative; border-radius: 5px; min-width: 0; padding-left: 8px; }
.select-control:hover { background: var(--color-hover); }
.select-control>.icon { width: 15px; height: 15px; color: #5e6f85; pointer-events: none; }
.select-control select { appearance: none; border: 0; background: transparent; padding: 5px 24px 5px 6px; height: 30px; max-width: 165px; min-width: 78px; font-size: 12px; border-radius: 5px; }
.select-control .select-chevron { position: absolute; right: 6px; width: 12px; height: 12px; }
.source-control select { width: 98px; padding-left: 4px; }
.source-mark { display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; color: #e03637; width: 18px; height: 18px; margin-left: 5px; }
.source-mark.ai-mark { color: #8463c5; }
.period-btn { color: #4a5b72; font-size: 11px; padding-right: 5px; }
.period-btn .icon:last-child { width: 12px; height: 12px; margin-left: 3px; }
.summary { display: flex; gap: 8px; min-height: 100px; flex-shrink: 0; }
.summary-card { height: 100px; border-radius: 8px; padding: 10px 12px; min-width: 0; }
.dynamics-card { display: flex; align-items: center; gap: 7px; width: 250px; flex-shrink: 0; padding: 6px 10px; }
.donut { width: 76px; height: 76px; flex-shrink: 0; }
.donut-base,.donut-part { fill: none; stroke-width: 11px; }
.donut-base { stroke: #edf0f4; }
.donut-part { transform: rotate(-90deg); transform-origin: 50% 50%; }
.donut-value { fill: var(--color-text); font-family: var(--font-ui); font-size: 15px; font-weight: 650; }
.donut-label { fill: #6b7890; font-family: var(--font-ui); font-size: 8px; }
.dynamics-legend { flex: 1; min-width: 0; }
.summary-title { font-size: 11px; font-weight: 500; color: #59687c; display: flex; align-items: center; gap: 5px; }
.summary-title .icon { width: 12px; height: 12px; color: #5e6f85; }
.summary-title .small-help { width: 15px; height: 15px; min-height: 15px; padding: 1px; }
.legend-line { display: flex; gap: 5px; align-items: center; font-size: 10px; min-height: 20px; }
.legend-line+.legend-line { border-top: 1px solid #eef1f6; }
.legend-line .icon { width: 12px; height: 12px; }
.legend-line>span:nth-last-child(2) { margin-left: auto; font-size: 11px; color: var(--color-text); }
.legend-line>span:last-child { width: 26px; text-align: right; color: #708096; font-size: 9px; }
.positive { color: var(--color-success); }
.negative { color: var(--color-danger); }
.neutral { color: var(--color-muted); }
.metric-card { flex: 1; position: relative; display: flex; flex-direction: column; min-width: 120px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.metric-value { font-size: 20px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; margin-top: 5px; }
.metric-value>small { color: #5e6f85; font-size: 12px; font-weight: 400; margin-left: 2px; }
.delta { display: inline-flex; gap: 1px; align-items: center; font-size: 10px; white-space: nowrap; }
.delta .icon { width: 10px; height: 10px; }
.spark-bars { display: flex; gap: 2px; height: 24px; align-items: flex-end; width: 100%; margin-top: auto; }
.spark-bars i { flex: 1; min-width: 1px; border-radius: 1px 1px 0 0; }
.distribution { width: 286px; display: flex; gap: 10px; padding: 8px 10px; }
.dist-column { flex: 1; }
.dist-row { display: grid; grid-template-columns: 39px 24px 25px 27px; align-items: center; height: 26px; font-size: 10px; gap: 3px; }
.dist-row+.dist-row { border-top: 1px solid #eef1f5; }
.range-tag { border-radius: 3px; text-align: center; padding: 2px 3px; font-size: 9px; color: #32546d; }
.range-3 { background: #d2e6ff; color: #2867a9; }
.range-10 { background: #d5eddf; color: #28714e; }
.range-30 { background: #def0f2; color: #46747b; }
.range-50 { background: #eee5fa; color: #775996; }
.range-100 { background: #e9edf3; color: #69798e; }
.range-out { background: #fff0d6; color: #92651e; }
.dist-percent { color: #6f7e93; font-size: 9px; }
.dist-count { text-align: right; }
.dist-change { text-align: right; font-size: 9px; }
.graph-panel { flex-shrink: 0; overflow: hidden; }
.graph-top { min-height: 36px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-border); padding: 0 12px; }
.graph-tabs { display: flex; gap: 15px; align-self: stretch; }
.graph-tab { display: flex; align-items: center; border: 0; background: none; padding: 0 3px; font-size: 11px; color: #64748b; border-bottom: 2px solid transparent; }
.graph-tab:hover { color: var(--color-accent-text); }
.graph-tab.active { color: #244b7c; border-color: var(--color-accent); }
.graph-body { height: 170px; padding: 10px 14px 0 12px; display: flex; align-items: center; gap: 18px; }
.chart-area { position: relative; flex: 1; height: 100%; min-width: 0; }
.graph-empty { height: 100%; display: grid; place-items: center; color: var(--color-muted); font-size: 12px; }
.line-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid { stroke: #e7ecf2; stroke-width: 1; stroke-dasharray: 2 3; }
.chart-text { font-family: var(--font-ui); font-size: 10px; fill: #6c7d94; }
.chart-current { width: 125px; flex-shrink: 0; position: relative; text-align: center; }
.chart-ring { width: 108px; height: 108px; }
.chart-ring-label { position: absolute; left: 0; right: 0; top: 32px; }
.chart-ring-label strong { display: block; font-size: 23px; color: #496da4; font-weight: 600; }
.chart-ring-label span { font-size: 9px; color: #5e6f85; }
.chart-current>span { display: block; color: #61728a; font-size: 10px; margin-top: 2px; }
.graph-footer { display: flex; align-items: center; padding: 3px 12px; margin-top: 5px; border-top: 1px solid #eff2f7; min-height: 35px; }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #53657d; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #7e9bea; }
.graph-footer .btn { font-size: 10px; min-height: 26px; }
.graph-tip { position: absolute; background: #303c4e; color: #fff; padding: 7px 10px; border-radius: 5px; font-size: 10px; z-index: 2; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-popover); }
.table-panel { flex: 1; min-height: 180px; display: flex; flex-direction: column; overflow: hidden; }
.table-toolbar { min-height: 43px; padding: 6px 8px; display: flex; gap: 7px; align-items: center; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.search-input { height: 29px; width: 280px; display: flex; align-items: center; gap: 7px; padding: 0 8px; background: white; border: 1px solid #d6dfe9; border-radius: 5px; color: #5e6f85; }
.search-input:focus-within { border-color: var(--color-accent); outline: 2px solid #1683ff22; outline-offset: 1px; }
.search-input>.icon { width: 15px; height: 15px; }
.search-input input { min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; outline: 0; font-size: 11px; }
.search-input kbd { border: 1px solid #e0e5ed; color: #5e6f85; font: 10px var(--font-ui); line-height: 16px; width: 17px; border-radius: 3px; text-align: center; }
.toolbar-spacer { flex: 1; min-width: 4px; }
.segmented { display: inline-flex; padding: 2px; gap: 1px; background: #edf0f4; border: 1px solid #e8ecf1; border-radius: 5px; }
.segment { border: 0; min-height: 24px; background: transparent; border-radius: 3px; padding: 3px 9px; font-size: 11px; color: #5d6d83; white-space: nowrap; }
.segment.active { background: white; color: #2e4561; box-shadow: 0 1px 3px #253d5b10; }
.segment:hover { color: #224f88; }
.toolbar-button { font-size: 11px; min-height: 27px; color: #586a83; padding: 4px 6px; }
.toolbar-button .icon { width: 15px; height: 15px; }
.table-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-color: #bac6d6 #f5f7fa; scrollbar-width: thin; background: white; }
.table-scroll::-webkit-scrollbar { width: 7px; height: 7px; }
.table-scroll::-webkit-scrollbar-track { background: #f5f7fa; }
.table-scroll::-webkit-scrollbar-thumb { background: #bdc9d8; border: 1px solid white; border-radius: 5px; }
.data-table { width: max-content; table-layout: fixed; border-spacing: 0; border-collapse: separate; font-size: 12px; line-height: 1.25; }
.data-table th { position: sticky; top: 0; z-index: 4; background: #fafbfd; font-weight: 500; height: 48px; text-align: left; vertical-align: middle; border-bottom: 1px solid #d5dde8; color: #596b84; }
.data-table th,.data-table td { border-right: 1px solid #e5eaf1; padding: 5px 8px; }
.data-table td { height: var(--height-row); padding-top: 3px; padding-bottom: 3px; border-bottom: 1px solid #edf0f5; background: white; }
.data-table tbody tr:hover td { background: #f4f8fd; }
.data-table tbody tr.selected td { background: #eaf3ff; }
.data-table th.check-col,.data-table td.check-col { width: 34px; min-width: 34px; max-width: 34px; text-align: center; padding: 0; position: sticky; left: 0; z-index: 3; border-right: 0; }
.data-table th.check-col { z-index: 7; }
.data-table input[type="checkbox"] { width: 12px; height: 12px; margin: 0; vertical-align: middle; cursor: pointer; }
.data-table th.query-col,.data-table td.query-col { width: 262px; min-width: 262px; max-width: 262px; position: sticky; left: 34px; z-index: 2; }
.data-table th.query-col { z-index: 6; }
.column-title { color: #303e51; font-weight: 600; font-size: 12px; }
.column-count { color: #5e6f85; font-weight: 400; font-size: 10px; margin-left: 5px; }
.query-cell-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.query-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #36445a; }
.query-open { border: 0; padding: 0; background: transparent; color: #8d9cb0; opacity: 0; flex-shrink: 0; }
.query-open .icon { width: 12px; height: 12px; }
.data-table tr:hover .query-open, .query-open:focus-visible { opacity: 1; }
.freq-col { width: 65px; min-width: 65px; text-align: right !important; }
.freq-secondary { display: block; color: #65768e; font-size: 10px; line-height: 1; }
.features-col { width: 64px; min-width: 64px; }
.feature-icons { display: flex; align-items: center; gap: 7px; color: #798ba5; }
.feature-icons .icon { width: 12px; height: 12px; }
.date-col { width: 86px; min-width: 86px; max-width: 86px; padding: 4px 6px !important; }
.date-label { font-size: 10px; color: #4f6077; font-weight: 500; white-space: nowrap; }
.date-label.current { color: #0964c7; background: #e1eeff; border-radius: 3px; padding: 2px 4px; margin-left: -2px; display: inline-block; }
.date-sub { color: #5e6f85; font-size: 9px; display: flex; justify-content: space-between; margin-top: 4px; }
.date-sub strong { font-weight: 500; color: #487159; }
.rank-cell { position: relative; padding-left: 10px !important; white-space: nowrap; border-right-color: #c0d0e4 !important; border-bottom-color: #c8d8e9 !important; }
.data-table td.rank-3 { background: var(--color-rank-3); }
.data-table td.rank-10 { background: var(--color-rank-10); border-color: #bfdccd !important; }
.data-table td.rank-30 { background: var(--color-rank-30); }
.data-table td.rank-50 { background: var(--color-rank-50); }
.data-table td.rank-100 { background: var(--color-rank-100); }
.data-table td.rank-none { background: #f3f5f8; color: #7e8ba0; }
.data-table tr:hover .rank-cell { filter: brightness(.97); }
.rank-value { font-weight: 500; color: #2b4667; font-size: 12px; }
.rank-delta { display: inline-flex; align-items: center; font-size: 9px; gap: 0; margin-left: 6px; vertical-align: top; }
.rank-delta .icon { width: 9px; height: 9px; }
.table-footer { min-height: 33px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 14px; padding: 0 12px; flex-shrink: 0; color: #687a92; font-size: 10px; background: #fff; }
.table-footer .icon { width: 12px; height: 12px; }
.table-footer .footer-key { display: flex; align-items: center; gap: 5px; }
.footer-swatches { display: inline-flex; gap: 4px; align-items: center; }
.footer-swatches i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.table-footer .btn { font-size: 10px; min-height: 24px; }
.ai-summary .dynamics-card { width: 250px; }
.ai-summary { min-height: 96px; }
.ai-summary .summary-card { height: 96px; }
.ai-summary .metric-card { width: 172px; max-width: 172px; min-width: 172px; }
.ai-summary .metric-value { font-size: 21px; margin-top: 9px; }
.metric-note { font-size: 10px; color: #66788f; margin-top: auto; display: flex; align-items: center; gap: 4px; }
.metric-note.positive { color: var(--color-success); }
.metric-note .icon { width: 12px; height: 12px; }
.ai-summary-hint { display: flex; flex-direction: column; justify-content: center; color: #65768d; margin-left: auto; text-align: right; gap: 5px; font-size: 10px; padding: 0 4px; }
.ai-summary-hint>span { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.ai-summary-hint .icon { width: 13px; height: 13px; }
.ai-table .query-col { min-width: 310px !important; max-width: 310px !important; width: 310px !important; }
.ai-table .date-col { width: 148px; min-width: 148px; max-width: 148px; text-align: center; }
.ai-table .date-sub { justify-content: center; gap: 6px; }
.ai-table td { height: 40px; }
.ai-table .query-label { white-space: normal; }
.mention-cell { width: 148px; text-align: center; }
.mention-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; font-size: 10px; padding: 3px 6px; }
.mention-badge .icon { width: 12px; height: 12px; }
.mention-yes { background: #eaf6ef; color: #28734e; }
.mention-no { color: #a44c55; background: #fff3f4; }
.mention-pending { color: #5e6f85; background: #eff2f6; }
.mention-cell .citation-count { font-size: 9px; margin-left: 5px; color: #5e6f85; }
.sentiment-chip { font-size: 9px; color: #55725f; background: #eef6f0; border-radius: 3px; padding: 2px 5px; margin-top: 5px; display: inline-flex; align-items: center; gap: 3px; }
.sentiment-chip .icon { width: 10px; height: 10px; }
.snippets-table .date-col { width: 300px; min-width: 300px; max-width: 300px; text-align: left; }
.snippets-table .date-sub { justify-content: flex-start; }
.snippets-table td { height: 174px; padding: 0; vertical-align: top; }
.snippets-table .query-col { vertical-align: middle; padding: 12px !important; }
.snippets-table .check-col { vertical-align: middle; }
.snippet-scroll { height: 173px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbc8d8 #f3f6fa; padding: 10px 11px 12px; font-size: 11px; line-height: 1.55; color: #53647b; background: white; }
.snippet-scroll p { margin-bottom: 8px; }
.snippet-scroll h3 { font-size: 13px; font-weight: 600; color: #35485f; margin: 9px 0 6px; }
.snippet-scroll ol,.snippet-scroll ul { padding-left: 16px; margin: 5px 0 9px; }
.snippet-scroll li { margin-bottom: 5px; }
.snippet-scroll mark { background: #e8f2ff; color: #1468c0; padding: 1px 2px; border-radius: 2px; }
.snippet-scroll .source-link { color: #2b73c4; display: inline-flex; gap: 4px; align-items: center; font-size: 10px; }
.snippet-scroll .source-link .icon { width: 10px; height: 10px; }
.snippet-status { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f5; margin-bottom: 8px; padding-bottom: 6px; }
.snippet-status .mention-badge { padding: 1px 4px; font-size: 9px; }
.snippet-status>span:last-child { color: #5e6f85; font-size: 9px; }
.snippet-scroll:focus-visible { outline-offset: -3px; }
.popover { position: fixed; background: white; border: 1px solid #d7e0eb; border-radius: 8px; box-shadow: var(--shadow-popover); z-index: 60; width: 260px; padding: 6px; max-height: calc(100dvh - 30px); overflow: auto; animation: appear 100ms ease-out; }
.popover-wide { width: 310px; }
.popover-title { font-size: 12px; font-weight: 600; padding: 8px 8px 9px; }
.popover-description { font-size: 11px; color: #687a92; padding: 0 8px 9px; line-height: 1.5; }
.popover-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; background: transparent; border: 0; border-radius: 4px; font-size: 12px; text-align: left; }
.popover-item:hover { background: #f0f5fc; }
.popover-item.selected { color: var(--color-accent-text); background: #edf5ff; }
.popover-item .icon { width: 15px; height: 15px; }
.popover-item>.icon:last-child { margin-left: auto; }
.popover-rule { height: 1px; background: var(--color-border); margin: 5px 0; }
.popover-check { display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 12px; cursor: pointer; }
.popover-check input { width: 13px; height: 13px; }
.popover-check small { margin-left: auto; color: #5e6f85; font-size: 10px; }
.popover-check:hover { background: #f4f7fb; border-radius: 4px; }
.notification-item { padding: 10px 8px; border-top: 1px solid var(--color-border); font-size: 11px; }
.notification-item strong { font-weight: 600; }
.notification-item p { color: #64748b; margin: 4px 0; }
.notification-item small { font-size: 10px; color: #5e6f85; }
.serp-preview { padding: 9px; font-size: 11px; }
.serp-preview>span { color: #327549; }
.serp-preview>strong { display: block; color: #2265b8; font-size: 13px; font-weight: 500; margin: 5px 0; }
.serp-preview p { color: #5e6f84; font-size: 11px; line-height: 1.5; }
.popover-actions { border-top: 1px solid var(--color-border); padding: 8px 3px 2px; display: flex; justify-content: flex-end; gap: 5px; }
.popover-field { display: grid; gap: 6px; padding: 6px 8px; color: #65758c; font-size: 11px; }
.popover-field input,.popover-field select { border: 1px solid #cfd9e5; background: white; border-radius: 4px; padding: 7px; width: 100%; color: #34445a; }
.toast { position: fixed; z-index: 100; bottom: 20px; left: calc(50% + 98px); transform: translate(-50%,10px); opacity: 0; pointer-events: none; border: 1px solid #cad9e8; border-radius: 7px; padding: 10px 15px; background: #fff; box-shadow: 0 4px 18px #283e5b16; font-size: 12px; max-width: calc(100% - 32px); transition: opacity 150ms,transform 150ms; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.state-panel { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 250px; height: 100%; padding: 24px; gap: 10px; text-align: center; }
.state-panel .state-icon { width: 29px; height: 29px; color: #8fa5be; margin-bottom: 2px; }
.state-panel strong { font-size: 13px; font-weight: 600; }
.state-panel p { color: #697b92; font-size: 11px; max-width: 340px; line-height: 1.6; }
.state-panel .btn { margin-top: 5px; font-size: 11px; }
.state-error .state-icon { color: #d29041; }
.skeleton-table { width: 800px; padding: 16px; }
.skeleton-row { height: 32px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #eef2f6; }
.skeleton { height: 9px; border-radius: 3px; background: #e6ebf2; animation: breathe 1.5s ease-in-out infinite alternate; }
.loading-label { color: #697b92; font-size: 11px; padding-bottom: 12px; }
.selection-bar { display: flex; gap: 9px; align-items: center; padding: 3px 9px; font-size: 11px; background: #eaf3ff; border-bottom: 1px solid #cee1fa; min-height: 34px; flex-shrink: 0; }
.selection-bar .btn { min-height: 24px; font-size: 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #176bc4; background: #eaf3ff; border: 1px solid #cde2fc; padding: 3px 7px; border-radius: 4px; margin-left: 3px; }
.filter-chip .icon { width: 10px; height: 10px; }
.shell.collapsed { --width-sidebar: 56px; }
.collapsed .sidebar .brand { padding: 0 14px; }
.collapsed .sidebar .brand-word,.collapsed .sidebar .brand-tag,.collapsed .sidebar .nav-label,.collapsed .sidebar .nav-item>span,.collapsed .sidebar .nav-badge { display: none; }
.collapsed .sidebar .nav-section { padding: 10px 7px; }
.collapsed .sidebar .nav-item { justify-content: center; padding: 8px 0; }
.collapsed .sidebar-bottom { padding: 8px 7px; }
.collapsed .sidebar .brand-symbol { width: 27px; min-width: 27px; }
.collapsed .toast { left: calc(50% + 28px); }
.notice { border: 1px solid #cbdff5; background: #f3f8ff; color: #536b87; padding: 7px 10px; border-radius: 5px; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.notice .icon { color: #347dce; width: 15px; height: 15px; }
.date-hidden { display: none; }
.full-table .table-panel { position: fixed; left: calc(var(--width-sidebar) + 12px); top: 58px; right: 12px; bottom: 12px; z-index: 25; }
.floating-tooltip { position: fixed; z-index: 90; padding: 5px 8px; background: #344357; color: white; border-radius: 4px; font-size: 10px; pointer-events: none; max-width: 240px; }
@keyframes breathe { from { opacity: .5; } to { opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1260px) {
  .service-link.hide-medium,.brand-tag { display: none; }
  .select-control select { max-width: 130px; min-width: 64px; }
  .filter-divider { margin: 0 2px; }
  .summary { gap: 6px; }
  .summary-card { padding-left: 9px; padding-right: 9px; }
  .dynamics-card { width: 210px; gap: 3px; }
  .distribution { width: 260px; gap: 5px; }
  .dist-row { grid-template-columns: 36px 22px 22px 24px; }
  .toolbar-button>span { display: none; }
  .search-input { width: 250px; }
}
@media (max-width: 1080px) {
  .shell { --width-sidebar: 174px; }
  .nav-item { font-size: 11px; gap: 7px; }
  .brand { padding: 0 13px; }
  .filter-bar { flex-wrap: wrap; row-gap: 4px; }
  .filter-spacer { min-width: 20px; }
  .summary { flex-wrap: wrap; }
  .summary-card { height: 88px; }
  .dynamics-card { width: 210px; }
  .distribution { width: 260px; }
  .metric-card { flex: 1; min-width: 110px; }
  .heading-desc { display: none; }
  .graph-body { height: 155px; }
}
@media (max-width: 800px) {
  .shell { --width-sidebar: 56px; }
  .sidebar .brand { padding: 0 14px; }
  .sidebar .brand-word,.sidebar .brand-tag,.sidebar .nav-label,.sidebar .nav-item>span,.sidebar .nav-badge { display: none; }
  .sidebar .nav-section { padding: 10px 7px; }
  .sidebar .nav-item { justify-content: center; padding: 8px 0; }
  .sidebar-bottom { padding: 8px 7px; }
  .sidebar .brand-symbol { min-width: 27px; }
  .service-bar { padding: 0 8px; gap: 4px; }
  .service-bar .service-link,.demo-badge,.service-divider { display: none; }
  .project-picker { width: 175px; font-size: 11px; }
  .workspace { padding: 8px; gap: 8px; }
  .heading-meta { display: none; }
  .summary { display: grid; grid-template-columns: 1fr 1fr; }
  .summary .summary-card { width: auto; max-width: none; min-width: 0; }
  .summary .distribution { grid-column: 1 / -1; height: 87px; }
  .dist-row { grid-template-columns: 45px 1fr 1fr 1fr; }
  .ai-summary-hint { display: none; }
  .summary .dynamics-card { height: 96px; }
  .ai-summary { grid-template-columns: 1.3fr 1fr 1fr; }
  .ai-summary .summary-card { height: 100px; }
  .ai-summary .dynamics-card .donut { width: 60px; height: 60px; }
  .ai-summary .legend-line { font-size: 9px; }
  .filter-bar { gap: 2px; }
  .filter-divider { display: none; }
  .table-toolbar { flex-wrap: wrap; }
  .search-input { width: 210px; flex: 1; min-width: 140px; }
  .toolbar-spacer { display: none; }
  .table-toolbar .segmented { margin-left: auto; }
  .toolbar-button { width: 28px; padding: 4px; }
  .table-toolbar .icon-btn { width: 28px; }
  .chart-current { display: none; }
  .table-footer .footer-key,.table-footer .footer-swatches { display: none; }
  .graph-tabs { gap: 9px; }
  .graph-tab { font-size: 10px; }
  .toast { left: calc(50% + 28px); }
  .full-table .table-panel { left: 64px; right: 8px; bottom: 8px; }
}
@media (max-width: 520px) {
  .balance { font-size: 10px; }
  .service-bar .bell { display: none; }
  .project-picker { width: 155px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary .dynamics-card { grid-column: 1 / -1; justify-content: flex-start; height: 85px; }
  .dynamics-legend { max-width: 170px; }
  .summary .metric-card { height: 88px; }
  .summary>.metric-card:nth-of-type(4) { grid-column: 1 / -1; }
  .ai-summary { grid-template-columns: 1fr 1fr; }
  .period-btn { font-size: 10px; }
  .table-toolbar { gap: 4px; }
  .table-toolbar .segmented { order: 2; margin-left: 0; }
  .table-toolbar .toolbar-spacer { display: none; }
  .table-footer { padding: 0 7px; gap: 5px; }
  .graph-footer { padding: 3px 7px; }
  .graph-footer .btn>span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
