#gj-audience{color:#194562;font:14px/1.45 Arial,sans-serif;max-width:1700px;margin:auto}#gj-audience *{box-sizing:border-box}#gj-audience h2{font-size:24px;margin:0 0 4px}#gj-audience h3{font-size:17px;margin:0}#gj-audience p{margin:6px 0 12px}#gj-audience .muted{color:#718da5;font-size:13px}#gj-audience .panel{border:1px solid #cfe3f4;border-radius:14px;background:#fff;padding:18px;margin:16px 0}#gj-audience .head,#gj-audience .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#gj-audience .head{justify-content:space-between;margin-bottom:14px}#gj-audience .step{display:inline-grid;place-items:center;border-radius:9px;background:#e6f2ff;color:#0878d2;width:32px;height:32px;margin-right:8px}#gj-audience button,#gj-audience select,#gj-audience input:not([type=checkbox]):not([type=radio]),#gj-audience textarea{font:inherit;color:inherit;border:1px solid #c8dff3;border-radius:8px;background:#fff;padding:9px 12px;box-shadow:none;max-width:100%}#gj-audience button{cursor:pointer;transition:background .15s,border-color .15s;transform:none}#gj-audience button:hover:not(:disabled){background:#e8f4ff;border-color:#5eadea}#gj-audience button:active:not(:disabled){background:#cfe9ff}#gj-audience button.primary,#gj-audience button[aria-pressed=true]{background:#187dd5;color:#fff;border-color:#187dd5}#gj-audience button:disabled{opacity:.5;cursor:default}#gj-audience :focus-visible{outline:2px solid #187dd5;outline-offset:2px}#gj-audience input[type=checkbox],#gj-audience input[type=radio]{accent-color:#187dd5}#gj-audience textarea{width:100%;resize:vertical;min-height:90px}#gj-audience .settings{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}#gj-audience label{display:flex;align-items:center;gap:8px}#gj-audience .accounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;max-height:250px;overflow:auto;margin-top:10px}#gj-audience .account{border:1px solid #d8e7f4;border-radius:10px;padding:10px;cursor:pointer;background:#fff}#gj-audience .account.chosen{background:#eaf5ff;border-color:#67b4f1}#gj-audience .avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dceefa;color:#1876ad;object-fit:cover;flex-shrink:0}#gj-audience .identity{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}#gj-audience .stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0}#gj-audience .stat{border:1px solid #d8e7f4;border-radius:10px;padding:12px;background:#f4faff}#gj-audience .stat strong{font-size:24px;display:block}#gj-audience .results{overflow:auto;max-height:380px;border:1px solid #d8e7f4;border-radius:10px;margin-top:12px}#gj-audience table{border-collapse:collapse;width:100%;font-size:14px}#gj-audience th{position:sticky;top:0;background:#f1f8fe;text-align:left;z-index:1}#gj-audience td,#gj-audience th{padding:10px;border-bottom:1px solid #e4eef7;vertical-align:middle;white-space:normal}#gj-audience td:last-child{min-width:150px}#gj-audience .results.compact td{padding:6px 10px}#gj-audience .fresh{background:#f0fbf6}#gj-audience .ok{color:#098467}#gj-audience .warn{color:#b27810}#gj-audience .sources>div{padding:8px 0;border-bottom:1px solid #e4eef7}#gj-audience .journal{max-height:280px;overflow:auto}#gj-audience summary{cursor:pointer}#gj-audience .journal details{border-bottom:1px solid #d8e7f4;padding:10px 0}#gj-audience .journal p{padding:8px 18px;background:#f4faff;border-radius:8px}#gj-audience #ga-feedback{min-height:20px;overflow-wrap:anywhere}#gj-audience .empty{padding:26px;color:#718da5;text-align:center}#gj-audience .spacer{flex:1}#gj-audience [hidden]{display:none!important}@media(max-width:760px){#gj-audience .settings{grid-template-columns:1fr}#gj-audience .stats{grid-template-columns:1fr 1fr}#gj-audience .panel{padding:12px}#gj-audience .results table{min-width:600px}#gj-audience .head select{width:100%}}

#gj-audience button[aria-pressed=true]:hover:not(:disabled),#gj-audience button.primary:hover:not(:disabled){background:#126bbb;color:#fff}#gj-audience button[aria-pressed=true]:active:not(:disabled),#gj-audience button.primary:active:not(:disabled){background:#0f5a9d}

