.analytics {
    --insight-ink: #192f52;
    --insight-muted: #536681;
    --insight-line: #dce4ef;
    --insight-fill: #edf2fa;
    --insight-blue: #2855c7;
    display: grid;
    gap: 1.15rem;
    min-width: 0;
    margin-bottom: 1.15rem;
    color: var(--insight-ink);
}
.analytics :is(h2,h3,p,dl,dd,ol,ul) { margin: 0; }
.analytics h2 { font-size: 1.06rem; line-height: 1.3; font-weight: 690; letter-spacing: -.025em; }
.analytics :is(button,a,input,select,summary):focus-visible { outline: 3px solid #4074db; outline-offset: 3px; }
.insight-controls { min-width: 0; }
.insight-controls-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.insight-controls-top h2 { font-size: 1.25rem; }
.insight-controls-top p, .insight-heading p { color: var(--insight-muted); font-size: .82rem; margin-top: .2rem; }
.insight-periods { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .2rem; padding: .22rem; background: #e6edf8; border: 1px solid #dae3f2; border-radius: .7rem; }
.insight-periods a { display: inline-block; text-decoration: none; color: #415779; font-size: .79rem; font-weight: 620; padding: .43rem .85rem; border-radius: .48rem; }
.insight-periods a[aria-current] { background: white; color: #214aab; box-shadow: 0 1px 4px #25385b22; }
.insight-periods a:hover { background: #f4f7ff; }
.insight-filter { margin-top: .55rem; }
.insight-filter summary, .insight-method summary, .trend-data summary { width: fit-content; color: #3259a4; font-size: .8rem; font-weight: 620; }
.insight-filter form { display: grid; grid-template-columns: repeat(2,minmax(115px,1.3fr)) repeat(2,minmax(110px,1fr)) auto; gap: .75rem; align-items: end; padding: .85rem 0 .2rem; }
.insight-filter label, .insight-search label { display: grid; gap: .32rem; min-width: 0; font-size: .77rem; color: #3c5272; font-weight: 620; }
.insight-filter :is(input,select), .insight-search input { max-width: 100%; min-width: 0; }
.insight-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.insight-metric, .insight-panel { min-width: 0; background: white; border: 1px solid var(--insight-line); border-radius: 15px; box-shadow: 0 3px 12px #263f6908; }
.insight-metric { padding: clamp(.85rem,1.55vw,1.25rem); }
.insight-metric-heading { display: flex; align-items: center; gap: .55rem; }
.insight-metric-heading h3 { font-size: .83rem; font-weight: 640; line-height: 1.35; }
.insight-icon { color: #4c55ad; background: #eeeefe; border-radius: .65rem; display: grid; place-items: center; width: 2.05rem; height: 2.05rem; flex-shrink: 0; }
.insight-icon svg { width: 1.18rem; height: 1.18rem; }
.metric-participation .insight-icon { color: #137577; background: #e1f4f0; }
.metric-nps .insight-icon { color: #925a18; background: #fbefdb; }
.compact-stat { display: flex; align-items: center; gap: .65rem; margin: .67rem 0 .35rem; }
.compact-stat strong { color: #173b62; font-weight: 675; letter-spacing: -.055em; font-variant-numeric: tabular-nums; font-size: clamp(1.95rem,2.85vw,2.55rem); line-height: 1.07; }
.compact-stat small { font-size: 1rem; font-weight: 550; margin-left: .12rem; letter-spacing: 0; }
.insight-metric p { font-size: .74rem; line-height: 1.5; color: var(--insight-muted); }
.insight-lead { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 1rem; }
.satisfaction-feature { position: relative; min-width: 0; overflow: hidden; border-radius: 18px; padding: clamp(1rem,2vw,1.6rem); color: #fff; background: radial-gradient(at 90% 4%,#295c83,transparent 55%),linear-gradient(116deg,#152e55,#1b4167); box-shadow: 0 8px 22px #153e6719; }
.satisfaction-title { display: flex; align-items: center; gap: .6rem; }
.satisfaction-feature h2 { color: #fff; font-size: 1.08rem; font-weight: 620; }
.feature-icon { display: inline-grid; place-items: center; height: 28px; width: 28px; color: #95e5d7; background: #ffffff10; border: 1px solid #ffffff2d; border-radius: 8px; }
.feature-icon svg { width: 16px; height: 16px; }
.satisfaction-stat { display: flex; align-items: baseline; gap: .36rem; margin: .65rem 0 .25rem; }
.satisfaction-stat>strong { font-size: clamp(2.65rem,4.3vw,4.15rem); font-weight: 600; letter-spacing: -.065em; line-height: 1; font-variant-numeric: tabular-nums; }
.satisfaction-stat>span:not(.insight-delta) { font-size: 1.2rem; font-weight: 450; color: #c9dce8; }
.satisfaction-feature>p { color: #d2e3ee; font-size: .8rem; }
.insight-delta { display: inline-flex; align-items: center; gap: .2rem; width: fit-content; padding: .19rem .46rem; border-radius: 20px; font-size: .69rem; font-weight: 650; white-space: nowrap; line-height: 1.35; }
.insight-delta.is-flat { color: #405676; background: #edf1f6; }
.insight-delta.is-up { color: #176653; background: #ddf3eb; }
.insight-delta.is-down { color: #924936; background: #fff0e6; }
.satisfaction-stat .insight-delta { margin-left: .35rem; align-self: center; }
.satisfaction-plot { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: .3rem .5rem; margin: 1.15rem 0 .5rem; font-size: .67rem; color: #d4e3ef; font-variant-numeric: tabular-nums; }
.satisfaction-y { display: flex; flex-direction: column; justify-content: space-between; align-items: start; padding: .15rem 0; line-height: 1; }
.satisfaction-plot svg { display: block; width: 100%; height: clamp(92px,9vw,134px); overflow: visible; }
.satisfaction-guide { stroke: #ffffff32; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.satisfaction-line { stroke: #83e5d7; stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.satisfaction-point { fill: #93ecdc; stroke: #1f4a68; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.satisfaction-dates { grid-column: 2; display: flex; justify-content: space-between; }
.feature-data { margin-top: .6rem; font-size: .74rem; }
.feature-data summary { color: #dceef7; width: fit-content; }
.feature-data table { min-width: 0; width: 100%; margin-top: .6rem; background: #173655; }
.feature-data :is(thead,tbody tr:hover) { background: #214664; }
.feature-data :is(th,td) { padding: .4rem; font-size: .72rem; color: #fff; border-color: #ffffff28; }
.feature-empty { display: flex; align-items: center; min-height: 6rem; border-top: 1px solid #ffffff40; color: #cfdfeb; margin-top: 1rem; font-size: .85rem; }
.ratings-panel { display: flex; flex-direction: column; justify-content: space-between; }
.ratings-body { display: grid; grid-template-columns: minmax(74px,1.25fr) minmax(70px,1fr); align-items: center; gap: clamp(.75rem,2vw,2rem); margin: 1rem 0; }
.ratings-ring { position: relative; width: min(100%,152px); aspect-ratio: 1; justify-self: center; }
.ratings-ring svg { display: block; width: 100%; height: 100%; }
.rating-track { stroke: #edf2f7; }
.rating-5 { --rating-color:#217e78; }.rating-4 { --rating-color:#61b3ad; }.rating-3 { --rating-color:#eab668; }.rating-2 { --rating-color:#df9369; }.rating-1 { --rating-color:#bd6577; }
.rating-segment { stroke: var(--rating-color); }
.ratings-ring>span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ratings-ring strong { color: #163d53; letter-spacing: -.06em; font-size: clamp(1.15rem,2.2vw,2rem); font-variant-numeric: tabular-nums; line-height: 1.06; }
.ratings-ring small { font-size: .62em; }
.ratings-ring>span>span { color: #52657d; font-size: .74rem; }
.ratings-key>div { display: flex; justify-content: space-between; align-items: baseline; gap: .45rem; padding: .21rem 0; }
.ratings-key dt { display: flex; gap: .5rem; align-items: center; color: #4e6076; font-size: .81rem; }
.ratings-key dt i { width: .54rem; height: .54rem; border-radius: 50%; background: var(--rating-color); }
.ratings-key dd { font-size: .85rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.ratings-note { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1px solid #e4ebf3; padding-top: .8rem; }
.ratings-note p { font-size: .76rem; color: #52657a; }
.ratings-note strong { color: #203d58; }
.insight-no-activity { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; background: #eaf3fa; border: 1px solid #c9dce9; border-radius: 12px; padding: 1rem 1.15rem; }
.insight-no-activity h3 { font-size: .98rem; }.insight-no-activity p,.insight-no-activity a { font-size: .82rem; }.insight-no-activity a { font-weight: 650; }
.site-report table { width: 100%; min-width: 0; margin-top: .9rem; border-spacing: 0; }
.site-report th,.site-report td { padding: .6rem .45rem; font-size: .8rem; color: #3b536d; }
.site-report tbody th { font-weight: 550; }
.site-report th:first-child { width: 45%; }
.site-report :is(td,th):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.site-report td:last-child { font-weight: 670; color: #234b68; }
.insight-week svg { width: min(100%,2.3rem); height: 64px; }
.week-track { fill: #f1f5f9; }
.week-bar { fill: #388c8b; }
.insight-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: stretch; gap: 1rem; }
.insight-panel { padding: clamp(1rem,1.75vw,1.4rem); }
.insight-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .45rem .8rem; }
.analytics .insight-link { color: #2856b2; font-size: .78rem; font-weight: 650; text-decoration: none; align-self: center; }
.insight-link:hover { text-decoration: underline; }
.insight-link span { margin-left: .1rem; }
.insight-empty { display: grid; place-items: center; min-height: 6.5rem; text-align: center; color: var(--insight-muted); font-size: .84rem; }
.trend-legend { display: flex; gap: 1rem; color: var(--insight-muted); margin: 1.06rem 0 .6rem; font-size: .75rem; }
.trend-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.trend-legend span::before { content: ""; width: .6rem; height: .6rem; background: #aabdf1; border-radius: .2rem; }
.trend-legend span + span::before { background: #405bc0; }
.trend-chart { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .45rem; margin: .45rem 0 .8rem; }
.trend-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 1.5rem; font-size: .68rem; color: #536681; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.trend-plot { position: relative; isolation: isolate; display: flex; padding-top: .25rem; min-width: 0; }
.trend-plot::before { content: ""; position: absolute; z-index: -1; inset: .25rem 0 1.83rem; border-block: 1px solid #dce4ef; background: linear-gradient(to bottom,transparent calc(50% - .5px),#e5eaf1 50%, transparent calc(50% + 1px)); }
.trend-group { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; min-width: 0; }
.trend-group svg { display: block; width: 78%; max-width: 52px; height: 6.15rem; }
.trend-group span { color: #4b6180; font-size: .69rem; line-height: 1; padding-top: .5rem; height: 1.85rem; font-variant-numeric: tabular-nums; }
.trend-invited { fill: #aabdf1; }
.trend-answered { fill: #405bc0; }
.trend-data { border-top: 1px solid #ebeff5; padding-top: .6rem; }
.trend-data table { min-width: 0; width: 100%; margin-top: .5rem; }
.trend-data :is(td,th) { white-space: normal; font-size: .74rem; padding: .42rem; }
.score-bars { display: grid; gap: .78rem; }
.analytics .score-bars { margin-top: 1.1rem; }
.score-bars > div { display: grid; grid-template-columns: 1fr auto; position: relative; font-size: .83rem; padding-bottom: .55rem; }
.score-bars dd { text-align: right; }
.score-bars dd > span { font-weight: 680; font-variant-numeric: tabular-nums; }
.score-bars small { font-size: .68rem; color: var(--insight-muted); margin-left: .07rem; }
.score-bars meter { position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; appearance: none; background: #eaf0fa; border: 0; border-radius: 4px; overflow: hidden; }
.score-bars meter::-webkit-meter-bar, .insight-week meter::-webkit-meter-bar { background: #eaf0fa; border: 0; border-radius: 4px; }
.score-bars meter::-webkit-meter-optimum-value { background: #5573c5; border-radius: 4px; }
.score-bars meter::-moz-meter-bar { background: #5573c5; border-radius: 4px; }
.analytics .insight-recent-list, .analytics .insight-counts, .analytics .insight-week { margin-top: 1rem; }
.insight-recent-list { list-style: none; padding: 0; }
.insight-recent-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .65rem; align-items: center; border-top: 1px solid #e9edf4; padding: .6rem 0; }
.insight-recent-list li:last-child { padding-bottom: 0; }
.insight-recent-list div { min-width: 0; }
.insight-recent-list strong, .insight-recent-list div span { display: block; overflow-wrap: anywhere; }
.insight-recent-list strong { font-size: .84rem; font-weight: 660; }
.insight-recent-list time, .insight-recent-list div span { font-size: .74rem; color: var(--insight-muted); }
.score-chip { display: inline-grid; min-width: 3.4rem; place-items: center; border-radius: .45rem; padding: .21rem .4rem; background: #edf2ff; color: #2f4c94; font-size: .8rem; font-weight: 660; font-variant-numeric: tabular-nums; }
.insight-counts { display: grid; }
.insight-counts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-top: 1px solid #e9edf4; font-size: .82rem; }
.insight-counts dd { font-weight: 690; font-variant-numeric: tabular-nums; }
.insight-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); list-style: none; gap: .4rem; padding: 0; }
.insight-week li { display: grid; justify-items: center; gap: .25rem; color: var(--insight-muted); font-size: .73rem; }
.insight-week strong { color: var(--insight-ink); font-size: .88rem; }
.insight-week meter { width: 100%; height: .6rem; border: 0; }
.insight-week meter::-webkit-meter-optimum-value { background: #6881c5; border-radius: 4px; }
.insight-week meter::-moz-meter-bar { background: #6881c5; border-radius: 4px; }
.insight-search { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.insight-search label { flex: 1 1 10rem; }
.insight-method { border-top: 1px solid var(--insight-line); padding-top: .8rem; }
.insight-method p { max-width: 78ch; color: var(--insight-muted); font-size: .82rem; margin-top: .5rem; }
@media (max-width: 920px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-lead { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
    .insight-filter form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .insight-metrics { gap: .55rem; }
    .insight-lead { grid-template-columns: 1fr; gap: .8rem; }
    .ratings-body { grid-template-columns: minmax(95px,.85fr) minmax(80px,1fr); }
    .ratings-ring { max-width: 120px; }
    .satisfaction-plot svg { height: 110px; }
    .insight-controls-top { align-items: start; row-gap: .6rem; }
    .insight-icon { width: 1.65rem; height: 1.65rem; }
    .insight-icon svg { width: 1rem; height: 1rem; }
    .insight-grid { gap: .78rem; }
}
@media (max-width: 520px) {
    .insight-metrics { grid-template-columns: 1fr; }
    .insight-metric { padding: .7rem .85rem; display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; align-items: center; }
    .insight-metric-heading h3 { font-size: .82rem; }
    .compact-stat { margin: 0; flex-wrap: wrap; gap: .25rem; justify-content: end; }
    .compact-stat strong { font-size: 1.4rem; }
    .insight-metric>p { grid-column: 1/-1; margin-top: .15rem; padding-left: 1.96rem; }
    .insight-metric .insight-icon { width: 1.4rem; height: 1.4rem; border-radius: .36rem; }
    .insight-icon svg { width: .9rem; height: .9rem; }
    .insight-filter form label:first-child { grid-column: 1 / -1; }
    .insight-filter button { width: fit-content; }
    .trend-group span { font-size: .61rem; }
    .insight-recent-list li { gap: .4rem; }
    .site-report :is(td,th) { font-size: .72rem; padding: .45rem .18rem; }
}
@media (max-width: 355px) {
    .insight-metric-heading .insight-icon { display: none; }
}

