.targeted-search-overview{border:1px solid #bdcedb;border-radius:20px;background:#fff;overflow:hidden;margin-bottom:22px;color:#203f53}
.targeted-search-band{padding:16px 20px;background:linear-gradient(135deg,#26303f,#191b22);color:#fff}
.targeted-search-band h2{font-size:20px;line-height:1.4;margin:0;color:inherit;scroll-margin-top:var(--interaction-bar-offset)}
.targeted-search-overview-body{padding:20px}
.targeted-selected-mode{display:inline-block;margin:0 0 20px;padding:8px 12px;border-radius:10px;background:#edf5fa;border:1px solid #c3d7e5;font-size:14px;line-height:1.5;font-weight:800}
.targeted-recap-title{font-size:18px;margin:0 0 14px}
.targeted-summary-part{padding:16px 0;border-top:1px solid #d6e1e8}
.targeted-summary-part h3{font-size:16px;margin:0 0 12px;line-height:1.5}
.targeted-summary-part p{font-size:14px;line-height:1.6;color:#526b7c;margin:0}
.targeted-summary-part ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.targeted-summary-part li{display:grid;gap:5px;font-size:14px;line-height:1.5}
.targeted-summary-part li span{color:#526b7c}
.targeted-search-overview .targeted-search-edit{display:block;width:100%;min-height:48px;margin-top:16px;font-size:16px;font-weight:800;background:#FFD300;color:#26303f;white-space:normal}
.targeted-search-editor{padding:20px;border:1px solid #bdcedb;border-radius:18px;background:#f5f9fc;margin:0 0 22px;color:#203f53;overflow:visible}
.targeted-search-editor>h2{font-size:21px;margin:0 0 10px;scroll-margin-top:var(--interaction-bar-offset)}
.targeted-search-editor>p,.targeted-search-options>p{font-size:14px;line-height:1.6;color:#526b7c;margin:0 0 16px}
body #searchForm .targeted-editor-toolbar{position:sticky;top:calc(var(--interaction-bar-offset,100px) + 8px);z-index:12;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;background:#fff;border:1px solid #bdcedb;border-radius:12px;box-shadow:0 4px 14px #203f5317;margin:0 0 6px;width:100%}
body #searchForm .targeted-editor-toolbar>span{font-size:13px;line-height:1.4;color:#526b7c}
body #searchForm .targeted-editor-exit{min-height:44px;flex:0 1 auto;white-space:normal;font-size:14px;font-weight:750;color:#203f53;border-color:#607e95;background:#fff;padding:10px 14px}
.targeted-search-options{padding:20px;border:1px solid #bdcedb;border-radius:18px;background:#fff;margin-bottom:20px;color:#203f53}
.targeted-search-options h2{font-size:18px;line-height:1.5;margin:0 0 14px}
.targeted-search-options .confirmation-check{min-height:44px;font-size:14px;line-height:1.5;margin-bottom:12px;cursor:pointer}
.targeted-search-options input{width:20px;height:20px;flex:none;accent-color:#26303f}
.targeted-search-options>p{margin:14px 0 0}
@media(max-width:600px){.targeted-search-band{padding:14px 16px}.targeted-search-band h2{font-size:18px}.targeted-search-overview-body,.targeted-search-options{padding:16px}.targeted-search-editor{padding:14px 10px}body #searchForm .targeted-editor-toolbar{gap:8px;padding:8px}body #searchForm .targeted-editor-toolbar>span{font-size:12px;max-width:110px}body #searchForm .targeted-editor-exit{flex:1;font-size:13px}}
/* Preserve the original dark search window and on/off selector. */
.search-panel.targeted-search-dark{display:block;background:var(--ink,#181a0f);color:#fff;padding:24px;overflow:visible}
.targeted-search-dark>.search-mode{width:100%;min-width:0}
.targeted-search-dark .search-panel-heading{display:block}
.targeted-search-dark .search-switch{display:flex;align-items:center;gap:12px;min-height:44px}
.targeted-search-dark .search-switch strong{font-size:18px;line-height:1.45;color:#fff}
.targeted-search-dark .search-mode-note{margin:10px 0 18px;color:#c6d3cf}
.targeted-dark-recap{padding-top:16px;border-top:1px solid #ffffff2b}
.targeted-dark-recap>h2{font-size:16px;line-height:1.5;color:#fff;margin:0 0 10px;scroll-margin-top:var(--interaction-bar-offset)}
.targeted-search-dark .targeted-selected-mode{margin:0 0 14px;padding:6px 10px;background:#ffffff12;border:1px solid #ffffff40;color:#fff;font-size:13px}
.targeted-search-dark .targeted-recap-title{font-size:14px;color:#c6d3cf;margin:0 0 10px}
.targeted-search-dark .targeted-summary-part{padding:12px 0;border-color:#ffffff25}
.targeted-search-dark .targeted-summary-part h3{font-size:15px;color:#fff;margin:0 0 10px}
.targeted-search-dark .targeted-summary-part :is(p,li span){color:#c6d3cf}
.targeted-search-dark .targeted-summary-part strong{color:#fff;font-size:14px;line-height:1.5;font-weight:750}
.targeted-search-dark .identity-data-grid{gap:12px 20px}
.targeted-search-dark .identity-data-grid dt{color:#c6d3cf;font-size:12px}
.targeted-search-dark .identity-data-grid dd{color:#fff;font-size:14px}
.targeted-search-dark .targeted-search-edit{display:block;width:fit-content;min-width:210px;max-width:100%;min-height:48px;margin:18px auto 22px;background:#FFD300;color:#181a0f;font-size:16px;font-weight:800;white-space:normal}
.targeted-search-dark .include-habitual{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5;margin-top:14px}
.targeted-search-dark .include-habitual input{flex:none;width:18px;height:18px;accent-color:#FFD300}
.targeted-search-dark .search-notice{font-size:13px;line-height:1.6;color:#c6d3cf;margin:14px 0 0}
.targeted-search-dark>.targeted-search-editor{margin:22px 0 0}
.targeted-search-dark .targeted-search-editor>h2{color:#203f53}
.targeted-search-dark .targeted-search-editor>p{color:#526b7c}
@media(max-width:600px){.search-panel.targeted-search-dark{padding:18px 16px}.targeted-search-dark .search-switch strong{font-size:16px}.targeted-search-dark .targeted-search-edit{min-width:200px}.targeted-search-dark .identity-data-grid{gap:12px 14px}}
.targeted-habitual-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.targeted-search-dark .targeted-habitual-heading h3{margin:0}
.targeted-search-dark .targeted-habitual-heading .include-habitual{margin:0;font-size:12px;padding:8px 10px}
.targeted-search-dark .targeted-habitual-note,.targeted-search-dark .targeted-expired-note,.targeted-search-dark .targeted-no-saved-search{font-size:13px;line-height:1.6;color:#c6d3cf;margin:12px 0 0}
.targeted-search-dark .targeted-expired-note{padding:10px;border:1px solid #FFD30066;border-radius:8px;color:#fff1a1}
/* Activation and habitual inclusion belong to the outer dark panel. */
body .targeted-search-dark .search-panel-heading{display:flex;align-items:center;justify-content:flex-start!important;gap:18px;flex-wrap:wrap;margin-bottom:18px}
body .targeted-search-dark .search-panel-heading h2{margin:0;font-size:20px}
body .targeted-search-dark .search-switch{flex:none;margin:0;padding:0}
body .targeted-search-dark .targeted-habitual-live{margin:0 0 20px;padding:0;border:0;background:transparent}
body .targeted-search-dark .targeted-habitual-live>p{color:#e2e9ed;font-size:14px;line-height:1.6;margin:10px 0}
body .targeted-search-dark .targeted-habitual-live>.targeted-dedup-note{background:transparent;border:0;padding:0;color:#e2e9ed}
body .targeted-search-dark .targeted-habitual-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body .targeted-search-dark .targeted-habitual-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:start;gap:14px;margin:0;padding:16px;background:#f4f8fc;border:1px solid #b9d0e1;border-radius:14px;color:#203f53;text-align:left;cursor:pointer;min-width:0}
body .targeted-search-dark .targeted-habitual-row:has(input:checked){border-color:#83b8a0;box-shadow:inset 4px 0 #459271}
body .targeted-search-dark .targeted-habitual-copy{min-width:0}
body .targeted-search-dark .targeted-habitual-copy>strong{font-size:17px;color:#244f74;display:block;margin-bottom:12px}
body .targeted-search-dark .targeted-source-status{display:inline-block;max-width:100%;padding:4px 10px;border:1px solid;border-radius:999px;font-size:12px;font-weight:800;line-height:1.4;margin:0 0 14px}
body .targeted-search-dark .targeted-source-status.is-active{background:#e4f3eb;border-color:#8bbb9f;color:#205d40}
body .targeted-search-dark .targeted-source-status.is-inactive{background:#fae9e8;border-color:#dba4a0;color:#8a302c}
body .targeted-search-dark .targeted-source-activate{display:block;max-width:100%;min-height:44px;padding:10px;margin:14px 0 0;border:1px solid #91afc5;border-radius:9px;background:#e3eff8;color:#244f74;white-space:normal;text-align:left;font-size:13px;font-weight:750;line-height:1.5}
body .targeted-search-dark .targeted-habitual-details{display:grid;gap:12px;color:#203f53;font-size:14px;line-height:1.5}
body .targeted-search-dark .habitual-recap-group{display:grid;gap:6px}
body .targeted-search-dark .habitual-recap-group>b{font-size:14px;color:#244f74}
body .targeted-search-dark .habitual-recap-line{display:grid;gap:1px;overflow-wrap:anywhere}
body .targeted-search-dark .habitual-recap-line>span:first-child{color:#526b7c;font-size:12px}
body .targeted-search-dark .habitual-recap-line>span:last-child{color:#203f53;font-weight:700}
body .targeted-search-dark .targeted-habitual-check{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;line-height:1.5;text-align:center;color:#244f74}
body .targeted-search-dark .targeted-habitual-check input{width:26px;height:26px;min-height:26px;margin:0;accent-color:#32835f;cursor:pointer}
body .targeted-search-dark .targeted-habitual-check input:disabled{cursor:default}
body .targeted-search-dark .targeted-habitual-row:focus-within{outline:3px solid #FFD300;outline-offset:3px}
@media(max-width:760px){body .targeted-search-dark .targeted-habitual-rows{grid-template-columns:minmax(0,1fr)}}
@media(max-width:440px){body .targeted-search-dark .search-panel-heading{gap:12px}body .targeted-search-dark .search-panel-heading h2{font-size:18px}body .targeted-search-dark .search-switch strong{font-size:14px}body .targeted-search-dark .targeted-habitual-row{grid-template-columns:minmax(0,1fr) 75px;gap:10px;padding:14px}}