#gj-audience #gap-picker .compact-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}#gj-audience #gap-picker .switch-label{display:flex;gap:7px;align-items:center;padding:5px 6px;background:#e7f3ff;border-radius:8px;font-weight:600;font-size:12px}#gj-audience #gap-picker .switch-label input{appearance:none;position:relative;width:32px;height:18px;border-radius:20px;background:#b7c9d8}#gj-audience #gap-picker .switch-label input:checked{background:#2580ce}#gj-audience #gap-picker .switch-label input:after{content:'';position:absolute;width:14px;height:14px;background:white;border-radius:50%;left:2px;top:2px;transition:transform .18s}#gj-audience #gap-picker .switch-label input:checked:after{transform:translateX(14px)}#gj-audience #gap-picker details{position:relative}#gj-audience #gap-picker summary{list-style:none;border:1px solid #cbddeb;background:white;border-radius:8px;padding:7px 10px;color:#246294}#gj-audience #gap-picker summary::-webkit-details-marker{display:none}#gj-audience #gap-picker summary:after{content:'⌄';margin-left:10px}#gj-audience #gap-picker summary:hover{background:#e8f3ff;border-color:#71b1e7}#gj-audience #gap-picker details[open]>summary{color:#fff;background:#1769aa;border-color:#1769aa}#gj-audience #gap-picker details[open]>summary:after{content:'⌃'}#gj-audience #gap-picker .settings-menu{position:absolute;z-index:30;right:0;top:calc(100% + 8px);width:340px;max-width:calc(100vw - 50px);padding:14px;background:white;border:1px solid #cbddeb;border-radius:12px;box-shadow:0 14px 34px #1440662e}#gj-audience #gap-picker .settings-menu>strong{font-size:13px}#gj-audience #gap-picker .settings-menu>p{margin-top:4px}#gj-audience #gap-picker .fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:12px 0}#gj-audience #gap-picker .fields label{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:6px;font-size:12px;min-height:32px}#gj-audience #gap-picker .fields label:has(input:checked){background:#e7f3ff;border-color:#9fcbed;font-weight:600}#gj-audience #gap-picker .fields label:hover{background:#f0f8ff}#gj-audience #gap-picker .settings-actions{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid var(--gc-line);padding-top:10px}#gj-audience #gap-picker .settings-actions button{font-size:12px}#gj-audience #gap-picker .columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.85fr);gap:12px}#gj-audience #gap-picker .list-panel{min-width:0;padding:13px;border:1px solid #dce8f2;border-radius:11px;background:var(--gc-soft);container-type:inline-size}#gj-audience #gap-picker .panelhead{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}#gj-audience #gap-picker .toolbar{justify-content:flex-end;gap:6px}#gj-audience #gap-picker .toolbar button{font-size:12px;padding:6px 9px}#gj-audience #gap-picker .badge{display:inline-grid;place-items:center;min-width:22px;padding:1px 5px;border-radius:12px;color:#0879d0;background:#e0f0ff;font-weight:600;font-size:13px}#gj-audience #gap-picker .filters{display:grid;grid-template-columns:minmax(140px,1fr) 98px 88px;gap:7px;margin:10px 0}#gj-audience #gap-picker .filters input[type=search]{font-size:13px}#gj-audience #gap-picker .filters summary{font-size:13px;display:flex;justify-content:space-between;align-items:center;min-height:36px}#gj-audience #gap-picker .check{display:flex;align-items:center;gap:7px;font-size:13px}#gj-audience #gap-picker .proxy-check{grid-column:1}#gj-audience #gap-picker .busy-check{grid-column:2 / 4}#gj-audience #gap-picker .filter-menu{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:190px;background:white;padding:9px;border:1px solid var(--gc-line);border-radius:9px;box-shadow:0 10px 25px #18436226}#gj-audience #gap-picker .filter-menu label{display:flex;gap:7px;align-items:center;padding:6px 3px;font-size:13px}#gj-audience #gap-picker .premium-tabs{display:flex;gap:6px;margin:8px 0}#gj-audience #gap-picker .premium-tabs button{font-size:13px}#gj-audience #gap-picker .account-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start;margin-top:10px;min-height:120px}#gj-audience #gap-picker #gap-selected{grid-template-columns:1fr}#gj-audience #gap-picker .account-card{min-width:0;align-self:start;border:1px solid #d9e6f1;border-radius:10px;background:white;padding:10px 11px;position:relative;container-type:inline-size}#gj-audience #gap-picker .account-card.chosen{border-color:#b9d9f5}#gj-audience #gap-picker .account-card:hover{border-color:#88b9e5;background:#f8fcff}#gj-audience #gap-picker .identity{display:flex;gap:9px;align-items:flex-start;min-width:0}#gj-audience #gap-picker .avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;font-size:12px;font-weight:600}#gj-audience #gap-picker .person-copy{flex:1;min-width:0}#gj-audience #gap-picker .name{display:flex;align-items:center;gap:5px;font-weight:600;font-size:14px;overflow-wrap:anywhere}#gj-audience #gap-picker .star{font-size:21px;line-height:1;color:#3296ee}#gj-audience #gap-picker .meta{display:flex;gap:4px 7px;flex-wrap:wrap;align-items:center;color:#66839c;font-size:12px;margin-top:3px;overflow-wrap:anywhere}#gj-audience #gap-picker .copy{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere}#gj-audience #gap-picker .copy button{padding:0 3px;min-height:21px;min-width:21px;font-size:12px;background:#f8fbff}#gj-audience #gap-picker .statusbits{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;font-size:11px}#gj-audience #gap-picker .small-pill{padding:2px 5px;border-radius:5px;background:#eef5fb;color:#50718b}#gj-audience #gap-picker .good{background:#e8f7ef;color:#287a53}#gj-audience #gap-picker .warn{background:#fff3db;color:#8e6521}#gj-audience #gap-picker .move{display:block;margin:7px 0 0 auto;font-size:12px;white-space:nowrap}#gj-audience #gap-picker .account-card.compact .card-inner{position:relative;padding-right:76px;min-height:34px}#gj-audience #gap-picker .account-card.compact .move{position:absolute;right:0;bottom:0;margin:0}#gj-audience #gap-picker .empty{grid-column:1/-1;text-align:center;color:#6c879c;font-size:13px;padding:20px 8px}#gj-audience #gap-picker .busy-note{color:#94712e;font-size:11px;margin-top:5px}#gj-audience #gap-picker .feedback{font-size:12px;color:#2a7b59;min-height:18px;margin-top:7px}
#gj-audience #gap-picker .country-badge{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;padding:1px 4px;border-radius:5px;background:#edf5fc;color:#426b89;font-size:11px;line-height:18px;white-space:nowrap}

