/* Hub → Google Ads: Task-parity UI, compact filters and validation states. */
#hub-view,
.hub-task-modal {
  --hub-primary:#0b7ff0;
  --hub-primary-hover:#096fd2;
  --hub-title:#0e2166;
  --hub-text:#1f2a44;
  --hub-muted:#667085;
  --hub-border:#dfe6f0;
  --hub-border-strong:#c9d4e3;
  --hub-soft:#f8fafc;
  --hub-blue-soft:#edf6ff;
  --hub-success:#176b3a;
  --hub-success-soft:#eaf8ef;
  --hub-danger:#b42318;
  --hub-danger-soft:#fff1f0;
  --hub-warning:#8a5b12;
  --hub-focus:0 0 0 3px rgba(11,127,240,.22);
  color:var(--hub-text);
  font-family:"Open Sans",sans-serif!important;
}
#hub-view *, .hub-task-modal *{box-sizing:border-box}
#hub-view :is(button,input,select,textarea),.hub-task-modal :is(button,input,select,textarea){font:inherit}
#hub-view .hub-header[hidden],#hub-view .hub-section-header[hidden]{display:none!important}
#hub-view .hub-shell{background:#fff!important;color:var(--hub-text)!important}
#hub-view .hub-subnav{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:8px;border:1px solid var(--hub-border)!important;border-radius:14px;background:var(--hub-soft)!important}
#hub-view .hub-subnav__item{font-family:"Open Sans",sans-serif!important}
#hub-view .hub-subnav__actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#hub-view .btn-primary,#hub-view .btn-secondary,.hub-task-modal .btn-primary,.hub-task-modal .btn-secondary{min-height:44px;padding:9px 16px;border-radius:10px;font-weight:600;cursor:pointer}
#hub-view .btn-primary,.hub-task-modal .btn-primary{border:1px solid var(--hub-primary)!important;background:var(--hub-primary)!important;color:#fff!important;box-shadow:none!important}
#hub-view .btn-primary:hover:not(:disabled),.hub-task-modal .btn-primary:hover:not(:disabled){border-color:var(--hub-primary-hover)!important;background:var(--hub-primary-hover)!important}
#hub-view .btn-secondary,.hub-task-modal .btn-secondary{border:1px solid var(--hub-border-strong)!important;background:#fff!important;color:var(--hub-title)!important;box-shadow:none!important}
#hub-view .btn-secondary:hover:not(:disabled),.hub-task-modal .btn-secondary:hover:not(:disabled){border-color:#9fb0c8!important;background:#f7f9fc!important}
#hub-view button:disabled,.hub-task-modal button:disabled{cursor:not-allowed;opacity:.5}

#hub-view .hub-summary[data-polished="1"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
#hub-view .hub-summary__legacy-total{display:none!important}
#hub-view .hub-summary article{position:relative;min-height:112px;padding:18px 18px 16px;border:1px solid var(--hub-border)!important;border-radius:15px;background:#fff!important;box-shadow:0 7px 20px rgba(25,48,93,.075);overflow:hidden}
#hub-view .hub-summary article:after{position:absolute;right:-24px;bottom:-30px;width:100px;height:100px;border-radius:50%;background:rgba(11,127,240,.055);content:""}
#hub-view .hub-summary article:before{width:4px;border-radius:15px 0 0 15px}
#hub-view .hub-summary article:nth-child(2):before{background:#0b7ff0}
#hub-view .hub-summary article:nth-child(3):before{background:#6941c6}
#hub-view .hub-summary article:nth-child(4):before{background:#b54708}
#hub-view .hub-summary article:nth-child(5):before{background:#0f766e}
#hub-view .hub-summary span{position:relative;z-index:1;color:var(--hub-muted)!important;font-size:12px!important;font-weight:700!important}
#hub-view .hub-summary strong{position:relative;z-index:1;color:var(--hub-title)!important;font:700 27px/1.15 Poppins,"Open Sans",sans-serif!important}
#hub-view .hub-summary small{position:relative;z-index:1;color:#98a2b3!important;font-size:10px!important}

