/* Floating controls and table interactions share KeyRadar's private workspace theme. */
.kr-select{display:inline-flex;position:relative;min-width:0;width:100%;vertical-align:middle}
.kr-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.kr-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:42px;border:1px solid #dce3d8;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);font-size:13px;text-align:left;transition:border-color .15s,background .15s}
.kr-select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.kr-select-trigger:hover,.kr-select-trigger[aria-expanded=true]{border-color:#91aa80;background:#f7faf3}
.kr-select-trigger[aria-expanded=true]{box-shadow:0 0 0 3px #c6ee9430}
.kr-select-chevron{font-size:20px;line-height:14px;color:#6a8264;flex-shrink:0;transform:translateY(-2px)}
.kr-select-trigger[aria-expanded=true] .kr-select-chevron{transform:rotate(180deg) translateY(-2px)}
.kr-select-options{position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #dce5d7;border-radius:12px;background:#fff;box-shadow:0 12px 40px #18392a24,0 2px 7px #18392a0b;color:var(--ink);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;font-family:inherit;font-size:13px}
.kr-select-options:popover-open{display:block;animation:control-in .12s ease-out}
.kr-select-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;min-height:41px;width:100%;border-radius:7px;text-align:left;font:inherit;background:transparent;color:var(--ink);white-space:normal}
.kr-select-option>span:last-child{font-size:15px;color:#426a35}
.kr-select-option:hover,.kr-select-option:focus-visible{outline:0;background:#edf4e6;color:#254932}
.kr-select-option[aria-selected=true]{background:#e5f1d9;font-weight:650}
.kr-select-option:disabled{color:#9ba296;background:#fff;opacity:.65;cursor:not-allowed}
.filter>.kr-select{width:auto;flex:1}
.filter .kr-select-trigger{border:0;box-shadow:none;background:transparent;padding:5px 0;min-height:36px;font-size:12px;gap:16px}
.primary-filters{align-items:center}
.advanced-filters{flex:0 0 auto;min-width:0;position:relative}
.advanced-filters>summary{min-height:40px}
.advanced-filters[open]>summary{background:#eaf2e2;border-color:#a9bb99;color:#345a3b}
.advanced-filter-fields{position:fixed;inset:auto;margin:0;border:1px solid #d8e2d1;border-radius:14px;box-shadow:0 16px 55px #15372726;padding:20px;overflow:auto;overscroll-behavior:contain;background:#fff;color:var(--ink);font-family:inherit}
.advanced-filter-fields:popover-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;animation:control-in .12s ease-out}
.advanced-filter-fields>label{gap:8px;font-size:12px;font-weight:550;color:#667762}
.advanced-filter-fields p{font-size:11px;line-height:1.7;border-top:1px solid #e8ecdf;padding-top:13px;margin:0}
.advanced-filter-fields .exclusion-control{grid-column:1/-1;min-height:38px;font-size:12px;justify-self:start}
.analysis-form-settings{gap:16px}
.analysis-form-settings>label{min-width:0}
.analysis-form-settings .kr-select-trigger{background:#fafcf6;min-height:44px}
.analysis-candidates{grid-column:1/-1;margin-top:0!important;max-width:100%}
.analysis-candidates small{font-weight:400;font-size:11px;color:var(--muted);line-height:1.6}
.analysis-form-hint{font-size:12px!important;line-height:1.7;margin:14px 0 0!important}
.dialog-error:not(:empty){padding:11px 13px;margin-top:14px;border-radius:8px;background:#fff2ea;color:#9b4d36;border:1px solid #f0d8c7;font-size:12px;line-height:1.6}
.keys-dialog{max-height:calc(100dvh - 32px)}
.table-sort-button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:0;min-height:25px;text-align:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;white-space:inherit;max-width:100%}
.table-sort-button:hover,.table-sort-button.is-sorted{color:#345e3c}
.sort-arrow{font-size:13px;line-height:1;color:#a0ad96;flex-shrink:0;letter-spacing:0;text-transform:none}
.sort-arrow.desc,.sort-arrow.asc{color:#4a743e;font-weight:700}
.sort-arrow.asc{transform:rotate(180deg)}
.table-sort-mobile{display:none}
.channel-table .channel-avatar,.channel-card .channel-avatar{display:grid;place-items:center;position:relative;overflow:hidden;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#e9efdf;color:#537044;font-size:11px;font-weight:650;border:1px solid #dde7d2}
.channel-card .channel-avatar{width:44px;height:44px;flex-basis:44px;font-size:13px}
.channel-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.channel-avatar.has-photo .avatar-fallback{visibility:hidden}
.channel-table .channel-row-name{max-width:260px;gap:10px}
@keyframes control-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:781px) and (max-width:1100px){.advanced-filters{flex-basis:auto}.advanced-filter-fields:popover-open{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){
 .filter>.kr-select{width:100%}.filter .kr-select-trigger{font-size:12px;gap:5px}.kr-select-trigger{min-height:44px;font-size:14px}
 .advanced-filters{grid-column:auto;justify-self:start}.primary-filters{display:flex;flex-wrap:wrap}.primary-filters>.filter{width:calc(50% - 4px);min-width:0;flex:1 1 calc(50% - 4px)}
 .advanced-filter-fields{padding:17px}.advanced-filter-fields:popover-open{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .table-sort-mobile{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:12px 15px;border-bottom:1px solid var(--line);font-size:10px;background:#fbfcf8}
 .table-sort-mobile>span{font-size:10px;color:#8a9581;margin-right:3px}.table-sort-mobile button{min-height:34px;padding:7px 9px;border:1px solid #e1e7d9;border-radius:7px;color:#6c7f60;background:#fff;font-size:11px}
 .table-sort-mobile button[aria-pressed=true]{background:#e5f1d9;border-color:#bed5a7;color:#345a37}
 .channel-toolbar+.table-sort-mobile,.gallery-search~.table-sort-mobile{margin:0 0 15px;border:1px solid var(--line);border-radius:9px}
 .channel-table .channel-avatar{width:36px;height:36px;flex-basis:36px;display:grid}.channel-table .channel-row-name{max-width:none}
 .analysis-form-settings{grid-template-columns:1fr 1fr}.analysis-candidates{grid-column:1/-1}.analysis-form-settings .kr-select-trigger{font-size:13px}
}
@media(max-width:420px){.analysis-form-settings{grid-template-columns:1fr}.advanced-filter-fields:popover-open{grid-template-columns:1fr}.advanced-filter-fields p,.advanced-filter-fields .exclusion-control{grid-column:1}.table-sort-mobile{gap:4px;padding:10px}.table-sort-mobile button{font-size:10px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.kr-select-options:popover-open,.advanced-filter-fields:popover-open{animation:none}.kr-select-trigger{transition:none}}

/* Separate, read-only administration. No foreign workspace is sent to the save API. */
.admin-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:24px;background:#edf4e5;border:1px solid #d3dfc6;border-radius:14px}
.admin-banner div{min-width:0;display:grid;gap:5px}.admin-banner strong{overflow-wrap:anywhere}.admin-banner span,.admin-explanation{font-size:14px;color:#627260;line-height:1.5}.admin-banner button{flex-shrink:0}
.admin-empty{padding:24px}.admin-accounts h2{overflow-wrap:anywhere}.admin-accounts .button{align-self:flex-start}.admin-explanation{margin:0 0 22px}
.admin-preview [data-action="new-analysis"],.admin-preview [data-action="edit-analysis"],.admin-preview [data-action="keys"],.admin-preview [data-action="delete-analysis"],.admin-preview [data-action="restore-analysis"],.admin-preview [data-action="import-browser"],.admin-preview [data-action="import"],.admin-preview [data-action="capture"],.admin-preview [data-action="save"],.admin-preview [data-action="reset-demo"],.admin-preview [data-action="exclusions"],.admin-preview [data-action="exclude-channel"]{display:none!important}
@media(max-width:600px){.admin-banner{align-items:stretch;flex-direction:column;padding:16px}.admin-banner button{align-self:flex-start}}

.admin-accounts .analysis-card{min-height:0}.admin-accounts .key-pill{align-self:flex-start}
