/* Monthly statistics extends the existing shell and its identity. */
#analytics-workspace{color:#17212f;--an-ink:#17212f;--an-muted:#475569;--an-accent:#086e68}
.an-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.2rem 0}.an-hero h1{margin:.3rem 0;color:var(--an-ink)}.an-hero p{color:var(--an-muted)}
.an-toolbar{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;margin:.8rem 0}.an-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:1rem;align-items:start}.an-filter label{display:flex;flex-direction:column;gap:.4rem;font-weight:600;color:#253348}.an-filter input,.an-filter select,.an-filter textarea{width:100%;min-height:42px;box-sizing:border-box}.an-filter textarea{min-height:100px}.an-more-filters,.an-metrics,.an-filter-actions,.an-definition{grid-column:1/-1}.an-more-filters>.an-filter{padding:1rem 0}.an-metric-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:.65rem;max-height:340px;overflow:auto;padding:1rem .3rem}.an-metric-list label,.an-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:.7rem;font-weight:400}.an-metric-list input,.an-check input{width:18px!important;min-height:18px!important;margin-top:.25rem}.an-metric-list small{display:block;color:#475569;line-height:1.4;font-weight:400}.an-notice{border:1px solid #c6d8df;border-left:4px solid #16706d;background:#edf6f5;color:#17423f;border-radius:8px;padding:1rem;margin:1rem 0}.an-notice.warn{background:#fff7e8;border-color:#d6ae55;color:#6c4100}.an-caption{color:#475569;font-size:.9rem}.an-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:1rem;margin:1rem 0}.an-card{background:linear-gradient(140deg,#fff,#eff6f5);border:1px solid #ccd9df;border-top:4px solid #167a72;border-radius:14px;box-shadow:0 4px 14px #17354d09;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:1.15rem;gap:.4rem;color:#1a293a;transition:transform .15s,box-shadow .15s}.an-card:hover{transform:translateY(-2px);box-shadow:0 7px 20px #17354d17;background:#f8fcfb}.an-card strong{font-size:2rem;line-height:1.25;color:#152738}.an-card small{font-weight:400;color:#485667}.an-results-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-top:1.7rem}.an-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:1rem}.an-chart-panel,.an-panel{padding:1.25rem;border:1px solid #d4dee5;border-radius:12px;background:#fff;margin:.8rem 0;min-width:0}.an-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}.an-panel-heading h3{color:#1c3045;margin:0}.an-chart{height:290px;width:100%;min-width:0}.an-chart-panel>p{color:#475569;font-size:.85rem}.an-chart-panel summary{cursor:pointer;color:#1d4758;font-weight:600}.an-badge{display:inline-block;padding:.25rem .55rem;border-radius:6px;font-size:.8rem;background:#dfefeb;color:#134e44;font-weight:650}.an-badge.warn{background:#ffedc8;color:#6a4000}.an-dialog{width:min(1050px,95vw);max-height:92dvh;color:#17212f}.an-dialog .dialoghead{position:sticky;top:0;z-index:5;background:#f5f8fa;border-bottom:1px solid #d3dfe4}.an-dialog-body{padding:1.3rem}.an-dialog-body form>label{display:block;margin-bottom:1rem}.an-dialog-body .an-filter>label{display:flex}.an-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:.9rem;line-height:1.55;max-height:350px;overflow:auto}.an-dialog .tablewrap{max-height:55dvh;overflow:auto}.an-dialog th{position:sticky;top:0;background:#edf2f5;z-index:1}.an-sources article{border:1px solid #d0dce3;border-radius:8px;padding:1rem;margin:1rem 0}.an-sources input[type=checkbox]{width:18px;height:18px;margin-right:.6rem}.an-dialog .an-error{margin-top:1rem}.an-filter .an-primary{background:#086e68;color:white;border-color:#086e68}.an-dialog button:not(.secondary){background:#086e68;color:white;border:1px solid #086e68}.an-dialog button[disabled]{opacity:.55}.an-dialog input,.an-dialog textarea,.an-dialog select{border:1px solid #94a9b8;color:#17212f;background:#fff}.an-dialog small{display:block}.an-dialog .an-toolbar{grid-column:1/-1}
@media(max-width:700px){.an-hero,.an-results-head{align-items:flex-start;flex-direction:column}.an-panel-heading{flex-direction:column}.an-filter{grid-template-columns:1fr}.an-dialog-body{padding:.85rem}.an-charts{grid-template-columns:1fr}.an-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.an-card{padding:.85rem}.an-card strong{font-size:1.6rem}.an-chart{height:260px}}
@media(prefers-reduced-motion:reduce){.an-card{transition:none}.an-card:hover{transform:none}}

#analytics-workspace .an-hero{background:linear-gradient(120deg,#f5faf9,#e4eeef);border:1px solid #cbdde1;border-radius:16px;padding:1.6rem;box-shadow:0 4px 18px #17354d08}dialog.an-dialog[open]{background:#fff;backdrop-filter:none}.an-dialog .dialoghead{background:#f3f7f9}.an-sources article{background:#fff}
@media screen{
 .an-entry{margin:18px 0 24px;padding:20px;background:#fff;border:1px solid #b8cbd5;border-radius:14px}
 .an-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
 .an-entry h2{font-size:20px;margin:0 0 6px}.an-entry p{margin:4px 0;line-height:1.5}
 .an-entry .an-toolbar{flex-shrink:0;flex-wrap:wrap}
 .an-entry [data-an="entry-import"]{background:#076779;color:#fff;border-color:#065765}
 .an-entry .tablewrap{box-shadow:none}.an-entry td{overflow-wrap:anywhere}
 .an-notice [data-an="guide"]{margin:8px 0 0 12px}
 .an-steps{padding-left:1.3rem;line-height:1.6}.an-steps li{margin-bottom:.8rem}
 @media(max-width:700px){.an-entry{padding:14px}.an-entry-heading{align-items:stretch;flex-direction:column;gap:10px}.an-entry .an-toolbar{margin:0}.an-notice [data-an="guide"]{margin-left:0}}
}