#gj-audience #gap-picker .country-flag{display:inline-flex;width:18px;height:12px;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px #cad9e6}

#gj-audience #gap-picker .country-flag svg{display:block;width:100%;height:100%}

#gj-audience #gap-picker .gap-proxy-details{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin-top:5px;color:#66839c;font-size:12px;min-width:0}

#gj-audience #gap-picker .gap-proxy-name{overflow-wrap:anywhere;min-width:0}
/* Isolate controls from the full GramJet page's width:100% input defaults. */
#audienceNavigation[hidden]{display:none!important}
#gj-audience{--gc-line:#d4e4f2;--gc-soft:#f5faff;--gc-muted:#66839c}
#gj-audience label{margin:0;justify-content:flex-start;font-size:13px}
#gj-audience input[type=checkbox],#gj-audience input[type=radio]{width:16px;height:16px;min-width:16px;flex:0 0 16px;padding:0;margin:0;box-shadow:none}
#gj-audience button{margin:0;min-height:34px;padding:7px 10px}
#gj-audience h4{font-size:14px;margin:0}#gj-audience .head select{width:auto;min-width:220px}
#gj-audience .ga-setting-groups{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#gj-audience .ga-setting-group{background:#f7fbff;border:1px solid #dce8f2;border-radius:10px;padding:14px}
#gj-audience .ga-setting-group h4{margin:0 0 12px}
#gj-audience .settings{grid-template-columns:1fr;gap:12px}
#gj-audience .ga-auto-label{margin-bottom:12px}#gj-audience .ga-auto-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#gj-audience .ga-auto-settings label{display:flex;align-items:stretch;flex-direction:column;gap:6px}
#gj-audience .ga-auto-settings select{width:100%;min-width:0}
#gj-audience .ga-explanation{margin-top:12px}#gj-audience .ga-explanation summary{color:#66839c;font-size:12px}
#gj-audience #ga-filter{width:auto}#gj-audience #ga-source-hint:empty{display:none}
#gj-audience #gap-picker .sectionhead,#gj-audience #gap-picker .section-title,#gj-audience #gap-picker .toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#gj-audience #gap-picker .sectionhead{justify-content:space-between;margin-bottom:14px}
#gj-audience #gap-picker .section-title p{margin:3px 0 0}#gj-audience #gap-picker .step{margin:0;flex-shrink:0}
#gj-audience #gap-picker .identity{flex-direction:row}#gj-audience #gap-picker p{margin:4px 0}
#gj-audience #gap-picker .switch-label input{flex:0 0 32px;width:32px;height:18px;border:0;padding:0}
#gj-audience #gap-picker .account-list{min-height:0;max-height:420px;overflow:auto;align-items:start}
#gj-audience #gap-picker #gap-selected{grid-template-columns:1fr}
#gj-audience #ga-export-format{width:140px;min-width:0;flex:0 0 auto}
#gj-audience #gap-picker .account-card .card-inner{position:relative;padding-right:80px;min-height:34px}
#gj-audience #gap-picker .account-card .move{position:absolute;right:0;bottom:0;margin:0}
#gj-audience #gap-picker .avatar{width:32px;height:32px;min-width:32px;object-fit:cover}
#gj-audience #gap-picker .filter-menu{max-height:250px;overflow:auto}
#gj-audience #gap-picker .copy button{padding:0 3px;min-height:21px}
#gj-audience #gap-picker .settings-actions button{padding:6px 9px}
#gj-audience #gap-picker .danger{color:#b44747}#gj-audience #gap-picker .premium-tabs button[aria-pressed=true]{background:#187dd5;color:#fff}
@container(max-width:580px){#gj-audience #gap-picker .account-list{grid-template-columns:1fr}}
@container(max-width:370px){#gj-audience #gap-picker .filters{grid-template-columns:1fr 1fr}#gj-audience #gap-picker .filters input[type=search]{grid-column:1/-1}#gj-audience #gap-picker .busy-check{grid-column:2}}
@media(max-width:760px){#gj-audience #gap-picker .columns,#gj-audience .ga-setting-groups{grid-template-columns:1fr}#gj-audience #gap-picker .compact-controls{width:100%;justify-content:flex-end}}
@media(max-width:400px){#gj-audience .ga-auto-settings{grid-template-columns:1fr}#gj-audience #gap-picker .settings-menu{width:280px;max-width:calc(100vw - 70px)}#gj-audience #gap-picker .account-card .card-inner{padding-right:0}#gj-audience #gap-picker .account-card .move{position:static;margin-left:auto}}

#gj-audience .ga-name-block{margin:0 0 14px}#gj-audience #ga-name-draft label{margin-bottom:6px}#gj-audience #ga-name{width:480px;max-width:100%}#gj-audience #ga-name-title{font-size:18px;overflow-wrap:anywhere;min-width:0}#gj-audience #ga-name-value{width:380px;min-width:0;max-width:100%}#gj-audience #ga-name-feedback:empty{display:none}#gj-audience #ga-name-feedback{display:block;margin-top:6px;font-size:13px}#gj-audience #ga-runs{max-width:100%;width:420px;min-width:0}#gj-audience #ga-name-editor{align-items:center}@media(max-width:560px){#gj-audience #ga-name-value{width:100%}}

#gj-audience .ga-main-controls{width:100%;text-align:center;padding:8px 0 12px}
#gj-audience .ga-main-action{display:flex;justify-content:center}
#gj-audience .ga-secondary-controls{display:flex;justify-content:center;gap:8px;margin-top:10px}
#gj-audience #ga-start,#gj-audience #ga-stop{margin:0;min-height:54px;min-width:220px;max-width:100%;padding:12px 30px;font-size:18px!important;font-weight:600;border-radius:10px}
#gj-audience #ga-stop{background:#d83240;border-color:#d83240;color:#fff}
#gj-audience #ga-stop:hover:not(:disabled){background:#bd2532;border-color:#bd2532;color:#fff}
#gj-audience #ga-stop:active:not(:disabled){background:#a51e2a;color:#fff}
#gj-audience #ga-start:focus-visible,#gj-audience #ga-stop:focus-visible{outline:3px solid #86bdf0;outline-offset:3px}

#gj-audience .ga-authors-settings{margin:14px 0}#gj-audience .ga-authors-settings>label,#gj-audience #ga-period-box>label{display:block;margin:8px 0 6px}#gj-audience .ga-authors-settings select{width:300px;max-width:100%}#gj-audience #ga-period-box{background:#f5faff;border:1px solid #d1e5f5;border-radius:10px;padding:12px;margin-top:12px}#gj-audience #ga-custom-period{margin-top:10px}#gj-audience #ga-custom-period label{display:flex;flex-direction:column;gap:5px}#gj-audience .stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}

#gj-audience #target-box{margin:16px 0}
#gj-audience #parallel{padding:14px;background:#f4faff;border:1px solid #bedaf0;border-radius:10px}
#gj-audience #progress-line{width:100%;height:8px;accent-color:#187dd5}
#gj-audience .worker{display:flex;gap:16px;flex-wrap:wrap;padding:6px 0}

#gj-audience #ga-results:has(table){box-sizing:border-box;height:380px;min-height:160px;max-height:none;resize:vertical}

#gj-audience .portrait-button{padding:0;border:0;background:transparent;cursor:zoom-in;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:0}
#gj-audience .photo-view{max-width:92vw;max-height:92vh;box-sizing:border-box;border:1px solid #c7dff0;border-radius:12px;padding:16px}#gj-audience .photo-view[open]{display:grid;gap:10px}#gj-audience .photo-view::backdrop{background:#102638a6}#gj-audience .photo-view img:not([hidden]){display:block;width:auto;height:auto;max-width:82vw;max-height:72vh;object-fit:contain}#gj-audience .photo-view p:empty{display:none}

/* Leave a clear edge below the last account and keep the feedback outside scrolling. */
#gj-audience #gap-picker .account-list {
  padding-bottom: 8px;
  scrollbar-gutter: stable;
  scroll-padding-block: 4px;
  scroll-snap-type: y proximity;
}
#gj-audience #gap-picker .account-card {
  scroll-snap-align: start;
}
#gj-audience #gap-picker .feedback {
  position: static;
  margin-top: 10px;
}

#gj-audience .ga-history{position:relative;min-width:0;width:min(610px,100%);max-width:100%}
#gj-audience .ga-history #ga-runs{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
#gj-audience #ga-runs::after{content:"";width:7px;height:7px;border:solid #567184;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 5px 3px;flex:none}
#gj-audience #ga-runs[aria-expanded=true]::after{transform:rotate(225deg)}
#gj-audience #ga-history-menu{position:absolute;z-index:6;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #bbd9ef;border-radius:8px;padding:5px;box-shadow:0 8px 24px #16334d20}
#gj-audience #ga-history-menu[hidden]{display:none}
#gj-audience #ga-history-menu>label{display:flex;align-items:center;gap:7px;padding:6px 9px;font-size:13px}
#gj-audience #ga-history-list{max-height:min(380px,48vh);overflow:auto}
#gj-audience #ga-history-list button,#gj-audience #ga-history-new{width:100%;text-align:left;padding:8px;border:0;border-radius:4px;background:#fff;color:#143c59}
#gj-audience .ga-history-row{display:flex;align-items:center;border-radius:5px}
#gj-audience .ga-history-row+.ga-history-row{border-top:1px solid #e4eff6}
#gj-audience .ga-history-row:is(:hover,:focus-within){background:#edf7ff}
#gj-audience #ga-history-list .ga-history-row button[data-run-id]{min-width:0;flex:1;background:transparent}
#gj-audience #ga-history-list .ga-row-delete{flex:none;width:34px;height:34px;padding:0;margin:0 3px;text-align:center;font-size:21px;line-height:1;color:#ad3139;background:transparent;opacity:0;pointer-events:none}
#gj-audience #ga-history-list .ga-history-row:is(:hover,:focus-within) .ga-row-delete{opacity:1;pointer-events:auto}
#gj-audience #ga-history-list .ga-row-delete:not([aria-disabled=true]):is(:hover,:focus-visible){background:#ffeaeb}
#gj-audience #ga-history-list .ga-row-delete[aria-disabled=true]{color:#83909a;cursor:not-allowed}
@media(hover:none),(pointer:coarse){#gj-audience #ga-history-list .ga-row-delete{width:44px;height:44px;opacity:1;pointer-events:auto}}
#gj-audience #ga-history-list button:is(:hover,:focus-visible),#gj-audience #ga-history-new:hover{background:#edf7ff}
#gj-audience .ga-history-line{display:grid;width:100%;grid-template-columns:6em minmax(0,1fr) auto;align-items:center;gap:3px 9px}
#gj-audience .ga-history-count{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#gj-audience .ga-history-name{overflow-wrap:anywhere}
#gj-audience .ga-history-name small{display:block;color:#536d82;font-weight:400;font-size:12px}
#gj-audience .ga-run-status{font-weight:600;text-align:right;color:#616e79}
#gj-audience .state-running,#gj-audience .state-queued{color:#1855b5}
#gj-audience .state-waiting{color:#097493}
#gj-audience .state-paused,#gj-audience .state-pausing,#gj-audience .state-partial{color:#916003}
#gj-audience .state-completed{color:#207441}
#gj-audience .state-failed,#gj-audience .ga-danger-text,#gj-audience #ga-delete-error{color:#ad3139}
#gj-audience #ga-delete-dialog{max-width:min(420px,90vw);padding:20px;border:1px solid #bbd9ef;border-radius:12px;color:#153c57;overflow-wrap:anywhere}
#gj-audience #ga-delete-dialog::backdrop{background:#102e4360}
#gj-audience #ga-delete-dialog .row{justify-content:flex-end}
#gj-audience #ga-delete-confirm{background:#ad3139;color:white;border-color:#ad3139}
#gj-audience #ga-stop-dialog{box-sizing:border-box;width:min(420px,92vw);padding:20px;border:1px solid #bbd9ef;border-radius:12px;color:#153c57;overflow-wrap:anywhere}
#gj-audience #ga-stop-dialog::backdrop{background:#102e4360}
#gj-audience #ga-stop-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#gj-audience #ga-stop-heading{font-size:1.1rem;margin:4px 0}
#gj-audience #ga-stop-close{flex:none;padding:0;width:32px;height:32px;font-size:22px}
#gj-audience #ga-stop-dialog .row{justify-content:flex-end}
#gj-audience #ga-stop-confirm{background:#ad3139;color:white;border-color:#ad3139}
#gj-audience #ga-stop-cancel{background:#176bb1;color:white;border-color:#176bb1}
#gj-audience #ga-stop-cancel:hover{background:#125a96;border-color:#125a96}
#gj-audience #ga-stop-cancel:focus-visible{outline:2px solid #165a99;outline-offset:2px}
#gj-audience #ga-stop-count{margin:12px 0 6px;color:#153c57}
#gj-audience #ga-stop-count strong{font-size:1.1em;font-variant-numeric:tabular-nums}
@media(max-width:680px){#gj-audience #results-panel>.head{flex-wrap:wrap}#gj-audience .ga-history-line{grid-template-columns:5em minmax(0,1fr)}#gj-audience .ga-run-status{grid-column:2;text-align:left}}

#gj-audience .ga-run-toolbar {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end;
  gap:14px;
  margin:16px 0;
}
#gj-audience .ga-run-toolbar .ga-name-block {min-width:0;margin:0}
#gj-audience .ga-run-toolbar .ga-history,
#gj-audience .ga-run-toolbar #ga-name {width:100%}
#gj-audience .ga-run-toolbar label[for="ga-name"],
#gj-audience .ga-run-toolbar label[for="ga-runs"] {margin:0 0 6px;font-weight:600}
#gj-audience .ga-run-toolbar #ga-name,
#gj-audience .ga-run-toolbar #ga-runs {min-height:44px;margin:0}
#gj-audience .ga-main-controls:not(:has(button:not([hidden]))),
#gj-audience #ga-feedback:empty {display:none}
@media(max-width:760px) {
  #gj-audience .ga-run-toolbar {grid-template-columns:minmax(0,1fr);gap:12px}
}

#gj-audience #ga-bulk-tools {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px;border-block:1px solid #d8e7f4}
#gj-audience #ga-bulk-delete {color:#a42d38;border-color:#e3b6bc}
#gj-audience .ga-history-row input[data-mark-id] {margin:0 2px 0 10px}

/* Filtered collections show progress towards their saved target in history. */
#gj-audience .ga-history-line-filtered{grid-template-columns:minmax(0,1fr) auto}
#gj-audience .ga-history-line-filtered .ga-history-name{grid-column:1;grid-row:1}
#gj-audience .ga-history-line-filtered .ga-history-count{grid-column:1;grid-row:2;white-space:normal}
#gj-audience .ga-history-line-filtered .ga-history-count small{display:block;font-size:12px;font-weight:400}
#gj-audience .ga-history-line-filtered .ga-run-status{grid-column:2;grid-row:1 / span 2}
@media(max-width:680px){#gj-audience .ga-history-line-filtered{grid-template-columns:minmax(0,1fr)}#gj-audience .ga-history-line-filtered .ga-run-status{grid-column:1;grid-row:3}}

/* Explain validation beside the field and keep the launch action discoverable. */
#gj-audience .ga-field-error {color:#b42318;font-size:13px;line-height:1.5;margin:6px 0 10px;overflow-wrap:anywhere}
#gj-audience [data-launch-invalid] {border-color:#d92d20!important;outline-color:#d92d20}
#gj-audience #ga-launch-errors {margin:12px 0;padding:12px 16px;background:#fff4f2;border:1px solid #f5b4ae;border-radius:10px;color:#a92319;font-size:13px}
#gj-audience #ga-launch-errors[hidden],#gj-audience .ga-field-error[hidden] {display:none}
#gj-audience #ga-launch-errors ul {margin:6px 0 0;padding-left:20px}
#gj-audience #ga-launch-errors button {color:inherit;padding:3px 0;border:0;background:transparent;text-align:left;font:inherit;text-decoration:underline;white-space:normal}
#gj-audience #ga-launch-errors button:focus-visible {outline:2px solid #b42318}
#gj-audience button.ga-needs-attention {opacity:.72;cursor:pointer}
/* Approved history layout: stable rows, explicit new collection, visible delete. */
#gj-audience .ga-history,#gj-audience .ga-history *{box-sizing:border-box}
#gj-audience .ga-run-toolbar{grid-template-columns:minmax(220px,1fr) minmax(480px,1.7fr);align-items:start;gap:24px}
#gj-audience .ga-run-toolbar #ga-runs,#gj-audience .ga-history #ga-runs{height:88px;min-height:88px;padding:12px 16px;margin:0;border-radius:10px;background:#f7fbff;gap:12px}
#gj-audience .ga-history #ga-runs.ga-history-new-selected{background:#eaf5ff;border:1px solid #69aff1}
#gj-audience #ga-runs[aria-expanded=true]{box-shadow:0 0 0 3px #e7f3ff}
#gj-audience #ga-runs::after{width:9px;height:9px}
#gj-audience #ga-history-menu{top:calc(100% + 8px);padding:8px;border-radius:13px;box-shadow:0 12px 34px #1f4f7421}
#gj-audience #ga-history-new{height:88px;padding:14px;text-align:left;border:1px solid #bedbf3;border-radius:9px;background:#f1f8ff}
#gj-audience #ga-history-new.selected{border-color:#73b4ef;background:#eaf5ff}
#gj-audience #ga-history-new:hover{background:#e5f2ff}
#gj-audience .ga-history-new-line{display:flex;align-items:center;gap:14px;width:100%;min-width:0}
#gj-audience .ga-history-plus{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:11px;background:#d8ebff;color:#087bd2;font-size:29px!important;line-height:1!important}
#gj-audience .ga-history-new-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
#gj-audience .ga-history-new-copy strong{font-size:18px!important;color:#125b91;font-weight:700}
#gj-audience .ga-history-new-copy small{font-size:13px!important;color:#65859f}
#gj-audience .ga-history-selected-mark{margin-left:auto;font-size:12px!important;color:#0b78c8;white-space:nowrap}
#gj-audience #ga-history-menu>label{padding:15px 10px 13px;margin:0;font-size:13px!important;border-bottom:1px solid #e2edf6;gap:8px;max-width:none;width:100%}
#gj-audience #ga-history-list{max-height:min(440px,52vh);overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
#gj-audience .ga-history-row{height:88px;min-height:88px;border-radius:8px;gap:4px;padding-right:8px}
#gj-audience .ga-history-row.selected{background:#eaf5ff;box-shadow:inset 3px 0 #2386d6}
#gj-audience .ga-history-row:is(:hover,:focus-within){background:#f0f8ff}
#gj-audience #ga-history-list .ga-history-row button[data-run-id]{height:100%;margin:0;padding:12px 10px;border:0;border-radius:8px;text-align:left;color:#214e6e}
#gj-audience .ga-history-line{display:grid;grid-template-columns:84px minmax(0,1fr) 154px;align-items:center;gap:12px;width:100%;min-width:0}
#gj-audience .ga-history-count{font-size:19px!important;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2!important}
#gj-audience .ga-history-count small{display:block;font-size:11px!important;font-weight:400;color:#7690a5;margin-top:4px}
#gj-audience .ga-history-name{min-width:0}
#gj-audience .ga-history-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:14px!important;line-height:18px!important;font-weight:600;max-height:36px}
#gj-audience .ga-history-name small{font-size:12px!important;color:#7790a4;margin-top:5px;line-height:15px!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#gj-audience .ga-history-line .ga-run-status{grid-column:auto;display:inline-flex;align-items:center;gap:6px;justify-self:end;font-size:12px!important;line-height:16px!important;max-width:154px;max-height:42px;padding:5px 8px;border-radius:7px;text-align:left;font-weight:600;color:#6d7e8b;background:#f0f3f6;overflow:hidden}
#gj-audience .ga-history-line .ga-run-status::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
#gj-audience .ga-history-line .state-running,#gj-audience .ga-history-line .state-queued{color:#2567c6;background:#edf3ff}
#gj-audience .ga-history-line .state-waiting{color:#087e9b;background:#e8f8fc}
#gj-audience .ga-history-line .state-paused,#gj-audience .ga-history-line .state-pausing,#gj-audience .ga-history-line .state-partial{color:#936300;background:#fff5df}
#gj-audience .ga-history-line .state-completed{color:#198056;background:#eaf8f0}
#gj-audience .ga-history-line .state-failed{color:#bc4153;background:#fff0f2}
#gj-audience #ga-history-list .ga-row-delete{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;margin:0;opacity:1;pointer-events:auto;border:1px solid #efcbd1;background:#fff5f6;color:#bd4b5b;border-radius:9px}
#gj-audience #ga-history-list .ga-row-delete svg{width:23px;height:23px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}
#gj-audience #ga-history-list .ga-row-delete:not([aria-disabled=true]):is(:hover,:focus-visible){background:#ffe5e9;border-color:#dc8f9c;color:#ac233b}
#gj-audience #ga-history-list .ga-row-delete[aria-disabled=true]{color:#91a1af;border-color:#dce5ec;background:#f6f9fb;cursor:not-allowed}
#gj-audience .ga-history button:focus-visible{outline:3px solid #72b9f3;outline-offset:2px}
@media(max-width:1250px){#gj-audience .ga-run-toolbar{grid-template-columns:minmax(0,1fr);gap:18px}}
@media(max-width:760px){
 #gj-audience .ga-history #ga-runs{padding:10px}
 #gj-audience #ga-history-menu{padding:5px}
 #gj-audience .ga-history-line{grid-template-columns:68px minmax(0,1fr);gap:4px 8px}
 #gj-audience .ga-history-count{grid-column:1;grid-row:1 / span 2;font-size:16px!important}
 #gj-audience .ga-history-count small{font-size:10px!important}
 #gj-audience .ga-history-name{grid-column:2;grid-row:1}
 #gj-audience .ga-history-title{font-size:12px!important;line-height:15px!important;max-height:30px}
 #gj-audience .ga-history-name small{font-size:10px!important;line-height:12px!important;margin-top:3px}
 #gj-audience .ga-history-line .ga-run-status{display:block;grid-column:2;grid-row:2;justify-self:start;padding:0;background:transparent;max-width:100%;font-size:11px!important;line-height:16px!important;max-height:16px;white-space:nowrap;text-overflow:ellipsis}
 #gj-audience .ga-history-line .ga-run-status::before{display:inline-block;margin-right:5px;vertical-align:middle}
 #gj-audience #ga-history-list .ga-history-row button[data-run-id]{padding:9px 6px}
 #gj-audience .ga-history-row{padding-right:4px}
 #gj-audience #ga-history-new{padding:10px}
 #gj-audience .ga-history-new-line{gap:9px}
 #gj-audience .ga-history-new-copy strong{font-size:17px!important}
 #gj-audience .ga-history-new-copy small{font-size:11px!important}
 #gj-audience .ga-history-selected-mark{font-size:10px!important}
}

/* Local review: compact history, same size as neighbouring controls. */
#gj-audience .ga-run-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
#gj-audience .ga-run-toolbar #ga-runs,#gj-audience .ga-history #ga-runs{height:44px;min-height:44px;padding:5px 12px}
#gj-audience #ga-runs .ga-history-new-copy small,#gj-audience #ga-runs .ga-history-name small,#gj-audience #ga-runs .ga-history-count small{display:none}
#gj-audience #ga-runs .ga-history-plus{width:28px;height:28px;font-size:22px!important;border-radius:7px}
#gj-audience #ga-runs .ga-history-new-copy strong{font-size:15px!important}
#gj-audience #ga-runs .ga-history-title{-webkit-line-clamp:1;max-height:18px}
#gj-audience #ga-runs .ga-history-count{font-size:15px!important}
#gj-audience #ga-runs .ga-history-line{grid-template-columns:56px minmax(0,1fr) 130px;gap:8px}
#gj-audience #ga-runs .ga-run-status{font-size:11px!important;line-height:14px!important;max-height:30px;padding:3px 5px}
#gj-audience #ga-history-new{height:60px;padding:8px 10px}
#gj-audience #ga-history-new .ga-history-plus{width:32px;height:32px;font-size:24px!important;border-radius:8px}
#gj-audience #ga-history-new .ga-history-new-copy{gap:2px}
#gj-audience #ga-history-new .ga-history-new-copy strong{font-size:15px!important}
#gj-audience #ga-history-new .ga-history-new-copy small{font-size:12px!important}
#gj-audience #ga-history-menu>label{padding:10px}
#gj-audience .ga-history-row{height:76px;min-height:76px}
#gj-audience #ga-history-list .ga-history-row button[data-run-id]{padding:7px 8px}
#gj-audience #ga-history-menu{min-width:min(640px,calc(100vw - 48px));right:0;left:auto}
@media(max-width:900px){#gj-audience .ga-run-toolbar{grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:760px){
 #gj-audience #ga-history-menu{min-width:0;width:100%}
 #gj-audience #ga-runs .ga-history-line{grid-template-columns:44px minmax(0,1fr);gap:2px 6px}
 #gj-audience #ga-runs .ga-history-count{grid-row:1 / span 2}
 #gj-audience #ga-runs .ga-run-status{grid-column:2;grid-row:2;padding:0;line-height:12px!important;max-height:12px}
}