#hub-view .hub-filters{display:block!important;margin:0 0 12px;padding:0!important;border:0!important;background:transparent!important}
#hub-view .hub-filter-primary{display:grid;grid-template-columns:minmax(280px,1fr) minmax(190px,240px) auto;gap:10px;align-items:end;padding:11px;border:1px solid var(--hub-border);border-radius:14px;background:var(--hub-soft)}
#hub-view .hub-filter-primary label,#hub-view .hub-filter-advanced label{display:grid;gap:5px;min-width:0;color:#475467;font-size:11px;font-weight:600}
#hub-view .hub-filter-primary :is(input,select),#hub-view .hub-filter-advanced :is(input,select){width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--hub-border-strong)!important;border-radius:10px!important;background:#fff!important;color:var(--hub-text)!important}
#hub-view .hub-filter-primary :is(input,select):focus-visible,#hub-view .hub-filter-advanced :is(input,select):focus-visible{outline:0;border-color:var(--hub-primary)!important;box-shadow:var(--hub-focus)!important}
#hub-view .hub-filter-toggle{min-width:170px;white-space:nowrap}
#hub-view .hub-filter-advanced{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:9px;padding:12px;border:1px solid var(--hub-border);border-radius:14px;background:#fff}
#hub-view .hub-filter-advanced[hidden]{display:none!important}
#hub-view .hub-filter-check{align-self:end;min-height:44px!important}
#hub-view .hub-filter-advanced>[data-hub-reset]{align-self:end}

#hub-view .hub-state{min-height:18px;margin:7px 2px;color:var(--hub-muted);font-size:12px}
#hub-view .hub-table-wrap{margin-top:4px;border:1px solid var(--hub-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 16px rgba(25,48,93,.05);overflow:auto}
#hub-view .hub-table{min-width:1600px;font-size:12px!important}
#hub-view .hub-table thead th{position:sticky;top:0;z-index:2;padding:13px 11px!important;border-bottom:0!important;background:#0e2166!important;color:#fff!important;font-size:11px!important;font-weight:700!important;letter-spacing:.015em;white-space:nowrap}
#hub-view .hub-table thead th:first-child{border-radius:15px 0 0 0}
#hub-view .hub-table thead th:last-child{border-radius:0 15px 0 0}
#hub-view .hub-table td{padding:12px 11px!important;border-bottom:1px solid #edf0f5!important;color:#475467!important;vertical-align:middle!important;background:#fff}
#hub-view .hub-table tbody tr:nth-child(even) td{background:#fbfcfe}
#hub-view .hub-table tbody tr:hover td{background:#f2f8ff!important}
#hub-view .hub-client strong,#hub-view .hub-company strong,#hub-view .hub-date-cell strong{color:var(--hub-title)!important}
#hub-view .hub-date-cell{white-space:nowrap}
#hub-view .hub-date-end{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border:1px solid var(--hub-border);border-radius:999px;background:#f8fafc;color:#475467;font-size:10px;font-weight:700}
#hub-view .hub-date-end--open{border-color:#b8d7fb;background:#eef6ff;color:#095aa9}
#hub-view .hub-action{min-height:36px!important;padding:7px 10px!important;border:1px solid var(--hub-border-strong)!important;border-radius:9px!important;background:#fff!important;color:var(--hub-title)!important;font-weight:600!important}
#hub-view .hub-action:hover{border-color:#9fb0c8!important;background:#f7f9fc!important}

