:root{--sidebar:#0d1524;--bg:#f6f8fc;--card:#fff;--primary:#2563eb;--text:#111827;--muted:#667085;--border:#e5eaf1;--success:#16a36a;--danger:#e05252;--radius:12px;--nav:216px;--shadow:0 3px 16px #18294d04}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'Segoe UI',Arial,sans-serif}body.dark{--bg:#111b2d;--card:#19263b;--text:#edf2fc;--muted:#a4b2ca;--border:#2c3a51;--shadow:none}button,input,select{font:inherit}button{cursor:pointer;border:1px solid transparent;border-radius:8px;padding:9px 13px;background:var(--primary);color:#fff;font-weight:600;transition:background .18s,box-shadow .18s}button:hover{filter:brightness(.96);box-shadow:0 3px 8px #12244612}button:disabled{opacity:.45;cursor:default}input,select{border:1px solid var(--border);border-radius:8px;padding:9px 11px;background:var(--card);color:var(--text);min-width:0}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #80aaff;outline-offset:2px}.secondary{background:var(--card);color:var(--text);border-color:var(--border)}.textButton{background:transparent;color:var(--muted);padding:2px 8px;font-size:20px}.wide{width:100%}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--nav);background:var(--sidebar);color:#cbd5e1;display:flex;flex-direction:column;z-index:20;padding:23px 12px;overflow-y:auto}.brand{display:flex;gap:11px;align-items:center;color:white;text-decoration:none;font-size:16px;font-weight:700;white-space:nowrap;padding:0 7px 30px}.brand small{display:block;color:#94a3b8;font-size:12px;font-weight:400;margin-top:5px}.brandMark{width:28px;display:grid;grid-template-columns:repeat(2,12px);gap:3px;flex-shrink:0}.brandMark i{width:12px;height:12px;border-radius:50%;background:#38bdf8}.brandMark i:nth-child(2){background:#526dff}.brandMark i:nth-child(3){background:#4ade80}.brandMark i:nth-child(4){background:#fb5873}.nav{width:100%;display:flex;gap:13px;align-items:center;margin:4px 0;background:transparent;color:#cbd5e1;text-align:left;padding:12px;font-weight:400;white-space:nowrap}.nav.active{background:#223552;color:white;box-shadow:inset 3px 0 #5794ff}.navIcon{font-size:21px;line-height:1;width:22px;text-align:center;flex-shrink:0}.navText{font-size:12px}.asideFoot{margin-top:auto;padding-top:30px}.readOnly{font-size:12px;color:#83a798;padding:12px}.collapsed{--nav:68px}.collapsed .navText,.collapsed .brand>span:last-child,.collapsed .readOnly{display:none}.collapsed .brand{padding-left:5px}.collapsed .nav{padding-left:9px}main{margin-left:var(--nav);padding:0 26px 24px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.workspace{min-width:0}header{height:65px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);margin-bottom:18px}#globalSearch{width:44%;background:var(--bg)}.topActions{display:flex;align-items:center;gap:10px}.profile{display:flex;align-items:center;gap:10px;font-size:12px}.profile>b{background:var(--primary);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:white}.profile small{display:block;color:var(--muted);font-size:12px}.heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;gap:12px}.eyebrow{font-size:9px;letter-spacing:1.4px;color:var(--muted);margin:0 0 6px}h1{font-size:25px;letter-spacing:-.7px;margin:0}h2{font-size:15px;margin:0;font-weight:650}p{color:var(--muted);line-height:1.55;margin:7px 0}small,.muted{color:var(--muted)}.heading p:last-child{font-size:12px;margin-bottom:0}.filters{display:flex;flex-wrap:wrap;gap:9px;align-items:end;background:var(--card);border:1px solid var(--border);padding:12px;border-radius:var(--radius)}.filters label{flex:1;display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);min-width:100px}.filters input,.filters select{width:100%}.reportModes{display:flex;gap:4px;margin-bottom:10px}.reportModes button{background:transparent;color:var(--muted);font-size:12px;padding:8px 18px}.reportModes button.active{background:#203665;color:#fff}#status{font-size:12px;min-height:18px;margin:10px 0}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.metrics article{border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow);border-radius:var(--radius);padding:17px 16px;min-width:0}.metrics article:nth-child(3){order:-1}.metrics article:last-child{order:0}.metrics article:nth-child(4){order:2}.metrics span{font-size:12px;color:var(--muted)}.metrics strong{display:block;font-size:25px;margin:14px 0 9px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.metrics small{font-size:12px;display:block}.metrics article:before{content:'↗';display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#edf3ff;color:var(--primary);margin-right:8px}.metrics article:nth-child(3):before{content:'₽';color:var(--success);background:#e9f8ef}.metrics article:last-child:before{content:'☆';color:#ee9c25;background:#fff5e4}.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin:14px 0;box-shadow:var(--shadow);min-width:0}.panelHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panelHeading p{font-size:12px}.legend{font-size:12px;color:var(--primary)}.legend b{color:var(--success);font-weight:500;margin-left:10px}.chart{height:190px;display:flex;align-items:end;gap:10px;border-bottom:1px solid var(--border);padding:0 12px 24px;background:repeating-linear-gradient(to top,transparent 0,transparent 40px,var(--border) 41px,transparent 42px)}.day{flex:1;position:relative;height:100%;display:flex;align-items:end;justify-content:center;gap:3px}.bar{width:20px;background:linear-gradient(#9abaff,#4c7cfa);border-radius:3px 3px 0 0;min-height:1px}.bar.contact{background:var(--success);width:8px}.day label{position:absolute;bottom:-19px;font-size:9px;color:var(--muted);white-space:nowrap}.empty{color:var(--muted);text-align:center;padding:32px;font-size:12px}.chart.empty{align-items:center;justify-content:center;background:none}.chartGrid{display:grid;grid-template-columns:1.65fr 1fr;gap:14px}.chartGrid .panel{margin:0}.donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--primary) 0 100%);margin:18px auto;display:grid;place-items:center}.donut>div{background:var(--card);width:112px;height:112px;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:18px;font-weight:700}.donut small{font-weight:400;font-size:12px;margin-top:6px}.tableScroll{overflow:auto;max-height:510px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;white-space:nowrap}th{position:sticky;top:0;background:var(--bg);color:var(--muted);font-size:12px;font-weight:500;z-index:1}th,td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--border)}tr:hover td{background:var(--bg)}td{font-variant-numeric:tabular-nums}td button{background:transparent;color:var(--primary);padding:0;text-align:left}.projectCell{display:flex;align-items:center;gap:10px}.projectAvatar{width:29px;height:29px;background:#eaf1ff;color:var(--primary);border-radius:7px;display:grid;place-items:center;font-weight:700;flex-shrink:0}.paging{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:12px;color:var(--muted)}.paging button{padding:5px 12px;margin-left:7px}.infoRail{padding-top:65px;min-width:0}.infoRail .panel{margin:0 0 16px}.integration{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid var(--border);margin-bottom:12px}.integration b{font-size:12px}.integration p{font-size:12px;margin:4px 0}.integration small{font-size:12px}.serviceIcon{height:36px;width:36px;border-radius:8px;display:grid;place-items:center;font-size:25px}.green{background:#e5f8ec;color:#128057}.blue{background:#ebf2ff;color:var(--primary)}#events{list-style:none;padding:0;margin:16px 0 0}#events li{position:relative;padding:0 0 22px 24px;font-size:12px;border-left:1px solid var(--border);margin-left:6px}#events li:before{content:'';position:absolute;width:9px;height:9px;background:var(--primary);border:4px solid var(--bg);border-radius:50%;left:-9px;top:0}#events small{display:block;margin-top:7px}.tip{background:#eeecff;color:#5141a3;padding:19px;border-radius:var(--radius);font-size:12px}.tip p{font-size:12px;color:#5c547a}.infoHidden main{grid-template-columns:minmax(0,1fr)}.infoHidden .infoRail{display:none}details summary{cursor:pointer;font-size:12px;color:var(--muted)}.chips p{font-size:12px}.chips{display:block}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}footer{font-size:12px;color:var(--muted);line-height:1.7;margin-top:20px}dialog{position:fixed;margin:0 0 0 auto;inset:0;width:min(820px,95vw);height:100dvh;max-height:100dvh;border:0;background:var(--card);color:var(--text);padding:28px;box-shadow:-10px 0 60px #0002;animation:slide .2s}dialog::backdrop{background:#0d152470}dialog .tableScroll{max-height:65vh}#employeeRows td{white-space:normal}#employeeRows td:nth-child(2){max-width:280px}[hidden]{display:none!important}@keyframes slide{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}body.loading .metrics strong{color:transparent;background:linear-gradient(90deg,var(--bg),var(--border),var(--bg));background-size:200% 100%;border-radius:5px;animation:shimmer 1.5s infinite}@keyframes shimmer{to{background-position:-200% 0}}@media(max-width:1599px){main{grid-template-columns:minmax(0,1fr);padding:0 22px 22px}.infoRail{display:none}.infoOpen .infoRail{display:block;position:fixed;right:0;top:0;bottom:0;width:300px;padding:20px;background:var(--bg);box-shadow:-8px 0 50px #0002;z-index:40;overflow:auto}}@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,1fr)}.profile{display:none}.chartGrid{grid-template-columns:1fr}.filters button{flex:1}}@media(max-width:760px){:root{--nav:60px}.navText,.brand>span:last-child,.readOnly{display:none}.sidebar{padding:18px 6px}.brand{padding:0 10px 25px}.nav{padding:10px 8px}.navIcon{width:20px}main{padding:0 12px 16px}.metrics{grid-template-columns:repeat(2,1fr)}.metrics strong{font-size:22px}.heading{align-items:start}h1{font-size:21px}.heading .eyebrow{display:none}header{gap:8px}#globalSearch{width:100%}.topActions{gap:4px}.topActions button{padding:8px}.filters label{min-width:110px}.panel{padding:13px}.reportModes button{padding:8px}.panelHeading{flex-wrap:wrap}.chart{gap:3px}.metrics article{padding:12px}}@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#analyticsPanel .panelHeading{flex-wrap:wrap}.svgChart{min-height:205px}.donut:has(#donutValue:only-child){background:var(--border)}.metrics article small{min-height:14px}#refreshNow{white-space:nowrap}.heading>div{flex:1}.metrics article:nth-child(1){order:0}.metrics article:nth-child(2){order:-1}.metrics article:nth-child(3){order:-2}#projectRows td:nth-child(2),#projectRows td:nth-child(3){max-width:130px;white-space:normal}.profile{white-space:nowrap}
.heading{margin-bottom:12px}header{height:56px;margin-bottom:14px}.metrics article{padding:14px}.metrics strong{margin:10px 0 7px}.filters{padding:10px}.chartGrid .panel{padding:16px}.donut{background:var(--border);width:136px;height:136px;margin:14px auto}.donut>div{width:100px;height:100px}.infoRail{padding-top:56px}
#weeklyPanel{border-top:3px solid var(--primary);margin-bottom:22px}#weeklyPanel .tableScroll{max-height:410px}#weeklyRows td:nth-child(3){font-weight:650;font-variant-numeric:tabular-nums}#weeklyTotal{font-weight:650;color:var(--text)}

.connectionStatus{margin-top:16px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--bg);max-width:620px}.connectionStatusHeading{display:flex;align-items:center;gap:9px;font-size:14px}.connectionStatusIcon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--border);color:var(--muted);flex-shrink:0}.connectionStatus.success .connectionStatusIcon{background:#e5f8ec;color:#08794a}.connectionStatus.warning .connectionStatusIcon{background:#fff1ce;color:#986000}.connectionStatus.error .connectionStatusIcon{background:#ffebeb;color:#b42318}.connectionStatusAccount{font-size:12px;margin:6px 0 12px}.connectionPermissions{list-style:none;padding:0;margin:0}.connectionPermissions li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:9px 0;border-top:1px solid var(--border);font-size:12px}.connectionPermission{font-weight:600}.connectionPermission.available{color:var(--success)}.connectionPermission.unavailable{color:#986000}.connectionStatusMessage{width:100%;font-size:12px;margin:0;overflow-wrap:anywhere}.connectionChecked{display:block;margin-top:10px;font-size:12px}body.dark .connectionPermission.unavailable{color:#efbd66}@media(max-width:760px){.connectionStatus{padding:12px}.connectionStatusHeading{align-items:flex-start}}

/* Light workspace and project-cost overview. */
:root{--sidebar:#f8faff;--bg:#f7f9fd;--nav:220px;--border:#e5ebf5;--text:#101828;--muted:#697897}
.sidebar{border-right:1px solid var(--border);padding:20px 10px;color:var(--muted)}.brand{color:var(--text);padding:0 12px 27px;font-size:19px;gap:9px;letter-spacing:-.6px}.brand small{display:none}.brandMark{gap:2px;transform:rotate(-8deg)}.brandMark i:nth-child(2){background:#f45d7b}.brandMark i:nth-child(4){background:#ffab2f}.nav{color:var(--muted);gap:13px;margin:3px 0;padding:13px 15px}.nav.active{color:#2682ff;background:#e8f1ff;box-shadow:none;font-weight:600}.navIcon svg{width:21px;height:21px;display:block}.navText{font-size:13px}.readOnly{color:var(--muted)}
header{height:64px;margin-bottom:22px}#globalSearch{max-width:620px;width:48%;height:40px;background:transparent}.profile{padding-left:5px;gap:14px}.profile::before{content:'';width:29px;height:29px;border-radius:50%;background:radial-gradient(circle at 50% 33%,#aeb8c8 0 21%,transparent 23%),radial-gradient(ellipse at 50% 105%,#aeb8c8 0 44%,transparent 46%),#e9edf4}.topActions button{min-height:38px}button.secondary{box-shadow:0 2px 5px #18294d03}h1{font-size:28px;letter-spacing:-.65px}.eyebrow{font-size:12px;margin-bottom:9px}.heading{margin-bottom:21px;flex-wrap:wrap}.heading>div:first-child{min-width:260px}.heading>div.homeActions{flex:0 1 auto;display:flex;gap:12px;align-items:center}.weeklyDate{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid var(--border);border-radius:8px;background:var(--card);white-space:nowrap;font-size:12px}.weeklyDate::before{content:'▦';font-size:17px;color:var(--muted)}.heading button{min-height:40px;white-space:nowrap}
.homeView main{grid-template-columns:minmax(0,1fr);gap:0}.homeView .workspace>.reportModes,.homeView #filterPanel,.homeView #status,.homeView #kpis,.homeView .chartGrid,.homeView #projectPanel,.homeView #adsPanel,.homeView #qualityPanel,.homeView #settingsPanel,.homeView #accessPanel,.homeView #export{display:none}.homeView .infoRail{display:none}.homeView.infoOpen .infoRail{display:block;position:fixed;inset:0 0 0 auto;width:300px;padding:20px;background:var(--bg);box-shadow:-8px 0 50px #0002;z-index:40;overflow:auto}.homeView footer{margin-top:16px;opacity:.8}
.weeklyCards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.weeklyCards article{display:flex;gap:19px;align-items:flex-start;padding:23px 20px;background:var(--card);border:1px solid var(--border);border-radius:11px;min-width:0;box-shadow:var(--shadow)}.weeklyCards article>div{flex:1;min-width:0;position:relative}.weeklyCards p{font-size:12px;margin:0 0 7px;line-height:1.4}.weeklyCards strong{display:block;font-size:25px;line-height:1.2;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.weeklyCards small{display:block;font-size:12px;margin-top:7px}.weeklyIcon{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border-radius:16px;background:#ebf2ff;color:#2682ff;font-size:29px;font-weight:500}.weeklyIcon.amber{color:#ffb000;background:#fff5db}.weeklyPercent{position:absolute;right:0;top:28px;font-size:12px;color:var(--muted)}#weeklyLoaded{padding-right:36px;font-size:23px}#weeklyProgress{appearance:none;display:block;width:100%;height:8px;border:none;border-radius:8px;overflow:hidden;background:var(--border);margin-top:12px}#weeklyProgress::-webkit-progress-bar{background:var(--border)}#weeklyProgress::-webkit-progress-value{background:linear-gradient(90deg,#216dff,#56a6ff);border-radius:8px}#weeklyProgress::-moz-progress-bar{background:#3285ff}
#weeklyPanel{border-top:1px solid var(--border);margin:0;padding:21px;border-radius:12px}#weeklyPanel h2{font-size:19px;letter-spacing:-.3px}#weeklyPanel .panelHeading{padding-bottom:15px;border-bottom:1px solid var(--border);margin-bottom:0}#weeklyPanel .panelHeading p{font-size:12px;margin-bottom:0}.weeklyOverview{display:grid;grid-template-columns:2fr .65fr 1fr 1.4fr;align-items:center;gap:24px;padding:20px 7px}.weeklyCompletion>span{font-size:12px}.weeklyCompletion small{font-size:12px}.weeklySegments{display:flex;gap:3px;height:30px;align-items:end;margin:9px 0}.weeklySegments span{flex:1;min-width:2px;max-width:24px;height:24px;background:var(--border);border-radius:3px}.weeklySegments .available{background:linear-gradient(#ffdf8e,#ffbd25)}.weeklySegments .loading{background:#86b4ff}.weeklySegments .error{background:#f8b5b5}.weeklyOverviewNumber{border-left:1px solid var(--border);padding-left:24px}.weeklyOverviewNumber strong{font-size:21px;display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.weeklyOverviewNumber small{display:block;font-size:12px;margin-top:5px}#weeklyStatus{padding:12px 14px;background:#f0f5ff;border:1px solid #e7eeff;border-radius:9px;font-size:12px;margin:0;line-height:1.7}#weeklyPanel .tableScroll{max-height:430px;border-radius:8px}#weeklyPanel table{white-space:normal}#weeklyPanel th{background:#f0f3f9;font-size:12px;padding:11px 15px}#weeklyPanel td{padding:9px 15px;border:0;font-size:12px}#weeklyPanel th:first-child{width:46%}#weeklyPanel th:nth-child(2){width:13%}#weeklyPanel th:nth-child(3){width:15%}#weeklyPanel th:last-child{width:26%}#weeklyPanel tbody tr:nth-child(even){background:var(--bg)}#weeklyRows td:nth-child(3){white-space:nowrap}#weeklySort{padding:0;background:transparent;color:inherit;font-size:inherit;font-weight:inherit;text-align:left}#weeklySort:hover{box-shadow:none;color:var(--primary)}.weeklyBadge{display:inline-flex;align-items:center;gap:7px;font-size:12px;padding:4px 10px;border-radius:20px;background:#edf1f6;color:var(--muted);white-space:nowrap}.weeklyBadge::before{content:'';height:7px;width:7px;border-radius:50%;background:currentColor}.weeklyBadge.pending{background:#fff4d6;color:#906200}.weeklyBadge.loading{background:#e8f1ff;color:#276adb}.weeklyBadge.available{background:#e6f7ef;color:#128057}.weeklyBadge.error{background:#fff0ef;color:#bd3c3c}.weeklyError{display:block;max-width:320px;margin:5px 0;font-size:12px;line-height:1.4}.weeklyTotalBox{display:flex;align-items:center;gap:15px;padding:17px 18px;margin-top:17px;border:1px solid #ffebbd;border-radius:10px;background:linear-gradient(110deg,#fff9e9,#fffdf6)}.weeklyTotalBox .weeklyIcon{width:32px;height:32px;font-size:25px;background:transparent}.weeklyTotalBox #weeklyTotal{margin:0;display:flex;align-items:center;gap:18px;flex-wrap:wrap;flex:1;color:var(--text);font-size:12px;font-weight:600}.weeklyTotalBox strong{font-size:23px;white-space:nowrap}.weeklyTotalBox>small{font-size:12px;max-width:350px;line-height:1.7}
body.dark{--sidebar:#152035}body.dark .sidebar{background:var(--sidebar)}body.dark .nav.active{background:#233a5f;color:#a0c4ff}body.dark #weeklyPanel th{background:#23314a}body.dark #weeklyStatus{background:#203451;border-color:#2c4469}body.dark .weeklyTotalBox{background:#302c20;border-color:#53462b}body.dark .weeklyIcon.amber{background:#443824}body.dark .weeklyIcon{background:#223a5c}body.dark .weeklyBadge.pending{background:#443824;color:#ffcf70}body.dark .weeklyBadge.available{background:#1f4038;color:#7ee0b4}body.dark .weeklyBadge.loading{background:#233a5f;color:#a0c4ff}body.dark .weeklyBadge.no_ads{background:#27354a}
@media(max-width:1250px){.weeklyCards article{padding:18px 14px;gap:12px}.weeklyCards strong{font-size:21px}.weeklyIcon{width:38px;height:38px;border-radius:12px}.weeklyOverview{grid-template-columns:1.5fr .7fr 1fr;gap:16px}#weeklyStatus{grid-column:1/-1}.weeklyTotalBox>small{max-width:250px}.heading>div.homeActions{margin-left:auto}}
@media(max-width:960px){.weeklyCards{grid-template-columns:repeat(2,minmax(0,1fr))}.weeklyTotalBox{flex-wrap:wrap}.weeklyTotalBox>small{max-width:none;flex-basis:100%}.heading>div.homeActions{margin-left:0}.weeklyOverview{gap:12px}.weeklyOverviewNumber{padding-left:12px}}
@media(max-width:760px){:root{--nav:60px}.sidebar{padding:18px 6px}.nav{padding:12px 8px}.brand{padding:0 9px 26px}.homeView h1{font-size:23px}.heading>div:first-child{min-width:0;flex-basis:100%}.heading>div.homeActions{flex:1 1 100%;gap:8px;flex-wrap:wrap}.weeklyDate{font-size:12px;padding:10px}.weeklyCards{gap:8px}.weeklyCards article{padding:13px;gap:8px;flex-direction:column}.weeklyCards article>div{width:100%}.weeklyCards p{font-size:12px}.weeklyCards strong,#weeklyLoaded{font-size:20px}.weeklyIcon{width:34px;height:34px;font-size:23px}.weeklyPercent{top:26px}.weeklyOverview{grid-template-columns:1fr 1fr;padding:16px 0}.weeklyCompletion{grid-column:1/-1}.weeklyOverviewNumber{padding:0;border:0}.weeklyOverviewNumber strong{font-size:19px}#weeklyPanel{padding:13px}#weeklyPanel h2{font-size:17px}#weeklyPanel .tableScroll{max-height:460px}#weeklyPanel table{min-width:600px}#weeklyPanel td{padding:9px 12px}.weeklyTotalBox{padding:12px;gap:10px}.weeklyTotalBox #weeklyTotal{gap:6px}.weeklyTotalBox strong{font-size:21px}.weeklyTotalBox .weeklyIcon{display:none}}
@media(max-width:760px){header{height:auto;flex-wrap:wrap;padding:12px 0;gap:8px}#globalSearch{width:100%;max-width:none;flex:1 1 100%}.topActions{margin-left:auto;gap:7px}.topActions .profile{gap:7px;padding-left:0}.topActions .profile::before{display:none}.topActions button{font-size:12px}}

/* Design audit: hierarchy, legibility, keyboard access and mobile reporting. */
:root{--muted:#566580;--success:#128057}body{line-height:1.45}button,input,select{min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #7caaff;outline-offset:3px}button:disabled{cursor:not-allowed}.nav{min-height:44px}.nav.active{background:#e8f1ff;color:#1764ce}.navText{font-size:14px}.sidebar .brand{font-size:18px}.sidebar .readOnly{font-size:12px}.weeklyIcon svg{width:25px;height:25px}
body[data-view="7"] .reportModes,body[data-view="7"] #filterPanel,body[data-view="7"] #status,body[data-view="7"] #kpis,body[data-view="7"] .chartGrid,body[data-view="7"] #projectPanel,body[data-view="7"] #adsPanel,body[data-view="7"] #qualityPanel,body[data-view="7"] #export,body[data-view="7"] #refreshNow,body[data-view="3"] .reportModes,body[data-view="3"] #filterPanel,body[data-view="3"] #status,body[data-view="3"] #kpis,body[data-view="3"] .chartGrid,body[data-view="3"] #projectPanel,body[data-view="3"] #adsPanel,body[data-view="3"] #qualityPanel,body[data-view="3"] #settingsPanel,body[data-view="3"] #accessPanel,body[data-view="3"] #employeePanel,body[data-view="3"] #export,body[data-view="3"] #refreshNow{display:none!important}
.heading .eyebrow{font-size:12px;letter-spacing:1.25px}.heading p:last-child{font-size:13px}.weeklyDate{font-size:13px;background:transparent;border-color:transparent;padding-left:0}.weeklyDate::before{content:none}.weeklyCards{gap:16px}.weeklyCards article{padding:16px;gap:12px}.weeklyCards p{font-size:13px;min-height:0;margin-bottom:6px}.weeklyCards strong{font-size:26px;letter-spacing:-.6px}.weeklyCards small{font-size:12px;line-height:1.4;margin-top:5px}.weeklyPercent{position:static;float:right;margin-top:-25px;font-size:12px}#weeklyLoaded{font-size:24px;padding-right:38px}.weeklyIcon{width:42px;height:42px;border-radius:13px}.weeklyCards article>div{min-width:0}.weeklyCards strong{overflow-wrap:anywhere}.weeklyCards #weeklyProgress{height:6px;margin-top:8px}
#weeklyPanel{padding:22px}#weeklyPanel .panelHeading{padding-bottom:17px}#weeklyPanel .panelHeading p{font-size:13px}.weeklyOverview{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px 24px;align-items:start;padding:14px 0}.weeklyOverviewNumber{display:none}.weeklyCompletion{grid-row:1/3}.weeklyCompletion>span{font-size:13px;font-weight:600}.weeklyCompletion small{font-size:12px;display:block;margin-top:6px}.weeklySegments{height:8px;margin:8px 0;align-items:stretch;gap:3px}.weeklySegments span{height:8px;max-width:none;border-radius:3px}.weeklySegments .available{background:#128057}.weeklySegments .pending{background:#e8c164}.weeklySegments .loading{background:#4c87e0}.weeklySegments .error{background:#db6262}.weeklyLegend{display:flex;flex-wrap:wrap;gap:10px 15px;font-size:12px;color:var(--muted)}.weeklyLegend span::before{content:'';display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:6px;background:#e8c164}.weeklyLegend .available::before{background:#128057}.weeklyLegend .error::before{background:#db6262}#weeklyStatus{grid-column:2;grid-row:1;font-size:13px;padding:12px 14px;line-height:1.6}#weeklyUpdated{grid-column:2;grid-row:2;font-size:12px;margin:5px 0 0}
.weeklyTools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:2px 0 12px}.weeklyTools label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.weeklyTools select{min-width:170px;font-size:13px}.weeklyTools button{font-size:13px}#weeklySort{min-height:40px;padding:9px 12px;background:var(--card);border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text)}#weeklyRowCount{font-size:12px;color:var(--muted);margin-left:auto;padding-bottom:10px}#weeklyReset{font-size:12px;color:var(--primary)}#weeklyPanel .tableScroll{max-height:480px;scrollbar-gutter:stable}#weeklyPanel th{font-size:12px;font-weight:600;padding:12px 15px}#weeklyPanel td{padding:12px 15px;font-size:13px;line-height:1.5;vertical-align:top}#weeklyPanel th:first-child{width:42%}#weeklyPanel th:nth-child(2){width:13%}#weeklyPanel th:nth-child(3){width:18%;text-align:right}#weeklyPanel td:nth-child(3){text-align:right;padding-right:26px}#weeklyPanel th:last-child{width:27%}.weeklyBadge{font-size:12px;font-weight:500;padding:4px 10px;min-height:26px}.weeklyError{max-width:340px;margin-top:6px}.weeklyError summary{font-size:12px;color:var(--primary);min-height:28px;padding:3px 0}.weeklyError p{font-size:12px;margin:5px 0 0;line-height:1.6;color:var(--muted)}.weeklyTotalBox{align-items:center;background:#fffbf0}.weeklyTotalBox #weeklyTotal{font-size:13px}.weeklyTotalBox strong{font-size:25px}.weeklyTotalBox>small{font-size:12px;max-width:370px}.weeklyTotalBox .weeklyIcon{color:#996600}.homeView footer{font-size:12px;opacity:1;line-height:1.6}.homeView .heading #refreshNow{color:white;background:var(--primary);border-color:var(--primary)}
#settingsPanel>label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 8px 8px 0}#settingsPanel #testId{margin:8px 8px 8px 0}#settingsPanel #check{margin:8px 0}#settingsPanel summary,#accessPanel summary{font-size:14px;color:var(--text);font-weight:600;min-height:32px}.connectionPermissions li,.connectionStatusAccount,.connectionStatusMessage{font-size:13px}.connectionChecked{font-size:12px}
@media(max-width:1250px){.weeklyCards{grid-template-columns:repeat(2,minmax(0,1fr))}.weeklyCards p{min-height:0}.weeklyCards article{padding:18px}.weeklyCards article>div{width:auto}.weeklyOverview{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.weeklyTotalBox>small{max-width:310px}}
@media(max-width:760px){.weeklyCards article{flex-direction:row;padding:16px}.weeklyCards p{font-size:12px;min-height:32px}.weeklyCards strong,#weeklyLoaded{font-size:22px}.weeklyCards small{font-size:12px}.weeklyCards{gap:10px}.weeklyIcon{width:32px;height:32px;border-radius:10px}.weeklyIcon svg{width:21px;height:21px}.weeklyOverview{display:flex;flex-direction:column;gap:12px}.weeklyCompletion,#weeklyStatus{width:100%}#weeklyUpdated{margin:0}.weeklyTools{align-items:stretch}.weeklyTools label{flex:1 1 100%}.weeklyTools select{width:100%}#weeklyRowCount{margin-left:0;flex:1 1 100%;padding:0}#weeklyPanel{padding:15px}.weeklyTotalBox{padding:14px}.weeklyTotalBox>small{max-width:none;flex-basis:100%}.weeklyTotalBox #weeklyTotal{display:block}.weeklyTotalBox strong{display:block;margin-top:6px}.homeView footer{font-size:12px}.topActions button{min-height:40px}.weeklyTotalBox .weeklyIcon{display:none}}
@media(max-width:650px){.homeView .heading{display:grid;grid-template-columns:1fr 1fr;gap:10px}.homeView .heading>div:first-child{grid-column:1/-1;min-width:0}.homeView .heading>div.homeActions{display:contents}.homeView .weeklyDate{grid-column:1/-1;white-space:normal;padding:0;font-size:13px}.homeView #weeklyExport,.homeView #refreshNow{width:100%;padding:9px 8px;font-size:12px;white-space:normal}.homeView h1{font-size:24px;line-height:1.2}.homeView .heading p:last-child{font-size:13px;line-height:1.5}#weeklyPanel table{min-width:0;display:block}#weeklyPanel thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#weeklyPanel tbody{display:grid;gap:10px}#weeklyPanel tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:10px;padding:14px;background:var(--card)}#weeklyPanel td{display:block;padding:0;font-size:14px;min-width:0}#weeklyPanel td:first-child{grid-column:1/-1;font-weight:600;margin-bottom:12px;overflow-wrap:anywhere}#weeklyPanel td:nth-child(2)::before,#weeklyPanel td:nth-child(3)::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:4px}#weeklyPanel td:nth-child(3){text-align:right;padding-right:0}#weeklyPanel td:last-child{grid-column:1/-1;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}#weeklyPanel td[colspan]{grid-column:1/-1;margin:0;padding:15px 0;border:0;font-weight:400}#weeklyPanel .tableScroll{max-height:none;overflow:visible;scrollbar-gutter:auto}#weeklyPanel tbody tr:nth-child(even){background:var(--card)}#weeklyPanel tr:hover td{background:transparent}.weeklyError{max-width:none}.weeklyError summary{min-height:44px;padding:10px 0}.weeklyTools #weeklySort{width:100%;text-align:left}#settingsPanel>label{display:flex;flex-direction:column;align-items:stretch}#settingsPanel #testId,#settingsPanel #check{width:100%}}
@media(max-width:760px){
 .homeView header{margin-bottom:12px}.homeView .heading{margin-bottom:14px}
 .weeklyCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 .weeklyCards article{padding:12px;gap:0}.weeklyCards article>div{width:100%}
 .weeklyCards .weeklyIcon{display:none}.weeklyCards p{font-size:12px;min-height:34px;margin:0 0 4px}
 .weeklyCards strong,#weeklyLoaded{font-size:21px;padding-right:0;letter-spacing:-.3px}
 .weeklyCards small{font-size:12px;line-height:1.35;margin-top:4px}
 .weeklyPercent{float:none;display:none}.weeklyCards #weeklyProgress{margin-top:6px;height:5px}
 #weeklyPanel .panelHeading{padding-bottom:10px}#weeklyPanel h2{font-size:17px;line-height:1.3}
 #weeklyPanel .panelHeading p{font-size:12px;line-height:1.4}
 .weeklyOverview{gap:7px;padding:10px 0}.weeklyCompletion>span,.weeklySegments,.weeklyLegend{display:none}
 .weeklyCompletion small{margin:0}#weeklyStatus{padding:0;background:none;border:0;font-size:12px;line-height:1.45}
 #weeklyUpdated{font-size:12px}.weeklyTools{display:grid;grid-template-columns:1fr;gap:8px}
 .weeklyTools label{gap:4px}.weeklyTools #weeklySort{min-height:44px}.weeklyTools #weeklyRowCount{padding:0}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 .topActions button{min-height:44px}.employeeMeta{font-size:12px}
}
body.dark .weeklyTotalBox{background:#302c20}body.dark .weeklyBadge.error{background:#482b32;color:#ffb3b3}body.dark .weeklyLegend,body.dark .weeklyCompletion small{color:var(--muted)}body.dark .weeklyBadge.available{color:#7ee0b4}body.dark .weeklyTotalBox .weeklyIcon{color:#f6cb73}body.dark #weeklySort{color:var(--text)}

.weeklyLegend .loading::before{background:#4c87e0}

/* Drawer focus is managed in ui-navigation.mjs. */
.integrationBackdrop{position:fixed;inset:0;background:#10182855;z-index:39}
.infoRail[role="dialog"]{width:min(360px,100vw);max-width:100vw;z-index:40;overscroll-behavior:contain}
.homeView.infoOpen .infoRail{width:min(360px,100vw)}
#closeInfo{width:44px;min-width:44px;min-height:44px;font-size:24px}
button[aria-disabled="true"]{opacity:.55;cursor:wait}
:root{--focus-ring:#7caaff}::selection{background:#d8e7ff;color:#101828}
input,textarea{caret-color:var(--primary)}.tableScroll{scrollbar-color:var(--muted) var(--bg);scrollbar-width:thin}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline-color:var(--focus-ring)}
body.dark{--focus-ring:#a4c7ff}body.dark ::selection{background:#31588d;color:#fff}
