@font-face { font-family: Inter; src: url('assets/Inter.ttf'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --green: #169c42; --ink: #193321; --muted: #788a7e; --line: #e1ebe4; --mint: #edf6ef; --sidebar: #071c0e; --white: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.45 Inter, Arial, sans-serif; color: var(--ink); background: #d9eadc; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #21ac50; outline-offset: 4px; }
a { text-decoration: none; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.small { width: 14px; height: 14px; }
.app-shell { display: flex; min-height: 100vh; background: radial-gradient(ellipse at 58% 0%, #c9e8d2 0%, #eaf4ed 43%, #f2f7f3 85%); }
.sidebar { width: 208px; flex-shrink: 0; margin: 10px 0 10px 10px; border-radius: 16px; background: radial-gradient(ellipse at 105% 0, #123719 0, transparent 44%), linear-gradient(160deg, #09210f, #061308 60%, #102611); color: #fff; display: flex; flex-direction: column; padding: 17px 12px; position: sticky; top: 10px; height: calc(100vh - 20px); min-height: 580px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 7px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand > span { font-size: 18px; font-weight: 500; letter-spacing: -.2px; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.4px; font-weight: 400; color: #9fbaa7; margin-top: 3px; }
.brand > .icon { margin-left: auto; width: 13px; }
.workspace { font-size: 12px; color: #a6b9ab; margin: 19px 7px 12px; display: flex; gap: 6px; align-items: center; }
.workspace-dot { width: 4px; height: 4px; border-radius: 50%; background: #5bb678; }
nav { display: flex; flex-direction: column; gap: 3px; }
.nav-heading { text-transform: uppercase; color: #809386; letter-spacing: .9px; font-size: 11px; padding: 14px 10px 5px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; position: relative; color: #c4d1c7; font-size: 14px; font-weight: 400; transition: background .2s, color .2s; }
.nav-item:hover { background: #ffffff0b; color: #fff; }
.nav-item.active { color: #fff; background: radial-gradient(ellipse at 62% 50%, #165b23aa, transparent 75%), #102b15; box-shadow: inset 0 0 0 1px #31703a65; }
.nav-item.active:before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; background: #48c568; border-radius: 2px; }
.nav-item .icon { width: 16px; height: 16px; }
.nav-item.active .icon { color: #76dc8f; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.help-button { background: none; color: #9fb4a5; display: flex; gap: 9px; align-items: center; font-size: 13px; padding: 9px 10px; }
.help-button .icon { width: 15px; }
.admin { border-top: 1px solid #ffffff12; margin-top: 11px; padding: 13px 6px 2px; display: flex; gap: 9px; align-items: center; font-size: 13px; }
.admin small { display: block; color: #829b89; font-size: 11px; margin-top: 1px; }
.avatar, .top-avatar { display: grid; place-items: center; font-weight: 400; }
.avatar { background: #d4eddb; color: #264b32; border-radius: 50%; width: 30px; height: 30px; }
.online-dot { width: 5px; height: 5px; background: #38bd64; border-radius: 50%; margin-left: auto; }
main { min-width: 0; flex: 1; }
.topbar { height: 56px; border-bottom: 1px solid #bcdcc675; display: flex; align-items: center; padding: 0 20px; gap: 16px; }
.breadcrumb { font-size: 13px; color: #6b8372; }
.breadcrumb span { margin: 0 8px; color: #adc1b2; }
.breadcrumb strong { font-weight: 400; color: #284735; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search { display: flex; align-items: center; gap: 7px; border-radius: 7px; background: #ffffff65; padding: 7px 10px; color: #6c8574; width: 245px; }
.search .icon { width: 14px; height: 14px; }
.search input { border: 0; background: none; min-width: 0; width: 100%; outline: none; font-size: 13px; color: #1b3925; }
.search input::placeholder { color: #829a88; }
.search kbd { font: 11px Inter; white-space: nowrap; opacity: .7; }
.icon-button { background: #ffffff55; border: 1px solid #ffffff80; color: #456850; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.icon-button .icon { width: 16px; }
.top-avatar { background: #173e24; color: #d4eedb; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; }
.preview-badge { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #53735d; white-space: nowrap; }
.preview-badge i { width: 4px; height: 4px; background: #309751; border-radius: 50%; }
.page { padding: 20px 20px 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.eyebrow { font-size: 11px; color: #6e9579; letter-spacing: 1.3px; font-weight: 400; }
h1 { font-size: 27px; letter-spacing: -.5px; margin: 4px 0 5px; font-weight: 400; line-height: 1.2; }
.page-heading p { font-size: 14px; color: #7d9182; margin: 0; }
.primary { background: #159d3e; color: white; border-radius: 7px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; box-shadow: 0 2px 4px #137e2015; transition: background .2s; }
.primary:hover { background: #0a8631; }
.primary .icon { width: 16px; height: 16px; }
.filters { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; gap: 10px; }
.filter-group { display: flex; gap: 8px; }
.date-filter, .country-filter { display: flex; align-items: center; gap: 7px; background: #ffffff88; border: 1px solid #d9eade; border-radius: 7px; padding: 7px 9px; color: #47624f; }
.filter-group .icon { width: 14px; height: 14px; }
select { appearance: none; background: none; border: 0; outline: none; color: inherit; font-size: 13px; cursor: pointer; }
.platform-filter { display: flex; background: #dfece25c; border: 1px solid #dbe7df; border-radius: 7px; padding: 3px; gap: 3px; }
.platform-filter button { font-size: 12px; background: none; color: #7c9283; padding: 5px 11px; border-radius: 4px; }
.platform-filter button.active { background: #fff; color: #1a562c; box-shadow: 0 1px 3px #19331c0b; }
.overview-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 12px; }
.left-stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: #ffffffef; border: 1px solid #fff; border-radius: 12px; box-shadow: 0 2px 8px #255c3204; }
.insight-card { padding: 16px; box-shadow: 0 0 0 3px #ffffff3a; }
.insight-icon { border: 1px solid #b9e2c4; background: #f2faf4; width: 30px; height: 30px; border-radius: 8px; color: #1fa345; display: grid; place-items: center; }
.insight-icon .icon { width: 18px; height: 18px; }
.insight-card h2 { font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: 0; margin: 10px 0 6px; }
.insight-card p { font-size: 13px; color: #849087; line-height: 1.5; margin: 0 0 12px; }
.insight-card .primary { width: 100%; justify-content: space-between; padding: 8px 10px; font-size: 13px; }
.stat-card { padding: 15px 16px; flex: 1; }
.stat-label { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #778c7d; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label .icon { width: 15px; }
.stat-value { font-size: 24px; color: #2c5037; font-weight: 400; letter-spacing: -.3px; margin-top: 7px; }
.stat-note { font-size: 12px; color: #869b8c; margin-top: 3px; }
.chart-panel { background: radial-gradient(ellipse at 45% 0, #164b20 0, transparent 67%), linear-gradient(130deg, #0b2c13, #041307 85%); color: #fff; border: 1px solid #164823; border-radius: 12px; padding: 17px 18px; position: relative; display: flex; flex-direction: column; min-height: 306px; overflow: hidden; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel-heading h2 { font-size: 16px; font-weight: 400; letter-spacing: 0; margin: 0 0 4px; }
.panel-heading p { font-size: 12px; margin: 0; color: #94b99c; }
.chart-tag { color: #a5d5af; font-size: 11px; border: 1px solid #629d7050; border-radius: 5px; padding: 4px 7px; white-space: nowrap; }
.legend { display: flex; gap: 14px; margin-top: 13px; font-size: 12px; color: #9ebba5; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 5px; height: 5px; border-radius: 50%; background: #38c85e; }
.legend span + span i { background: #c0dcc8; }
.chart-empty { flex: 1; display: grid; place-items: center; position: relative; margin: 12px 0 10px; min-height: 125px; background: repeating-linear-gradient(0deg, transparent, transparent 31px, #92cf9e12 31px, #92cf9e12 32px); border-bottom: 1px solid #68a37426; }
.empty-message { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.empty-message .icon { width: 24px; height: 24px; color: #75b786; opacity: .7; margin-bottom: 3px; }
.empty-message strong { font-size: 14px; color: #bbd6c2; font-weight: 400; }
.empty-message p { font-size: 12px; color: #7fa78b; margin: 0; line-height: 1.5; }
.chart-axis { display: flex; justify-content: space-between; font-size: 10px; color: #7d9b85; margin: 0 2px 12px; gap: 5px; }
.chart-foot { display: flex; align-items: center; gap: 7px; border: 1px solid #40784975; border-radius: 6px; background: #305b3622; padding: 8px 10px; color: #98ba9f; font-size: 12px; }
.chart-foot .icon { width: 14px; color: #43c064; }
.chart-foot b { color: #64ce7d; font-weight: 400; }
.lower-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 12px; }
.summary-card, .table-card { padding: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.section-head h2 { font-size: 15px; font-weight: 400; margin: 0 0 3px; }
.section-head p { font-size: 12px; color: #899b90; margin: 0; }
.text-button { padding: 0; background: none; color: #4e885c; font-size: 12px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.text-button .icon { width: 13px; height: 13px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-metric { border: 1px solid #dceee2; background: linear-gradient(115deg, #e9f5ec, #fff); border-radius: 8px; padding: 11px 12px; }
.summary-metric span { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #6f9078; display: block; }
.summary-metric strong { font-size: 21px; letter-spacing: -.2px; font-weight: 400; margin: 3px 0; display: block; color: #3c6648; }
.summary-metric small { font-size: 11px; color: #849b8c; }
.summary-footer { font-size: 12px; color: #7da288; border-top: 1px solid #e9f1ec; margin-top: 12px; padding-top: 10px; display: flex; gap: 7px; align-items: center; }
.summary-footer .icon { width: 14px; color: #45975b; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 400; font-size: 12px; color: #85978c; padding: 8px 6px; border-top: 1px solid #e9f0eb; border-bottom: 1px solid #e9f0eb; }
th:last-child { text-align: right; }
.table-empty td { text-align: center; padding: 30px 10px 23px; color: #8a9d90; font-size: 14px; }
.table-empty .icon { width: 23px; height: 23px; color: #a7c4af; display: block; margin: 0 auto 8px; }
.table-empty p { font-size: 12px; color: #899d90; margin: 5px auto 0; line-height: 1.5; }
.source-pill { font-size: 11px; background: #eff6f1; color: #85a18d; border-radius: 4px; padding: 4px 6px; }
.module-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.module-stats .stat-value { font-size: 23px; }
.module-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.module-grid .chart-panel, .module-grid .table-card { min-height: 306px; }
.module-grid .table-empty td { padding-top: 62px; }
.explain-card { margin-top: 12px; padding: 15px 16px; display: flex; align-items: center; gap: 11px; }
.explain-card > .icon { color: #50a86a; width: 21px; height: 21px; }
.explain-card h3 { font-size: 13px; font-weight: 400; margin: 0 0 4px; }
.explain-card p { color: #82968a; font-size: 13px; line-height: 1.5; margin: 0; }
footer { display: flex; justify-content: space-between; gap: 10px; color: #82978a; font-size: 11px; margin-top: 16px; padding: 0 2px; }
footer > span:first-child { display: flex; align-items: center; gap: 6px; }
footer i { width: 4px; height: 4px; background: #aac4b0; border-radius: 50%; }
.footer-dot { margin: 0 6px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 18px); max-width: 90%; background: #13361e; color: white; font-size: 14px; padding: 11px 16px; border-radius: 8px; box-shadow: 0 8px 30px #0a331733; opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { border: 1px solid #dfeee3; border-radius: 14px; padding: 24px; max-width: 410px; color: var(--ink); box-shadow: 0 20px 100px #0a281d33; }
dialog::backdrop { background: #08220d50; backdrop-filter: blur(4px); }
dialog h2 { font-size: 22px; letter-spacing: -.4px; font-weight: 400; margin: 14px 0 8px; }
dialog p { font-size: 14px; color: #7a8d80; line-height: 1.6; margin-bottom: 18px; }
.dialog-icon { display: grid; place-items: center; background: #ecf7ee; color: var(--green); border: 1px solid #cae6d0; border-radius: 9px; width: 36px; height: 36px; }
.mobile-menu { display: none; }
@media (max-width: 1120px) {
 .sidebar { width: 190px; }
 .page, .topbar { padding-left: 16px; padding-right: 16px; }
 .search { width: 190px; }
 .top-actions { gap: 10px; }
 .preview-badge { display: none; }
 .overview-grid { grid-template-columns: 240px 1fr; }
 .module-stats { grid-template-columns: 1fr 1fr; }
 .module-grid { grid-template-columns: 1fr; }
 .country-filter { display: none; }
}
@media (max-width: 820px) {
 .sidebar { width: 68px; padding: 17px 9px; }
 .brand { padding: 0 7px; }
 .brand span, .brand > .icon, .workspace, .nav-heading, .nav-item > span, .admin > div:not(.avatar), .online-dot, .help-button { display: none; }
 .brand img { width: 28px; height: 28px; }
 .nav-item { justify-content: center; padding: 12px 10px; margin-top: 3px; }
 .nav-item .icon { width: 19px; height: 19px; }
 nav { margin-top: 22px; }
 .sidebar-bottom { padding-top: 16px; }
 .admin { justify-content: center; padding-left: 0; padding-right: 0; }
 .overview-grid { grid-template-columns: 1fr; }
 .left-stack { display: grid; grid-template-columns: 1.1fr 1fr; }
 .search { width: 170px; }
 .breadcrumb { display: none; }
}
@media (max-width: 600px) {
 .sidebar { display: none; position: fixed; z-index: 10; width: 208px; min-height: 0; box-shadow: 12px 0 50px #08230d33; }
 .sidebar.open { display: flex; }
 .sidebar.open .brand span, .sidebar.open .brand > .icon, .sidebar.open .workspace, .sidebar.open .nav-heading, .sidebar.open .nav-item > span, .sidebar.open .admin > div:not(.avatar), .sidebar.open .help-button { display: block; }
 .sidebar.open .nav-item { justify-content: flex-start; margin-top: 0; }
 .sidebar.open nav { margin-top: 0; }
 .mobile-menu { display: grid; }
 .topbar { height: 52px; padding: 0 14px; gap: 8px; }
 .top-actions { width: 100%; gap: 9px; }
 .search { width: 100%; }
 .search kbd { display: none; }
 .top-avatar { flex-shrink: 0; }
 .page { padding: 16px 14px; }
 .page-heading { align-items: flex-start; }
 h1 { font-size: 25px; }
 .eyebrow { font-size: 10px; }
 .page-heading p { font-size: 13px; max-width: 260px; }
 .page-heading > .primary { padding: 8px; font-size: 0; gap: 0; }
 .page-heading > .primary > .icon.small { display: none; }
 .filter-group { gap: 4px; }
 .date-filter { padding: 7px; }
 .platform-filter button { padding: 5px 8px; font-size: 12px; }
 .left-stack, .lower-grid { grid-template-columns: 1fr; }
 .module-stats { gap: 10px; }
 .module-stats .stat-value { font-size: 21px; }
 .stat-label { font-size: 11px; }
 .explain-card { align-items: flex-start; }
 footer { flex-direction: column; gap: 7px; }
 .chart-foot { line-height: 1.5; }
 .toast { text-align: center; width: max-content; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
[hidden] { display: none !important; }
.login-panel { position: fixed; inset: 0; z-index: 30; background: radial-gradient(ellipse at 50% 0, #c9e8d2, #edf6ef 65%); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.login-card { width: min(100%,420px); padding: 28px; }
.login-card img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 12px; }
.login-card p { color: #6a8171; font-size: 14px; }
.login-card label { display: grid; gap: 6px; margin: 16px 0; font-size: 14px; }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid #cbded0; border-radius: 7px; color: var(--ink); background: #f8fcf9; }
.login-card .primary { width: 100%; justify-content: center; font-size: 15px; padding: 11px; }
#login-error { color: #a33131; min-height: 20px; }
.advanced-filters { display: flex; align-items: end; gap: 10px; margin: -2px 0 15px; flex-wrap: wrap; }
.advanced-filters label { display: grid; gap: 4px; font-size: 12px; color: #65826c; max-width: 230px; flex: 1; min-width: 120px; }
.advanced-filters input, .advanced-filters select { border: 1px solid #d9eade; border-radius: 7px; background: #ffffff88; padding: 7px 9px; color: #47624f; width: 100%; font-size: 13px; }
.filter-actions { display: flex; gap: 12px; min-height: 34px; align-items: center; margin-left: auto; }
.loading-card, .error-card { padding: 24px; }
.error-card h2 { font-weight: 400; font-size: 18px; }
#content[aria-busy=true] { opacity: .6; pointer-events: none; }
button:disabled { opacity: .5; cursor: wait; }
.stat-value.unavailable { font-size: 19px; }
.stat-note p { margin: 4px 0 0; line-height: 1.45; }
.module-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.chart-scale { position: absolute; left: 0; inset-block: 12px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #94b99c; }
.data-chart { width: 100%; height: 165px; margin-left: 32px; overflow: visible; }
.chart-empty:has(.data-chart) { display: flex; align-items: center; }
.chart-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.line-0 { stroke: #43d576; }
.line-1 { stroke: #c0dcc8; }
.line-2 { stroke: #73b7c3; }
.chart-point { fill: #12341b; stroke-width: 1.5; }
.chart-point:hover { r: 5; }
.table-scroll { overflow-x: auto; }
td { padding: 10px 6px; border-bottom: 1px solid #e9f0eb; vertical-align: top; }
td:last-child { text-align: right; }
th button { padding: 0; color: inherit; background: none; text-align: left; white-space: nowrap; }
.table-card + .table-card { margin-top: 12px; }
.pagination { display: flex; align-items: center; justify-content: end; gap: 10px; margin-top: 12px; font-size: 12px; color: #6c8575; }
.pagination span { margin-right: auto; }
.pagination button { background: #eff7f1; color: #3a6246; padding: 6px 9px; border-radius: 5px; }
.muted { color: #8b9c90; font-size: 12px; }
.explain-card p + p { margin-top: 6px; }
.import-card { padding: 16px; margin-top: 12px; }
#sources-dialog { max-width: 720px; width: calc(100% - 28px); max-height: 85vh; }
#sources-dialog h2 { margin: 0; }
.source-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e1ebe4; padding: 14px 0; }
.source-row h3 { font-weight: 400; font-size: 16px; margin: 0 0 5px; }
.source-row p { font-size: 13px; margin: 0 0 4px; }
.source-row small { color: #899a8e; }
.source-pill { white-space: nowrap; }
.import-actions { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.import-actions label { display: grid; gap: 6px; }
.import-actions select { background: #eef7f0; padding: 8px; border-radius: 6px; }
#import-file { display: block; width: 100%; font-size: 13px; margin-bottom: 16px; }
#import-feedback { color: #285c36; }
@media (max-width:1120px) { .module-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .advanced-filters label { max-width: unset; } .filter-actions { width: 100%; justify-content: space-between; } .login-card { padding: 22px; } .chart-tag { white-space: normal; max-width: 120px; } .source-row { flex-direction: column; gap: 6px; } .stat-value.unavailable { font-size: 16px; } }
