:root{--green:#214e3d;--dark:#193b30;--lime:#d6edb5;--ink:#20332b;--muted:#758078;--line:#e3e8e2;--bg:#f5f6f2;--white:#fff;--orange:#c37b48}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.55 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px 16px;background:white;color:var(--ink);cursor:pointer;font-weight:600;line-height:1.3}button:hover,.button:hover{border-color:#99b29f;background:#f5f8f2}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:var(--dark);color:white}.danger{color:#aa3e35}.small{padding:7px 11px;font-size:12px}.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{position:fixed;width:242px;inset:0 auto 0 0;background:var(--dark);color:#d3ddd5;display:flex;flex-direction:column;padding:31px 22px;z-index:3}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:17px;line-height:1.2;font-weight:650;letter-spacing:-.5px}.brand img{width:38px;height:38px}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:2.2px;margin-top:6px;color:#9db6a7}.workspace{margin:37px 0 29px;border:1px solid #446052;background:#254738;border-radius:8px;padding:12px;display:flex;gap:10px;align-items:center}.avatar{display:grid;place-items:center;background:#daebc1;color:var(--green);border-radius:7px;width:32px;height:32px;font-size:12px;font-weight:700;flex-shrink:0}.workspace strong{color:#f7faf4;font-size:12px;display:block}.workspace small{font-size:10px;color:#a7bdae}.nav-label{font-size:9px;letter-spacing:1.8px;color:#88a391;margin:0 11px 12px}.nav{display:grid;gap:7px}.nav a,.nav button{font-size:13px;padding:11px 13px;display:flex;gap:12px;align-items:center;text-align:left;border:0;color:#bccfc0;background:none;border-radius:6px;font-weight:450}.nav a:hover,.nav button:hover{background:#315341}.nav .active{background:var(--lime);color:var(--dark);font-weight:650}.nav .icon{font-size:17px;width:18px;text-align:center}.side-bottom{margin-top:auto;padding-top:40px}.side-note{margin-top:26px;border-top:1px solid #3a5948;padding:22px 8px 0;font-size:11px;color:#9ab19f}.side-note strong{color:#d1e0d2;display:block;margin-bottom:5px}.main{grid-column:2;min-width:0}.topbar{height:80px;background:#fff;border-bottom:1px solid var(--line);padding:0 37px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.breadcrumb{display:flex;align-items:center;gap:13px}.breadcrumb strong{color:var(--ink);font-weight:550}.account{display:flex;gap:12px;align-items:center}.live-dot{display:inline-block;width:6px;height:6px;background:#679a5b;border-radius:50%;margin-right:7px}.content{padding:33px 37px 26px;max-width:1600px;margin:auto}.eyebrow{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1.8px;margin-bottom:7px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.heading h1{font-size:28px;letter-spacing:-1px;line-height:1.25;font-weight:600;margin:0 0 8px}.heading p{margin:0;color:var(--muted);font-size:12px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.date-select{min-width:170px}.welcome{background:#eaf0e3;border:1px solid #dce6d4;border-radius:9px;padding:20px 24px;display:flex;align-items:center;gap:16px;margin-bottom:24px}.welcome-icon{font-size:24px;color:var(--green)}.welcome strong{font-size:13px;font-weight:600}.welcome p{font-size:11px;color:#6c7b66;margin:4px 0 0}.tag{margin-left:auto;white-space:nowrap;padding:5px 10px;background:#fff9;border:1px solid #d8e2d1;border-radius:5px;font-size:10px;color:#577847}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:9px;padding:22px;min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#718075}.metric-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#f1f5ed;color:#5c7e56;font-size:16px}.metric-value{font-size:30px;letter-spacing:-1px;margin-top:12px;font-weight:600;line-height:1.3}.metric-bottom{font-size:10px;color:#93a08f;margin-top:9px}.delta{color:#57854a;font-weight:600;margin-right:5px}.negative{color:#bb6b4e}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:21px;margin-bottom:21px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:18px}.card-head h2{font-size:14px;font-weight:600;margin:0 0 4px}.card-head p{font-size:10px;color:var(--muted);margin:0}.source-chip{font-size:9px;color:#7e8e7b;background:#f5f7f2;border:1px solid #e8ece4;border-radius:4px;padding:4px 7px;white-space:nowrap}.chart{width:100%;height:230px;display:block}.chart-labels{display:flex;justify-content:space-between;font-size:9px;color:#98a092;padding-left:31px;margin-top:1px}.legend{font-size:10px;display:flex;gap:17px;color:#7a877b;margin-top:6px}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#639353;margin-right:5px}.legend .pale{background:#b9cda6}.empty-chart{height:224px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 54px,#edf0e9 55px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#899383;font-size:12px}.empty-chart strong{font-weight:500;color:#6e7e65}.empty-chart small{font-size:10px;margin-top:7px}.donut-layout{display:flex;align-items:center;gap:24px;justify-content:center;min-height:180px}.donut{height:145px;width:145px;flex-shrink:0;border-radius:50%;background:#edf1e8;position:relative;display:grid;place-items:center}.donut:before{content:'';position:absolute;inset:23px;border-radius:50%;background:white}.donut-center{z-index:1;text-align:center;font-size:22px;font-weight:600}.donut-center small{display:block;font-size:9px;font-weight:400;color:var(--muted)}.channel-list{display:grid;gap:12px;flex:1;min-width:0}.channel-row{font-size:10px;display:flex;align-items:center;gap:6px}.channel-row i{height:7px;width:7px;border-radius:2px;flex-shrink:0}.channel-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-row strong{margin-left:auto;font-weight:550}.card-foot{border-top:1px solid var(--line);margin-top:19px;padding-top:12px;font-size:10px;color:#87917e}.search-summary{display:grid;grid-template-columns:repeat(4,1fr);margin:8px 0 21px}.search-summary>div{padding-left:18px;border-left:1px solid var(--line)}.search-summary>div:first-child{padding-left:0;border:0}.search-summary small{color:var(--muted);font-size:10px}.search-summary strong{display:block;font-size:21px;font-weight:550;margin-top:3px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:11px}th{font-weight:500;color:#899184;font-size:10px;white-space:nowrap;background:#f8f9f5}td,th{border-bottom:1px solid #edf0e9;padding:12px 9px}td:first-child,th:first-child{padding-left:0}td:not(:first-child),th:not(:first-child){text-align:right}tbody tr:last-child td{border-bottom:0}.path{display:block;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-table{text-align:center!important;color:#97a08e;padding:38px!important}.full{margin-bottom:22px}.status{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font-size:10px;border-radius:4px;background:#edf4e7;color:#608050}.status.error,.status.failed,.status.uncertain,.status.stale{background:#fcf0e5;color:#b67d45}.status.unconfigured{color:#8b9185;background:#f0f2ec}.footer{font-size:10px;color:#92998b;display:flex;justify-content:space-between;margin-top:28px;gap:10px}.footer strong{color:#6b7b60;font-weight:500}.loading{padding:80px;text-align:center;color:var(--muted)}.empty-state{text-align:center;padding:55px 20px;color:var(--muted)}.empty-state h2{font-size:21px;font-weight:550;color:var(--ink);margin:14px 0 8px}.empty-state p{max-width:470px;margin:0 auto 22px}.empty-state .symbol{font-size:37px;color:#8da17f}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:var(--dark);padding:65px;display:flex;flex-direction:column;justify-content:space-between;color:#e3ebdf}.login-art h1{font-size:52px;line-height:1.13;letter-spacing:-2px;font-weight:500;max-width:480px}.login-art h1 em{color:#d2eaa8;font-style:normal}.login-art p{color:#a3b9a5;max-width:400px}.login-form{display:flex;align-items:center;justify-content:center;padding:30px}.login-form>div{width:360px}.login-form h2{font-size:26px;margin-bottom:5px;letter-spacing:-.6px}.login-form p{color:var(--muted);margin-bottom:28px}.login-form button{width:100%;margin-top:8px}label{display:block;font-size:11px;color:#64715f;font-weight:600;margin-bottom:6px}input,select,textarea{border:1px solid #dce2d7;border-radius:6px;padding:10px 12px;color:var(--ink);background:white;max-width:100%}input:not([type=checkbox]),textarea{width:100%}input:focus,select:focus,textarea:focus{border-color:#668e54;outline:2px solid #e3edda}textarea{resize:vertical;min-height:100px}input[type=checkbox]{accent-color:var(--green)}.field{margin-bottom:18px}.field small{display:block;font-size:10px;color:#929987;margin-top:5px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.form-grid .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}.section-title{font-size:13px;font-weight:600;padding-bottom:13px;border-bottom:1px solid var(--line);margin:8px 0 20px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.admin-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.admin-cards .metric-value{font-size:26px}.client-name{display:flex;align-items:center;gap:11px;text-align:left}.client-name strong{display:block;font-size:12px}.client-name small{color:var(--muted);font-size:10px}.admin-table td{vertical-align:middle;padding:17px 10px}.admin-table .actions{justify-content:flex-end}.notice{background:#fff6e9;border:1px solid #eeddbb;color:#96743d;padding:12px 16px;border-radius:7px;font-size:12px;margin-bottom:20px}.notice a{text-decoration:underline}.error-text{color:#b05f42;font-size:12px;min-height:18px;margin-top:10px}dialog{border:1px solid var(--line);border-radius:12px;width:min(830px,95vw);max-height:90vh;padding:28px;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#14271ecc;backdrop-filter:blur(3px)}dialog h2{font-size:22px;margin:0 0 8px}dialog>p{font-size:12px;color:var(--muted);margin-bottom:24px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid h2{font-size:17px;margin:0 0 8px}.settings-grid p{font-size:12px;color:var(--muted)}.settings-grid .full-width{grid-column:1/-1}.code-note{font-family:Consolas,monospace;font-size:11px;background:#f1f4ed;padding:12px;border-radius:5px;overflow-wrap:anywhere}.inline-report{width:100%;height:560px;border:1px solid var(--line);background:white;border-radius:8px}.search-panel{margin-bottom:21px}.source-status{display:flex;gap:8px;flex-wrap:wrap}.hidden{display:none!important}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--dark);color:white;border-radius:8px;padding:12px 22px;z-index:20;box-shadow:0 8px 30px #0002;display:none;max-width:90vw;font-size:12px}#toast.show{display:block}.mobile-brand{display:none}.report-meta{font-size:10px;color:var(--muted)}.bars{display:grid;gap:16px;margin-top:22px}.bar-title{display:flex;justify-content:space-between;font-size:11px;margin-bottom:6px}.bar-bg{height:6px;background:#edf1e8;border-radius:10px}.bar-fill{height:6px;background:#789966;border-radius:10px}.error-page{max-width:600px;margin:120px auto;padding:35px;text-align:center}.error-page h1{font-size:30px}.error-page p{color:var(--muted)}
.nav button.active:hover,.nav a.active:hover{background:var(--lime);color:var(--dark)}
@media(min-width:1600px){.content{padding-top:40px}.chart{height:260px}.donut-layout{min-height:210px}}@media(max-width:1150px){.shell{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:26px 16px}.content{padding:25px}.topbar{padding:0 25px}.grid-main{grid-template-columns:1fr}.kpis{gap:12px}.card{padding:18px}.metric-value{font-size:25px}.donut-layout{justify-content:flex-start;gap:40px}.channel-list{max-width:350px}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:16px;display:block}.brand img{width:30px;height:30px}.brand{font-size:15px}.brand small{font-size:8px}.sidebar .workspace,.nav-label,.side-bottom{display:none}.sidebar .nav{display:flex;gap:4px;overflow:auto;margin-top:18px}.nav a,.nav button{padding:8px 11px;font-size:11px;white-space:nowrap}.nav .icon{display:none}.topbar{height:55px;padding:0 18px;font-size:10px}.account>span{display:none}.content{padding:23px 16px}.heading{align-items:flex-start;flex-direction:column;gap:16px}.heading h1{font-size:25px}.actions{width:100%}.heading .actions button,.heading .actions a{font-size:11px}.date-select{min-width:145px;font-size:11px}.welcome{padding:16px;align-items:flex-start}.tag{display:none}.kpis{grid-template-columns:1fr 1fr;gap:12px}.metric-value{font-size:28px}.card{padding:17px}.metric-top{font-size:10px}.metric-bottom{font-size:9px}.search-summary strong{font-size:18px}.search-summary>div{padding-left:10px}.search-summary small{font-size:9px}.form-grid,.settings-grid{grid-template-columns:1fr}.form-grid .wide,.settings-grid .full-width{grid-column:auto}.admin-cards{gap:10px}.admin-cards .metric-value{font-size:22px}.admin-cards .metric-top{font-size:9px}.admin-cards .metric-icon{display:none}.login-page{display:block}.login-art{padding:28px}.login-art h1{font-size:34px;max-width:400px;margin:30px 0 15px}.login-art>small,.login-art p{display:none}.login-form{padding:30px 24px}.footer{flex-direction:column}.donut-layout{gap:22px}.donut{height:130px;width:130px}.donut:before{inset:21px}dialog{padding:22px}.chart{height:190px}.table-wrap{max-width:100%}.client-name{min-width:160px}.source-chip{font-size:8px}.path{max-width:200px}}
