/* Session History filter follows the Activity Logs sheet. */
.history-filter-panel{max-height:min(85dvh,760px)!important;background:#f8f8f9!important}
.history-filter-panel-head{padding:15px 16px 13px!important;align-items:start!important}
.history-filter-panel-head small{font-size:10px!important;letter-spacing:.16em!important}
.history-filter-panel-head h3{margin:5px 0 0!important;font-size:25px!important;line-height:1.1!important}
.history-filter-panel-head p{margin:5px 0 0;color:#999ba1;font-size:12px}
.history-filter-close{width:42px!important;height:42px!important;border:1px solid #e5e6e9!important;border-radius:12px!important;background:#fff!important;font-size:22px!important}
.history-filter-panel-body{padding:0 15px 17px!important}
.history-find-group{margin:10px 0 0;padding:13px;border:1px solid #e5e6e9;border-radius:16px;background:#fff}
.history-find-group h4{display:flex;align-items:center;gap:9px;margin:0 0 11px;color:#35363b;font-size:13px;font-weight:850}
.history-find-group h4 i{display:grid;width:29px;height:29px;flex:none;place-items:center;border-radius:9px;background:#f5eddb;color:#aa7f1d;font-size:12px}
.history-find-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.history-find-chips button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:43px;padding:5px 9px;border:1px solid #e5e6e9;border-radius:11px;background:#fff;color:#777980;font:inherit;font-size:12px;font-weight:800;line-height:1.2}
.history-find-chips button i{display:none;font-size:10px}
.history-find-chips button.active{border-color:#17181c;background:#17181c;color:#fff}
.history-find-chips button.active i{display:inline-block}
.history-find-resource-chips button:first-child{grid-column:1/-1}
.history-find-chips button:focus-visible,.history-find-resource select:focus-visible{outline:2px solid #b38b37;outline-offset:2px}
.history-find-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.history-find-resource{position:relative;display:block}
.history-find-resource select{display:block;width:100%!important;max-width:none!important;min-height:48px!important;padding:0 35px 0 14px!important;border:1px solid #e4e5e8!important;border-radius:12px!important;background:#f8f8f9!important;color:#3f4146!important;font-size:16px!important;font-weight:650!important;text-align:left!important;appearance:none;box-shadow:none!important}
.history-find-resource::after{content:'⌄';position:absolute;right:15px;top:10px;color:#8e9096;font-size:22px;pointer-events:none}
.history-filter-panel-actions{gap:9px!important;padding:12px 15px calc(12px + env(safe-area-inset-bottom))!important;background:#fff!important}
.history-filter-panel-actions .history-filter-reset{flex:0 0 35%!important;min-height:47px!important;padding:0 8px!important;border:1px solid #e4e5e8!important;border-radius:12px!important;background:#fff!important;color:#6e7076!important;font-size:12px!important}
.history-filter-panel-actions .history-filter-apply{min-height:47px!important;font-size:12px!important}
@media(max-width:390px){.history-filter-panel{max-height:86dvh!important}.history-find-chips button{font-size:11px}}

/* Compact optional refinements: expand a row only when needed. */
.history-find-expand{padding:0 13px}
.history-find-expand summary{display:flex;align-items:center;gap:10px;min-height:60px;list-style:none;cursor:pointer}
.history-find-expand summary::-webkit-details-marker{display:none}
.history-find-expand summary>span:first-child{display:flex;align-items:center;gap:9px;min-width:0;flex:1;color:#35363b;font-size:13px;font-weight:850}
.history-find-expand summary>span:first-child i{display:grid;width:29px;height:29px;flex:none;place-items:center;border-radius:9px;background:#f5eddb;color:#aa7f1d;font-size:12px}
.history-find-selection{max-width:43%;overflow:hidden;color:#909198;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.history-find-selection.has-selection{color:#967122}
.history-find-chevron{flex:none;color:#909198;font-size:10px;transition:transform .16s}
.history-find-expand[open] .history-find-chevron{transform:rotate(180deg)}
.history-find-expand>.history-find-chips,.history-find-expand>.history-find-resource{margin:0 0 13px}
.history-find-expand summary:focus-visible{outline:2px solid #b38b37;outline-offset:2px;border-radius:10px}
.history-find-resource select{text-align:center!important;text-align-last:center!important;padding-left:35px!important}
