/* Approved reference geometry. Native controls retain their original form handlers. */
:root{--service-menu-row:32px;--service-menu-min:240px;--service-menu-pad:8px}
.service-dropdown,.article-presets-menu,.wa-column-menu,.task-message-menu,.task-participant-options,.wa-facet-panel,#filter-popup,.task-filter-popup,.cabinet-account-popup{box-sizing:border-box;border:1px solid #DDD!important;border-radius:20px!important;background:#FFF!important;color:#191919;box-shadow:0 4px 12px #19191906,0 16px 36px #1919190D!important;font:13px 'TA Nunito','Segoe UI',sans-serif}
.service-dropdown,.article-presets-menu,.wa-column-menu,.task-message-menu,.task-participant-options,.wa-facet-panel{width:max-content!important;min-width:min(var(--service-menu-min),calc(100vw - 16px));max-width:calc(100vw - 16px);padding:12px!important}
.service-dropdown{position:fixed;inset:auto;margin:0;z-index:10000;overflow:auto;overscroll-behavior:contain}
.service-dropdown::backdrop{background:transparent;pointer-events:none}
.service-menu-list,.article-presets-list,.enum-options,.leader-options,.value-list,.task-participant-options,.wa-facet-options{--service-list-rows:10;max-height:calc(var(--service-menu-row)*var(--service-list-rows))!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;gap:0!important}
.service-dropdown .service-menu-item,.article-presets-menu button:not(.article-preset-delete),.wa-column-menu>button,.task-message-menu>button,#filter-popup .enum-option,#filter-popup .leader-option{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:var(--service-menu-row)!important;height:auto;padding:6px 10px!important;line-height:20px!important;margin:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:inherit;font:13px 'TA Nunito','Segoe UI',sans-serif!important;text-align:left;white-space:normal!important;overflow:visible;overflow-wrap:anywhere!important}
.service-menu-item:hover,.service-menu-item:focus-visible,.service-menu-item[aria-selected=true],.article-presets-menu button:hover,.wa-column-menu>button:hover,.task-message-menu>button:hover,#filter-popup .enum-option:hover,#filter-popup .leader-option:hover{background:#FAFAFA!important}
.service-menu-item:disabled{opacity:.45;cursor:default}
.service-menu-heading{font-size:11px;line-height:18px;color:#686868;padding:4px 10px}
.service-menu-actions{position:sticky;top:-12px;z-index:2;background:#fff;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #EAEAEA}
.service-menu-actions .service-menu-action,.article-presets-menu .service-menu-action{background:transparent!important;color:#191919!important;box-shadow:none;border-radius:10px!important}
.article-presets-menu{overflow:hidden!important;max-height:calc(100dvh - 16px)!important}
.article-presets-menu .article-presets-entry{min-height:var(--service-menu-row);height:auto}
.article-presets-menu .article-presets-entry>button:first-child{width:auto;flex:1}
.article-presets-menu .article-preset-delete{height:var(--service-menu-row);padding:0 8px!important;line-height:var(--service-menu-row);flex:none}
.article-presets-list{width:max-content;min-width:100%;max-width:100%}
.value-list label,.task-participant-options label,.wa-facet-options label{box-sizing:border-box;min-height:30px!important;height:auto;padding:6px 10px!important;margin:0!important;line-height:18px!important;border-radius:8px;white-space:normal}
.value-list label:hover,.task-participant-options label:hover,.wa-facet-options label:hover{background:#FAFAFA}
.value-list label span,.wa-facet-options label span{overflow:visible!important;text-overflow:clip!important}
.value-list,.wa-facet-options{width:max-content;min-width:100%;max-width:100%}
#filter-popup,.task-filter-popup,.cabinet-account-popup{width:max-content!important;min-width:min(var(--service-menu-min),calc(100vw - 16px));max-width:calc(100vw - 16px)!important}
#filter-popup.notification-popup{width:310px!important}
.wa-column-menu,.task-message-menu{max-height:min(calc(var(--service-menu-row)*10 + 12px),calc(100dvh - 16px));overflow:auto}
.service-select-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip-path:inset(50%)!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.service-select-trigger{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;max-width:100%;min-width:0;padding:8px 12px;border:1px solid #DDD;border-radius:12px;background:#FAFAFA;color:inherit;font:inherit;text-align:left;cursor:pointer;vertical-align:middle}
.service-select-trigger::after{content:'';display:block;width:6px;height:6px;border-right:1.5px solid #686868;border-bottom:1.5px solid #686868;transform:rotate(45deg);margin:0 2px 3px 5px;flex:none}
.service-select-trigger[hidden]{display:none!important}
.service-select-trigger:disabled{opacity:.5;cursor:default}
.service-select-trigger:focus-visible{outline:2px solid #292929;outline-offset:1px}
td>.service-select-trigger,label>.service-select-trigger{width:100%}
/* The table's legacy pill has higher specificity; only one control is visible. */
.wrapped-enum:has(>.service-select-trigger)>.enum-label{display:none!important}
.wrapped-enum:has(>.service-select-trigger)::after{display:none!important}
.wrapped-enum>.service-select-trigger{width:100%;height:28px;min-height:0;padding:0 10px;border-color:#e7eaee;border-radius:999px;box-shadow:0 2px 5px #20232912;font-size:11px;line-height:26px}
.wrapped-enum>.service-select-trigger::after{line-height:1}
#grid.article-compact .wrapped-enum>.service-select-trigger,#grid :is(.metadata-line,.article-layout-field).wrapped-enum>.service-select-trigger{height:13px;padding:0 6px;font-size:9px;line-height:11px;gap:3px}
#grid :is(.metadata-line,.article-layout-field).wrapped-enum{position:relative}
.service-select-trigger{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

#filter-popup.service-command-menu{display:block;padding:6px;max-height:min(calc(var(--service-menu-row)*10 + 40px),calc(100dvh - 16px));overflow:auto}
#filter-popup.service-command-menu>strong{display:block;padding:4px 8px;font-size:11px;font-weight:400;color:#686868}
#filter-popup.service-command-menu>button{display:block;width:100%;text-align:left;min-height:var(--service-menu-row);padding:6px 10px;border:0;border-radius:10px;background:transparent;font:13px 'TA Nunito','Segoe UI',sans-serif;white-space:nowrap}
#filter-popup.service-command-menu>button:hover{background:#FAFAFA}
#filter-popup.service-command-menu>.service-menu-action{position:sticky;top:0;background:#FFF;box-shadow:none;border-radius:10px}
#filter-popup .leader-option span,#filter-popup .leader-option small{display:inline;font:inherit}
#filter-popup .leader-option small{color:#686868}
#filter-popup .leader-option small::before{content:' · '}
.leader-options{width:max-content;min-width:100%;max-width:100%}
.wa-column-menu>.wa-data-command{position:sticky;top:-12px;z-index:2;background:#FFF!important;color:#191919;box-shadow:none;border-radius:10px!important}
.article-presets-menu .service-menu-actions>button.service-menu-action{background:transparent!important;color:#191919!important}
/* One reference presentation across articles, advertising, tasks and sheets. */
.standard-column-filter.standard-column-filter{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;width:360px!important;min-width:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:12px!important;border:1px solid #DDD!important;border-radius:20px!important;background:#FFF!important;color:#191919;box-shadow:0 4px 12px #19191906,0 16px 36px #1919190D!important;font:13px/1.4 'TA Nunito','Segoe UI',sans-serif;overflow:auto;overscroll-behavior:contain}
.standard-column-filter.standard-column-filter[hidden],.standard-column-filter [hidden]{display:none!important}
.column-filter-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:4px 4px 12px;flex:none}
.standard-column-filter .column-filter-title{font-size:16px;line-height:1.3;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.standard-column-filter.standard-column-filter :is(input:not([type=checkbox]),select,.service-select-trigger){box-sizing:border-box;width:100%;height:auto;min-height:36px;margin:0;padding:8px 12px;border:1px solid #DDD;border-radius:12px;background:#FAFAFA;color:#191919;font:13px/18px 'TA Nunito','Segoe UI',sans-serif}
.standard-column-filter.standard-column-filter .service-select-source{width:1px;height:1px;min-height:0;padding:0}
.column-filter-operands{display:flex;gap:8px}
.column-filter-operands>input{min-width:0;flex:1}
.standard-column-filter .column-filter-sorting{display:flex;gap:8px;flex-shrink:0;margin:4px 0}
.standard-column-filter .column-filter-sorting button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;min-height:32px;padding:0 8px;border:1px solid #DDD;border-radius:999px;background:linear-gradient(#FFF,#FAFAFA);box-shadow:inset 0 1px 0 #FFF,0 1px 3px #19191908;color:#191919;font:500 11px/18px 'TA Nunito','Segoe UI',sans-serif;text-align:center;text-decoration:none}
.column-filter-sorting button::before{display:none}
.standard-column-filter .column-filter-sorting button.active{background:#F0F0F0;color:#191919;font-weight:600;text-decoration:none}
.column-filter-sorting svg,.column-filter-search svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.column-filter-search{display:flex;align-items:center;gap:8px;padding:0 12px;min-height:36px;background:#FAFAFA;border:1px solid #DDD;border-radius:12px;color:#686868}
.standard-column-filter.standard-column-filter .column-filter-search input{border:0!important;padding:8px 0!important;background:transparent!important;min-width:0;flex:1;box-shadow:none!important}
.column-filter-search:focus-within{outline:2px solid #292929;outline-offset:1px}
.standard-column-filter.standard-column-filter .column-filter-search input:focus-visible{outline:none!important}
.column-filter-selection{display:flex;gap:8px;flex-shrink:0;margin:2px 0}
.standard-column-filter .column-filter-selection button{flex:1;min-height:32px;padding:0 14px;border:1px solid #DDD;border-radius:999px;background:#F6F6F6;color:#191919;font:500 12px 'TA Nunito','Segoe UI',sans-serif;box-shadow:none}
.standard-column-filter .column-filter-values{display:block;min-height:26px;max-height:240px;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#B8B8B8 #FAFAFA;margin-top:0}
.standard-column-filter .column-filter-values label{display:flex;align-items:center;gap:10px;min-height:30px;margin:0;padding:6px 10px;cursor:pointer;font:inherit;white-space:normal;border-radius:8px;background:transparent}
.standard-column-filter .column-filter-values input[type=checkbox]{appearance:auto;accent-color:#292929;width:16px;height:16px;min-width:16px;padding:0;margin:0;flex:none}
.column-filter-values label span{flex:1;min-width:0;overflow-wrap:anywhere}
.column-filter-values label small{color:#686868;font-size:11px;flex:none;min-width:24px;text-align:right}
.standard-column-filter .column-filter-footer{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0;margin:8px -12px -12px;padding:12px;border-top:1px solid #EAEAEA;background:#FAFAFA}
.standard-column-filter .column-filter-footer button{min-height:32px;padding:0 14px;border:1px solid #DDD;border-radius:999px;background:linear-gradient(#FFF,#FAFAFA);color:#191919;font:500 12px 'TA Nunito','Segoe UI',sans-serif;box-shadow:inset 0 1px 0 #FFF,0 1px 3px #19191908}
.standard-column-filter .column-filter-footer .primary{background:linear-gradient(#292929,#191919);color:#FFF;border-color:#191919;box-shadow:inset 0 1px 0 #FFFFFF12,0 2px 4px #19191910}
.column-filter-error{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:18px;color:#292929;margin:4px 0 0;padding:12px;background:#F0F0F0;border-radius:12px}
.column-filter-error:empty{display:none}
.column-filter-error:not(:empty)::before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid #686868;border-radius:50%;flex:none;font-weight:600}
.service-dropdown.service-native-menu .service-menu-item[aria-selected=true],#filter-popup.enum-popup .enum-option[aria-selected=true]{background:#F0F0F0!important;box-shadow:none!important;font-weight:500!important}
.service-menu-item:focus-visible,#filter-popup :is(.enum-option,.leader-option):focus-visible{outline:2px solid #292929!important;outline-offset:-2px;background:#FAFAFA!important}
.service-dropdown .service-menu-item>.regent-cabinet-label{flex:1;min-width:0}
.service-dropdown.service-native-menu .service-menu-item[aria-selected=true]::after,#filter-popup.enum-popup .enum-option[aria-selected=true]::after{content:'✓';margin-left:auto;color:#191919;flex:none}
body :is(#filter-popup,.task-filter-popup,.wa-grid-filter).standard-column-filter.standard-column-filter.standard-column-filter .service-select-trigger{position:relative!important;border:1px solid #DDD!important;border-radius:12px!important;background:#FAFAFA!important;padding:8px 12px!important;gap:12px!important}
body :is(#filter-popup,.task-filter-popup,.wa-grid-filter).standard-column-filter.standard-column-filter.standard-column-filter .service-select-trigger::before{display:none!important}

/* Metric picker: up to twenty rows, with only the list shrinking to viewport space. */
.service-dropdown.service-metric-menu{display:flex;flex-direction:column;overflow:hidden}
.service-metric-menu>.service-menu-search,.service-metric-menu>.service-menu-actions{flex-shrink:0}
.service-metric-menu>.service-menu-list{flex:0 1 auto}
