
body:has(#hub-view:not([hidden])) .app-content{padding-top:8px}
#hub-view{--hub-primary:#0b7ff0;--hub-title:#0e2166;--hub-text:#1f2a44;--hub-muted:#667085;--hub-page:#f3f6fb;--hub-border:#dfe6f0;--hub-border-strong:#c9d4e3;--hub-soft:#f8fafc;--hub-success:#168a51;--hub-success-soft:#ecfdf3;--hub-warning:#b54708;--hub-warning-soft:#fff7ed;width:100%;max-width:none;margin:0;padding:4px 0 28px;background:var(--hub-page);color:var(--hub-text);font-family:"Varela Round"}
#hub-view *,#hub-view *:before,#hub-view *:after,.hub-dialog *,.hub-dialog *:before,.hub-dialog *:after{box-sizing:border-box;font-family:"Varela Round"}
#hub-view[hidden],.hub-dialog[hidden],.hub-empty[hidden]{display:none!important}
#hub-view :is(button,input,select,textarea),.hub-dialog :is(button,input,select,textarea){font:inherit}
.hub-shell{width:calc(100% - 56px);margin:0 auto;padding:clamp(16px,2vw,28px);border:1px solid var(--hub-border);border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(25,48,93,.08)}
.hub-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border:1px solid #d4e5f8;border-radius:16px;background:linear-gradient(120deg,#fff 0%,#f8fbff 55%,#eaf4ff 100%)}
.hub-eyebrow{margin:0 0 5px;color:var(--hub-primary);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.hub-header h1,.hub-dialog__header h2{margin:0;color:var(--hub-title);font-size:clamp(28px,2.4vw,38px);line-height:1.12;letter-spacing:-.025em}
.hub-header p:last-child,.hub-dialog__header p:last-child{max-width:900px;margin:7px 0 0;color:var(--hub-muted);font-size:14px;line-height:1.5}
.hub-subnav{display:flex;gap:8px;margin:15px 0;padding:8px;border:1px solid var(--hub-border);border-radius:14px;background:var(--hub-soft)}
.hub-subnav__item{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:#475467;cursor:pointer}
.hub-subnav__item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hub-subnav__item.is-active{border-color:#b8d7fb;background:#eef6ff;color:#095aa9}
.hub-google-ads{padding:2px 0}
.hub-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.hub-section-header h2{margin:0;color:var(--hub-title);font-size:24px}
.hub-section-header p{margin:6px 0 0;color:var(--hub-muted);font-size:13px}
.hub-section-header__actions{display:flex;gap:8px;flex-wrap:wrap}
.hub-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:16px}
.hub-summary article{position:relative;display:grid;gap:3px;min-height:96px;padding:15px 17px;overflow:hidden;border:1px solid var(--hub-border);border-radius:14px;background:linear-gradient(135deg,#fff 0%,var(--hub-soft) 100%)}
.hub-summary article:before{position:absolute;inset:0 auto 0 0;width:4px;background:var(--hub-primary);content:""}
.hub-summary article:nth-child(2):before{background:var(--hub-success)}.hub-summary article:nth-child(3):before{background:#6f42c1}.hub-summary article:nth-child(4):before{background:var(--hub-warning)}.hub-summary article:nth-child(5):before{background:#0f766e}
.hub-summary span{color:var(--hub-title);font-size:11px;font-weight:700}.hub-summary strong{align-self:end;color:var(--hub-title);font-size:22px}.hub-summary small{color:var(--hub-muted);font-size:9px}
.hub-filters{display:grid;grid-template-columns:minmax(220px,1.45fr) repeat(3,minmax(140px,.65fr)) auto auto;align-items:end;gap:9px;margin-top:15px;padding:12px;border:1px solid var(--hub-border);border-radius:14px;background:var(--hub-soft)}
.hub-filters label{display:grid;gap:5px;color:#475467;font-size:11px;font-weight:600}
.hub-filters :is(input,select){width:100%;min-height:43px;padding:9px 11px;border:1px solid var(--hub-border-strong);border-radius:9px;background:#fff;color:var(--hub-text)}
.hub-filters :is(input,select):focus-visible,.hub-form :is(input,select,textarea):focus-visible{outline:0;border-color:var(--hub-primary);box-shadow:0 0 0 3px rgba(11,127,240,.14)}
.hub-filter-check{display:flex!important;align-items:center;gap:7px;min-height:43px;padding:0 4px;white-space:nowrap}
.hub-filter-check input{width:18px!important;min-height:auto!important;height:18px;margin:0;padding:0}
.hub-state{min-height:20px;margin:11px 2px;color:#475467;font-size:12px}.hub-state[data-tone="error"],.hub-form__state[data-tone="error"]{color:#b42318}
.hub-table-wrap{overflow:auto;border:1px solid var(--hub-border);border-radius:14px;background:#fff}
.hub-table{width:100%;min-width:1450px;border-collapse:collapse;font-size:11px}
.hub-table th{position:sticky;top:0;z-index:1;padding:11px 10px;border-bottom:1px solid var(--hub-border-strong);background:#f8fafc;color:#344054;text-align:left;white-space:nowrap}
.hub-table td{padding:10px;border-bottom:1px solid #edf0f5;color:#475467;vertical-align:top}
.hub-table tr:last-child td{border-bottom:0}.hub-table tr:hover td{background:#fbfdff}.hub-table tr.is-archived td{opacity:.68;background:#fafafa}
.hub-client,.hub-company,.hub-period{display:grid;gap:4px;min-width:120px}.hub-client strong,.hub-company strong,.hub-period strong{color:var(--hub-title);font-weight:700}.hub-client small,.hub-period small{color:var(--hub-muted);line-height:1.35}
.hub-period small{max-width:190px}.hub-cell-copy{display:block;max-width:220px;white-space:normal;line-height:1.45}
.hub-badge{display:inline-flex;width:max-content;align-items:center;min-height:23px;padding:3px 8px;border-radius:999px;border:1px solid var(--hub-border-strong);background:#f8fafc;color:#475467;font-size:9px;font-weight:700}
.hub-badge--success{border-color:#b7e3cc;background:var(--hub-success-soft);color:#087443}.hub-badge--warning{border-color:#fed7aa;background:var(--hub-warning-soft);color:#9a3412}.hub-badge--neutral{background:#f2f4f7;color:#667085}.hub-badge--billing{border-color:#c7ddf8;background:#f2f8ff;color:#095aa9}
.hub-actions{display:flex;gap:6px;flex-wrap:wrap}.hub-action{min-height:34px;padding:6px 9px;border:1px solid var(--hub-border-strong);border-radius:8px;background:#fff;color:var(--hub-title);cursor:pointer}.hub-action:hover{border-color:#9fb0c8;background:#f7f9fc}
.hub-empty{padding:40px 20px;text-align:center;color:var(--hub-muted)}.hub-empty h3{margin:0;color:var(--hub-title)}.hub-empty p{margin:7px 0 0}
.hub-dialog{position:fixed;inset:0;z-index:2200;display:grid;place-items:center;padding:22px}
.hub-dialog__backdrop{position:absolute;inset:0;border:0;background:rgba(16,24,40,.46);cursor:default}
.hub-dialog__panel{position:relative;z-index:1;width:min(980px,calc(100vw - 36px));max-height:calc(100vh - 44px);overflow:auto;border:1px solid var(--hub-border);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(15,34,80,.25);color:var(--hub-text)}
.hub-dialog__panel--history{width:min(820px,calc(100vw - 36px))}
.hub-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid var(--hub-border);background:#fbfdff}
.hub-dialog__header h2{font-size:25px}.hub-dialog__close{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:1px solid var(--hub-border-strong);border-radius:10px;background:#fff;color:#344054;font-size:24px;cursor:pointer}
.hub-form{padding:20px 22px}.hub-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hub-form label{display:grid;gap:6px;color:#344054;font-size:11px;font-weight:700}.hub-form label>span{display:block}
.hub-form :is(input,select,textarea){width:100%;min-height:44px;padding:10px 11px;border:1px solid var(--hub-border-strong);border-radius:9px;background:#fff;color:var(--hub-text);font-weight:400}
.hub-form textarea{min-height:82px;resize:vertical;line-height:1.45}.hub-form label small{color:var(--hub-muted);font-size:9px;font-weight:400}
.hub-form__wide{grid-column:1/-1}.hub-form__check{display:flex!important;align-items:center;gap:8px;min-height:44px;padding:8px 0}.hub-form__check input{width:18px!important;height:18px;min-height:auto;margin:0}.hub-form__check span{display:inline!important}
.hub-form__state{min-height:20px;margin:12px 0 0;color:#475467;font-size:11px}
.hub-dialog__footer{display:flex;justify-content:flex-end;gap:8px;padding:15px 22px;border-top:1px solid var(--hub-border);background:#fbfcfe}
.hub-history{display:grid;gap:10px;padding:18px 22px}.hub-history__entry{padding:13px 14px;border:1px solid var(--hub-border);border-radius:12px;background:#fff}
.hub-history__entry>header{display:flex;justify-content:space-between;gap:14px}.hub-history__entry>header>div{display:grid;gap:3px}.hub-history__entry strong{color:var(--hub-title)}.hub-history__entry small,.hub-history__entry time{color:var(--hub-muted);font-size:9px}
.hub-history__entry ul{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}.hub-history__entry li{display:grid;grid-template-columns:minmax(130px,.45fr) minmax(0,1fr);gap:10px;padding-top:7px;border-top:1px solid #edf0f5;font-size:10px}.hub-history__entry li span{word-break:break-word}.hub-history__entry del{color:#b42318}
@media(max-width:1180px){.hub-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-filter-check{justify-self:start}}
@media(max-width:820px){.hub-shell{width:calc(100% - 24px);padding:14px}.hub-section-header{flex-direction:column}.hub-section-header__actions{width:100%}.hub-section-header__actions button{flex:1}.hub-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-filters{grid-template-columns:1fr 1fr}.hub-table-wrap{overflow:visible;border:0}.hub-table{min-width:0}.hub-table thead{display:none}.hub-table,.hub-table tbody,.hub-table tr,.hub-table td{display:block;width:100%}.hub-table tbody{display:grid;gap:10px}.hub-table tr{padding:10px 12px;border:1px solid var(--hub-border);border-radius:13px;background:#fff}.hub-table td{display:grid;grid-template-columns:minmax(105px,.35fr) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid #edf0f5;background:transparent!important}.hub-table td:last-child{border-bottom:0}.hub-table td:before{content:attr(data-label);color:#667085;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.hub-cell-copy{max-width:none}.hub-form__grid{grid-template-columns:1fr}.hub-form__wide{grid-column:auto}}
@media(max-width:560px){.hub-shell{width:calc(100% - 14px);padding:10px;border-radius:15px}.hub-header{padding:18px 16px}.hub-summary{grid-template-columns:1fr}.hub-filters{grid-template-columns:1fr}.hub-dialog{padding:0}.hub-dialog__panel,.hub-dialog__panel--history{width:100vw;max-height:100vh;height:100vh;border-radius:0}.hub-dialog__header,.hub-form,.hub-dialog__footer,.hub-history{padding-left:16px;padding-right:16px}.hub-dialog__footer{position:sticky;bottom:0}.hub-history__entry li{grid-template-columns:1fr}.hub-table td{grid-template-columns:95px 1fr}}