.hub-task-modal[hidden]{display:none!important}
.hub-task-modal{position:fixed;inset:0;z-index:2400;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));font-family:"Open Sans",sans-serif!important}
.hub-task-modal__backdrop{position:absolute;inset:0;width:100%;height:100%;border:0!important;border-radius:0!important;background:rgba(15,33,67,.48)!important;backdrop-filter:blur(3px)}
.hub-task-modal__panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1180px,100%);max-height:calc(100dvh - 36px);overflow:hidden;border:1px solid rgba(255,255,255,.65);border-radius:20px;background:#f4f7fb;color:var(--hub-text);box-shadow:0 24px 70px rgba(19,39,78,.18)}
.hub-task-modal__panel--history{width:min(1040px,100%)}
.hub-task-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 28px 21px;border-bottom:1px solid var(--hub-border);background:#fff!important;color:var(--hub-text)!important}
.hub-task-modal__heading{display:flex;align-items:flex-start;gap:14px;min-width:0}
.hub-task-modal__icon{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border:1px solid #b8d7fb;border-radius:13px;background:var(--hub-blue-soft);color:var(--hub-primary)}
.hub-task-modal__icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hub-task-modal__eyebrow{margin:0 0 4px!important;color:var(--hub-primary)!important;font-size:11px!important;font-weight:700!important;letter-spacing:.075em!important;text-transform:uppercase!important}
.hub-task-modal__header h2{margin:0;color:var(--hub-title)!important;font:700 clamp(24px,2vw,32px)/1.2 Poppins,"Open Sans",sans-serif!important}
.hub-task-modal__header p:last-child{max-width:780px;margin:7px 0 0;color:var(--hub-muted)!important;line-height:1.5}
.hub-task-modal__close{width:44px;min-width:44px;height:44px;padding:0;border:1px solid var(--hub-primary)!important;border-radius:50%!important;background:var(--hub-primary)!important;color:#fff!important;font-size:23px!important;cursor:pointer}
.hub-task-modal__close:hover{background:var(--hub-primary-hover)!important;border-color:var(--hub-primary-hover)!important}
.hub-task-modal__content{min-height:0;overflow:auto;background:#f4f7fb;color:var(--hub-text)}
.hub-task-modal__loading,.hub-task-modal__error{margin:20px 28px;padding:14px 16px;border:1px solid #cfe2fb;border-radius:10px;background:var(--hub-blue-soft);color:#095aa9}
.hub-task-modal__error{display:grid;gap:4px;border-color:#f1c5c2;background:var(--hub-danger-soft);color:var(--hub-danger)}

.hub-task-form{display:flex;min-height:0;flex-direction:column}
.hub-task-form__body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 28px 20px}
.hub-task-section{min-width:0;padding:17px;border:1px solid var(--hub-border);border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(20,44,85,.045)}
.hub-task-section>header{padding-bottom:13px;border-bottom:1px solid #e8edf4;background:transparent!important;color:var(--hub-text)!important}
.hub-task-section>header p{margin:0 0 3px;color:var(--hub-primary);font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.hub-task-section>header h3{margin:0;color:var(--hub-title);font:600 18px/1.3 Poppins,"Open Sans",sans-serif}
.hub-task-section>header span{display:block;margin-top:4px;color:var(--hub-muted);font-size:11px;line-height:1.45}
.hub-task-section__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.hub-task-field{display:grid;align-content:start;gap:6px;min-width:0;color:#344054;font-size:12px;font-weight:700}
.hub-task-field--wide{grid-column:span 2}.hub-task-field--full{grid-column:1/-1}
.hub-task-field>span,.hub-task-field__label{color:#344054;font-size:12px;font-weight:700}
.hub-task-field small,.hub-company-picker small{color:var(--hub-muted);font-size:10px;font-weight:400;line-height:1.4}
.hub-task-field :is(input,select,textarea),.hub-company-picker input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--hub-border-strong);border-radius:10px;background:#fff;color:var(--hub-text);font-weight:400;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.hub-task-field textarea{min-height:88px;resize:vertical;line-height:1.45}
.hub-task-field :is(input,select,textarea):focus-visible,.hub-company-picker input:focus-visible{outline:0;border-color:var(--hub-primary);box-shadow:var(--hub-focus)}
.hub-task-field.is-invalid>span,.hub-company-picker.is-invalid>.hub-task-field__label{color:var(--hub-danger)!important}
.hub-task-field.is-invalid :is(input,select),.hub-company-picker.is-invalid .hub-company-picker__control input{border-color:#f04438!important;background:#fff8f7!important;box-shadow:0 0 0 3px rgba(240,68,56,.08)}
.hub-task-field.is-valid>span,.hub-company-picker.is-valid>.hub-task-field__label{color:var(--hub-success)!important}
.hub-task-field.is-valid :is(input,select),.hub-company-picker.is-valid .hub-company-picker__control input{border-color:#12b76a!important;background:#f6fef9!important;box-shadow:0 0 0 3px rgba(18,183,106,.07)}
.hub-task-field.is-neutral{opacity:.72}.hub-task-field.is-neutral input:disabled{background:#f2f4f7;color:#98a2b3}
.hub-task-toggle{grid-column:span 1;display:flex;align-items:center;gap:10px;min-height:70px;padding:11px 12px;border:1px solid var(--hub-border);border-radius:11px;background:var(--hub-soft);cursor:pointer;transition:border-color .15s ease,background .15s ease}
.hub-task-toggle input{flex:0 0 18px;width:18px;height:18px;accent-color:var(--hub-primary)}
.hub-task-toggle span{display:grid;gap:2px}.hub-task-toggle strong{color:var(--hub-title);font-size:12px}.hub-task-toggle small{color:var(--hub-muted);font-size:10px;font-weight:400;line-height:1.35}
.hub-task-toggle.is-valid{border-color:#12b76a;background:#f6fef9}
.hub-task-toggle--archive{grid-column:1/-1}
.hub-company-picker{position:relative;display:grid;gap:6px}
.hub-company-picker__control{position:relative}.hub-company-picker__control input{padding-right:46px}
.hub-company-picker__clear{position:absolute;top:5px;right:5px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:8px;background:#f2f4f7;color:#667085;font-size:18px;cursor:pointer}
.hub-company-picker__results{position:absolute;z-index:30;top:calc(100% - 24px);left:0;right:0;max-height:250px;overflow:auto;padding:6px;border:1px solid var(--hub-border-strong);border-radius:11px;background:#fff;box-shadow:0 14px 32px rgba(20,44,85,.16)}
.hub-company-picker__option{display:flex;width:100%;min-height:46px;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:0;border-radius:8px;background:#fff;color:var(--hub-text);text-align:left;cursor:pointer}
.hub-company-picker__option:hover,.hub-company-picker__option:focus-visible{background:var(--hub-blue-soft);outline:0}
.hub-company-picker__option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hub-company-picker__option small{flex:0 0 auto;color:#98a2b3}
.hub-company-picker__empty{padding:12px;color:var(--hub-muted);font-size:11px;text-align:center}
.hub-task-form__state{min-height:22px;margin:0;padding:0 28px 10px;color:var(--hub-muted);font-size:12px}
.hub-task-form__state[data-tone="error"]{color:var(--hub-danger)}
.hub-task-modal__footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 28px 18px;border-top:1px solid var(--hub-border);background:#fff}
.hub-task-modal__footer button{min-width:148px}

.hub-history-toolbar{padding:18px 28px 0}.hub-history-toolbar label{display:grid;max-width:360px;gap:6px;color:#344054;font-size:12px;font-weight:700}.hub-history-toolbar select{min-height:44px;padding:9px 11px;border:1px solid var(--hub-border-strong);border-radius:10px;background:#fff;color:var(--hub-text)}
.hub-history-list{display:grid;gap:12px;padding:14px 28px 24px}.hub-history-card{padding:15px 16px;border:1px solid var(--hub-border);border-radius:14px;background:#fff}.hub-history-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:0 0 11px;border-bottom:1px solid #edf0f5;background:transparent!important;color:inherit!important}.hub-history-card>header>div{display:grid;gap:3px}.hub-history-card strong{color:var(--hub-title)}.hub-history-card small,.hub-history-card time{color:var(--hub-muted);font-size:10px}.hub-history-card__effective{margin:10px 0 0;padding:7px 9px;border-radius:8px;background:var(--hub-blue-soft);color:#24557d;font-size:11px;font-weight:700}.hub-history-card ul{display:grid;gap:0;margin:10px 0 0;padding:0;list-style:none}.hub-history-card li{display:grid;grid-template-columns:minmax(150px,.35fr) minmax(0,1fr);gap:12px;padding:9px 0;border-top:1px solid #f0f2f5;font-size:11px}.hub-history-card li:first-child{border-top:0}.hub-history-card li>span{display:flex;align-items:center;gap:8px;min-width:0;word-break:break-word}.hub-history-card del{color:#b42318}.hub-history-card ins{color:#176b3a;text-decoration:none}.hub-history-card i{color:#98a2b3;font-style:normal}.hub-history-empty{padding:42px 20px;color:var(--hub-muted);text-align:center}

@media(max-width:1100px){#hub-view .hub-summary[data-polished="1"]{grid-template-columns:repeat(2,minmax(0,1fr))}#hub-view .hub-filter-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-task-form__body{grid-template-columns:1fr}}
@media(max-width:760px){#hub-view .hub-subnav{align-items:stretch;flex-wrap:wrap}#hub-view .hub-subnav__actions{width:100%;margin-left:0}#hub-view .hub-subnav__actions button{flex:1}#hub-view .hub-filter-primary{grid-template-columns:1fr}#hub-view .hub-filter-toggle{width:100%}#hub-view .hub-filter-advanced{grid-template-columns:1fr}.hub-task-modal{padding:0}.hub-task-modal__panel,.hub-task-modal__panel--history{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.hub-task-modal__header{padding-inline:16px}.hub-task-modal__icon{display:none}.hub-task-form__body,.hub-history-list{padding-left:16px;padding-right:16px}.hub-history-toolbar{padding-left:16px;padding-right:16px}.hub-task-form__state{padding-inline:16px}.hub-task-modal__footer{padding-inline:16px}.hub-task-section__grid{grid-template-columns:1fr}.hub-task-field--wide,.hub-task-field--full{grid-column:auto}.hub-task-toggle{grid-column:auto}.hub-task-modal__footer button{flex:1;min-width:0}.hub-history-card li{grid-template-columns:1fr}.hub-history-card li>span{align-items:flex-start;flex-direction:column;gap:3px}}


/* 1.79.5 — Google Ads campaign modal adopts the uninterrupted Task shell. */
.hub-task-modal .hub-task-modal__panel {
  border-radius:20px!important;
  border:1px solid #dce6f0!important;
  overflow:hidden!important;
  isolation:isolate;
}
.hub-task-modal .hub-task-modal__panel > .hub-task-modal__header {
  border-radius:19px 19px 0 0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.hub-task-modal .hub-task-modal__close {
  background:#fff!important;
  border:1px solid #edb9b4!important;
  color:#b42318!important;
  border-radius:50%!important;
  font:400 24px "Open Sans",sans-serif!important;
}
.hub-task-modal .hub-task-modal__close:hover {
  background:#fff1f0!important;
  border-color:#de8d86!important;
  color:#a5221a!important;
}
.hub-task-modal .hub-task-modal__panel:not(.hub-task-modal__panel--history) {
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr);
  width:min(1180px,100%)!important;
  height:min(820px,calc(100dvh - 36px))!important;
  max-height:calc(100dvh - 36px)!important;
}
/* The panel has one vertical scroll region: content, including all form
   sections. Avoid clipping nested grids, especially on small viewports. */
.hub-task-modal .hub-task-modal__panel:not(.hub-task-modal__panel--history) > .hub-task-modal__content {
  min-height:0!important;
  height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
}
.hub-task-modal .hub-task-modal__content > .hub-task-form {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:100%!important;
  overflow:visible!important;
}
.hub-task-modal .hub-task-form > .hub-task-form__body {
  width:100%!important;
  min-height:0!important;
  overflow:visible!important;
}
.hub-task-modal .hub-task-form > .hub-task-form__state {
  margin:0!important;
  min-height:0!important;
  background:#f4f7fb;
}
.hub-task-modal .hub-task-form > .hub-task-modal__footer {
  position:sticky;
  bottom:0;
  z-index:2;
  display:flex!important;align-items:center!important;
  justify-content:flex-end!important;
  min-height:72px!important;
  padding:14px 26px!important;
  border-top:1px solid #dce6f0!important;
  border-radius:0 0 19px 19px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.hub-task-modal .hub-task-modal__footer button[type="submit"] {
  flex:0 0 auto!important;
  min-height:44px!important;
  padding:9px 18px!important;
  font:400 13px "Open Sans",sans-serif!important;
  letter-spacing:0!important;
  border-radius:10px!important;
  box-shadow:0 6px 15px rgba(11,127,240,.18)!important;
}
@media(max-width:760px){
  .hub-task-modal .hub-task-modal__panel:not(.hub-task-modal__panel--history) {
    width:100%!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;
  }
  .hub-task-modal .hub-task-modal__panel > .hub-task-modal__header,
  .hub-task-modal .hub-task-form > .hub-task-modal__footer {border-radius:0!important}
}
