body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar){display:flex;justify-content:space-between;gap:12px;align-items:center;position:sticky;top:calc(var(--interaction-bar-offset,100px) + 8px);z-index:15;padding:9px 12px;background:#fff;border:1px solid #b9ccd9;border-radius:13px}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-toolbar-title{min-width:0;max-width:none!important;flex:1;font-size:17px!important;font-weight:800;line-height:1.4;color:#203f53}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-review-lock{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;min-width:48px;max-width:48px;min-height:48px;margin:0;padding:8px;border:1px solid #abc1cf;border-radius:12px;background:#f0f6fa;color:#254963;box-shadow:none}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-review-lock[data-modified=true]{background:#fff5b8;border-color:#d4b400;color:#514400}
body .availability-review-lock .ctm-panel-lock{width:25px;height:28px}
body .availability-review-lock:not(.habitual-card-lock) .ctm-lock-shackle{transform:rotateY(180deg)}
body .availability-review-lock[data-modified=true] .ctm-lock-keyhole{display:none}
body .availability-review-lock[data-modified=true] .ctm-lock-save{display:block}
body .availability-review-lock:focus-visible{outline:2px solid #247d9a;outline-offset:3px}
/* Clear hierarchy for the targeted editor: inclusion, active cards, then criteria. */
body .targeted-habitual-choice{grid-column:1/-1;width:100%;box-sizing:border-box;border:1px solid #adc8b6;border-radius:15px;padding:16px;margin:0 0 16px;background:#fff;color:#203f53;text-align:left}
body .targeted-habitual-choice-title h3{font-size:18px;line-height:1.4;margin:0 0 8px;color:#203f53}
body #searchForm .targeted-include-choice{font-size:17px!important;font-weight:800;line-height:1.4;display:flex;align-items:center;gap:10px;padding:0;margin:0;text-align:left}
body #searchForm .targeted-include-choice>input{width:21px;height:21px;min-width:21px;flex:0 0 21px;accent-color:#287043;margin:0}
body #searchForm .targeted-include-choice>span{flex:1;min-width:0}
body .targeted-habitual-choice :is(.targeted-habitual-subtitle,.targeted-inclusion-note,.targeted-dedup-note){font-size:13px;line-height:1.55;color:#526b7c;margin:10px 0 0}
body .targeted-active-habitual-list{display:grid;gap:10px;margin-top:12px}
body .targeted-active-habitual-list article{padding:12px;border:1px solid #d4e0e8;border-radius:11px;background:#f5f9fb;min-width:0}
body .targeted-active-habitual-list h4{font-size:15px;line-height:1.5;margin:0 0 8px;color:#244d65}
body .targeted-active-habitual-list dl{display:grid;gap:7px;margin:0}
body .targeted-active-habitual-list dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px}
body .targeted-active-habitual-list dt{font-size:12px;color:#607787;font-weight:650}
body .targeted-active-habitual-list dd{margin:0;font-size:14px;font-weight:650;line-height:1.45;color:#203f53;overflow-wrap:anywhere}
body .targeted-active-center-list{border-top:1px solid #d7e2e8;margin-top:12px;padding-top:12px}
body .targeted-active-center-list h4{font-size:14px;line-height:1.5;margin:0 0 7px}
body .targeted-active-center-list ul{margin:0;padding-left:18px;font-size:13px;line-height:1.6}
body .targeted-habitual-choice .targeted-dedup-note{padding:9px 11px;border-radius:8px;background:#eaf4ee;color:#355b45}
body #searchForm .targeted-criteria-intro{grid-column:1/-1;padding:4px 0 10px}
body #searchForm .targeted-criteria-intro h3{font-size:19px;line-height:1.4;margin:0 0 7px;color:#203f53}
body #searchForm .targeted-criteria-intro p{font-size:13px;line-height:1.55;margin:0;color:#526b7c}
/* A short confirmation of effective settings, without raw or unused fields. */
dialog.availability-review-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:20px;border:1px solid #b9ccd9;border-radius:18px;background:#fff;color:#203f53;box-shadow:0 18px 60px #14253340;text-align:left}
dialog.availability-review-dialog::backdrop{background:#14253385}
.availability-review-dialog h2{font-size:22px;line-height:1.4;margin:0 0 12px}
.availability-review-dialog>p{font-size:14px;line-height:1.6;margin:0 0 16px;color:#526b7c}
.availability-review-content section{border:1px solid #d0dfe8;border-radius:12px;margin:14px 0;padding:12px;background:#f8fafb;min-width:0}
.availability-review-content h3{font-size:16px;line-height:1.5;margin:0 0 12px;color:#244d65}
.availability-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:-20px;padding:12px 0 4px;background:#fff}
.availability-review-actions>button{min-height:48px;padding:10px;font-size:14px;line-height:1.4;white-space:normal;border-radius:9px}
.availability-review-discard{display:block;width:100%;text-align:center;margin:14px 0 0;padding:10px;border:0;background:transparent;color:#526b7c;text-decoration:underline;font-size:13px;min-height:44px}
@media(max-width:440px){.availability-review-dialog{padding:14px}.availability-review-actions{bottom:-14px}.availability-review-content section{padding:9px}body .targeted-habitual-choice{padding:12px}body .targeted-active-habitual-list dl>div{grid-template-columns:78px minmax(0,1fr)}}

.availability-summary-card p{margin:5px 0 0;font-size:14px;line-height:1.5;color:#385367;overflow-wrap:anywhere}
.availability-review-content .availability-summary-card{padding:11px 12px;margin:9px 0}
.availability-review-content .availability-summary-card h3{font-size:15px;margin:0 0 5px}
.availability-summary-incomplete{font-size:13px;line-height:1.5;color:#6d5c25;margin:10px 0}
/* Two distinct overview cards and a compact, independent choice for every active source. */
body .habitual-search-overview{margin:0 0 20px;padding:16px;border:1px solid #bfd2df;background:#fff}
body .targeted-habitual-choice .targeted-habitual-choice-title h2{font-size:19px;line-height:1.4;margin:0;color:#203f53}
body .habitual-overview-list{display:grid;gap:0;list-style:none;margin:10px 0 14px;padding:0}
body .habitual-overview-list>li{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid #e0e8ed;min-width:0}
body .habitual-overview-list li>div{display:grid;gap:3px;min-width:0}
body .habitual-overview-list strong,body .targeted-habitual-row strong{display:block;color:#254963;font-size:14px;line-height:1.45}
body .habitual-overview-list small,body .targeted-habitual-row small{display:block;color:#526b7c;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
body .habitual-use-state{font-size:11px;line-height:1.45;color:#526b7c;flex:0 0 85px;text-align:right}
body .habitual-edit-from-search{min-height:44px;width:100%;font-size:14px;border-radius:9px}
body #searchForm .targeted-habitual-selection{padding:13px;margin:0 0 16px}
body #searchForm .targeted-habitual-row{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:12px;align-items:center;padding:10px 0;margin:0;border-top:1px solid #e0e8ed;text-align:left;cursor:pointer}
body #searchForm .targeted-habitual-rows{margin-top:10px}
body #searchForm .targeted-habitual-check{display:flex;gap:5px;align-items:center;justify-content:flex-end;font-size:12px;line-height:1.4;color:#294f3a;font-weight:700}
body #searchForm .targeted-habitual-check input{width:20px;height:20px;min-width:20px;flex:0 0 20px;margin:0;accent-color:#287043}
body .targeted-search-dark .search-panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
body .targeted-search-dark .search-panel-heading h2{margin:0;font-size:21px;line-height:1.4;color:#131b26}
body .targeted-search-dark .search-switch{width:auto;margin:0}
body .targeted-search-dark .search-switch strong{font-size:14px}
body .targeted-search-dark .targeted-compact-saved p{color:#e3e9ec;font-size:14px;line-height:1.55;margin:7px 0 0}
body .targeted-search-dark .targeted-compact-saved .targeted-saved-activity{font-size:15px;font-weight:750;color:#131b26}
body .targeted-search-dark .targeted-compact-saved .targeted-saved-inclusion{font-size:12px;color:#c0d5df}
body .targeted-search-dark .targeted-recap-title{font-size:14px;line-height:1.5;margin:12px 0 0;color:#d1dde3}
@media(max-width:440px){body #searchForm .targeted-habitual-row{grid-template-columns:minmax(0,1fr) 72px;gap:9px}body .habitual-use-state{flex-basis:72px}body .habitual-search-overview{padding:13px}}

/* A single dark, scrolling sticky title for the active subsection. */
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar){top:var(--interaction-bar-offset,100px);background:#f3f5f7;color:#131b26;border-color:#4d5864;border-radius:12px 12px 0 0;box-shadow:0 4px 12px #15233426;z-index:30;box-sizing:border-box}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-toolbar-title{color:#131b26!important}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-review-lock{background:transparent;border-color:#71839a;color:#131b26}
body :is(#standardPreferencesForm,#searchForm) :is(.habitual-edit-toolbar,.targeted-editor-toolbar)>.availability-review-lock[data-modified=true]{background:#fff5b8;color:#514400;border-color:#FFD300}
body #standardPreferencesForm .availability-editor-focus-hidden{display:none!important}
body #standardPreferencesForm .habitual-card-editing>summary .availability-summary-copy{display:none!important}
body #standardPreferencesForm .habitual-card-editing>summary.info-title{display:block}
body #standardPreferencesForm .habitual-card-editing>summary .habitual-header-actions{margin-bottom:10px}
body #standardPreferencesForm .habitual-card-editing{border:0;padding:0;background:transparent;box-shadow:none}
body .player-identity-editor[data-identity-editing=preferences] .identity-editor-heading{display:none}
body .player-preferences-package:has(#standardPreferencesForm[data-habitual-editing-card]) .ctm-subcard-save-footer{display:none}
body .targeted-search-editor{overflow:visible}
body #searchForm .targeted-editor-toolbar{width:100%;grid-column:1/-1;align-self:start}

/* Province is the first directly editable geographic selector in search forms. */
body :is(#standardPreferencesForm,#searchForm) .search-context-static{grid-column:1/-1;padding:10px 12px;border:1px solid #cbd9e3;border-radius:10px;background:#f3f7fa;min-width:0}
body .search-context-summary{display:flex;align-items:center;gap:10px;justify-content:space-between}
body .search-context-summary dl{display:grid;gap:5px;min-width:0;margin:0}
body .search-context-summary dl>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;font-size:13px;line-height:1.5}
body .search-context-summary dt{color:#607587;font-weight:500}
body .search-context-summary dd{margin:0;color:#203f53;font-weight:700;overflow-wrap:anywhere}
body .search-context-edit{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #bdcedb;border-radius:9px;padding:10px;background:#fff;color:#254963}
body .search-context-fields{display:grid;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #d0dde5}
body .search-context-fields[hidden]{display:none!important}
body .search-context-fields>.field{margin:0}
body .search-context-fields>[data-search-context-done]{justify-self:end;min-height:44px;font-size:13px}
body :is(#standardPreferencesForm,#searchForm) [data-origin-area]{appearance:auto;-webkit-appearance:menulist}

body .search-context-fields>[data-search-context-level][hidden]{display:none!important}

body .search-context-fields>[data-search-context-broaden][hidden]{display:none!important}
body .search-context-fields>[data-search-context-broaden]{min-height:44px;font-size:13px;justify-self:start;color:#254963;border-color:#a9c1d1}

body .search-context-edit{flex:0 0 auto;width:auto;max-width:130px;height:auto;min-height:44px;padding:9px 12px;font-size:13px;line-height:1.4;font-weight:700;white-space:normal;text-align:center}

body :is(#standardPreferencesForm,#searchForm) .epicenter-boundary-note{margin:0 0 14px;padding:12px;border-left:3px solid #247d9a;border-radius:0 9px 9px 0;background:#edf5fa;color:#385367;font-size:14px;line-height:1.6}
body :is(#standardPreferencesForm,#searchForm) .epicenter-boundary-note strong{font:inherit;font-weight:750;color:#203f53}

/* Explicit switch button retains native keyboard activation without hidden checkbox hit areas. */
body .targeted-search-dark button.search-switch{display:flex;align-items:center;gap:12px;min-height:44px;padding:0;background:transparent;border:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
body .targeted-search-dark button.search-switch[aria-checked=true]>.switch-track{background:#FFD300;border-color:#FFD300}
body .targeted-search-dark button.search-switch[aria-checked=true]>.switch-track::after{transform:translateX(20px);background:#181a0f}
body .targeted-search-dark button.search-switch:focus-visible{outline:2px solid #247d9a;outline-offset:4px;border-radius:8px}


/* The lens landing page summarizes selections; individual choices stay in the editor. */
body .habitual-overview-list>li{display:grid;gap:8px}
body .habitual-overview-list .habitual-use-state{display:inline-flex;justify-self:start;max-width:100%;padding:5px 10px;border:1px solid;border-radius:999px;font-size:12px;line-height:1.5;font-weight:750;text-align:left;flex:none}
body .habitual-overview-list .habitual-use-state.is-active{background:#e4f3e8;border-color:#b8d9c2;color:#29603d}
body .habitual-overview-list .habitual-use-state.is-suspended{background:#fbe9e7;border-color:#ebc7c2;color:#964f48}

/* Broad geography stays readable even inside narrow mobile origin cards. */
body :is(#standardPreferencesForm,#searchForm,#playerRegistrationForm) .search-context-static{grid-column:1/-1;container-type:inline-size;min-width:0;max-width:100%;width:100%;box-sizing:border-box;padding:14px;border:1px solid #9fbfd7;border-radius:11px;background:#eaf4fb;color:#203f53}
body .search-context-static .search-context-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;min-width:0;width:100%}
body .search-context-static .search-context-summary>dl{display:grid;grid-template-columns:minmax(0,1fr);gap:0;width:100%;min-width:0;margin:0}
body .search-context-static .search-context-summary>dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;min-width:0;margin:0;padding:8px 0;align-items:baseline;border-bottom:1px solid #cfdeea;line-height:1.5}
body .search-context-static .search-context-summary>dl>div:first-child{padding-top:0}
body .search-context-static .search-context-summary>dl>div:last-child{border-bottom:0;padding-bottom:0}
body .search-context-static .search-context-summary dt{margin:0;padding:0;min-width:0;color:#536c80;font-size:14px;font-weight:600;white-space:normal;word-break:normal;overflow-wrap:normal}
body .search-context-static .search-context-summary dd{margin:0;padding:0;min-width:0;color:#203f53;font-size:16px;font-weight:750;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:break-word}
body .search-context-static .search-context-edit{justify-self:start;width:auto;max-width:100%;min-height:44px;padding:10px 14px;background:#fff;border:1px solid #93afc4;color:#244f74;font-size:15px;line-height:1.4;white-space:normal}
body .search-context-static .search-context-fields{min-width:0;grid-template-columns:minmax(0,1fr)}
body .search-context-static .search-context-fields .field{min-width:0;width:100%;color:#244f74;font-size:16px;font-weight:650}
body .search-context-static .search-context-fields select{width:100%;max-width:100%;min-width:0;min-height:48px;background:#fff;color:#203f53;border:2px solid #93afc4;border-radius:8px;font-size:16px}
body #playerRegistrationForm .registration-geography-hint{grid-column:1/-1;margin:0;color:#526b80;font-size:14px;line-height:1.6}
@container (max-width:240px){body .search-context-static .search-context-summary>dl>div{grid-template-columns:minmax(0,1fr);gap:2px;padding-block:9px}body .search-context-static .search-context-edit{justify-self:stretch;text-align:center}}
