/* History archive — scoped controls, aligned columns and phone-safe scores. */
body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;padding:12px 14px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v5-search{
 flex:1 1 250px;min-width:180px;max-width:340px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v56-dc-picker{
 flex:0 1 258px;min-width:180px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field{
 display:flex;align-items:center;gap:8px;height:42px;padding:0 10px;
 background:rgba(26,49,82,.65);border:1px solid rgba(157,201,249,.28);
 border-radius:10px;box-sizing:border-box;min-width:145px;color:#a9c5e5;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field>span,
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-controls>span{
 font-size:11px;font-weight:750;letter-spacing:.025em;color:#aec9e6;white-space:nowrap;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select{
 color:#edf6ff;background:transparent;border:0;min-width:83px;width:100%;font:inherit;font-size:12px;
 outline-offset:4px;cursor:pointer;min-height:38px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select option{
 color:#f2f7ff;background:#132946;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-controls{
 display:flex;align-items:center;gap:9px;min-height:42px;box-sizing:border-box;
 border:0;background:transparent;padding:0;position:relative;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-controls>span{
 font-size:11px;font-weight:750;color:#aec9e6;white-space:nowrap;margin:0;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown{
 position:relative;min-width:172px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary{
 box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:42px;
 padding:5px 10px;border-radius:10px;border:1px solid rgba(157,201,249,.28);
 background:rgba(26,49,82,.65);color:#eff7ff;font-size:12px;font-weight:700;
 list-style:none;cursor:pointer;user-select:none;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary::-webkit-details-marker{display:none}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary::marker{content:""}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary img{
 width:44px;height:25px;object-fit:contain;image-rendering:pixelated;flex:0 0 44px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary>span:nth-child(2){white-space:nowrap}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-caret{
 width:7px;height:7px;border-right:1.5px solid #b5cfee;border-bottom:1.5px solid #b5cfee;
 transform:translateY(-2px) rotate(45deg);margin-left:auto;flex:0 0 7px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown[open] .v5-history-date-caret{
 transform:translateY(2px) rotate(225deg);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary:hover,
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown[open]>summary{
 background:rgba(52,84,130,.75);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary:focus-visible{
 outline:2px solid #b7deff;outline-offset:2px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu{
 position:absolute;top:calc(100% + 6px);right:0;min-width:190px;max-width:calc(100vw - 30px);
 z-index:110;display:grid;gap:3px;padding:6px;background:#112a49;
 border:1px solid rgba(173,208,250,.38);border-radius:11px;
 box-shadow:0 13px 30px rgba(0,9,27,.48);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu button{
 display:flex;align-items:center;gap:12px;width:100%!important;min-height:43px;height:auto;
 padding:5px 10px;cursor:pointer;color:#f2f7ff;border:1px solid transparent;
 border-radius:8px;background:transparent;font:inherit;font-size:12px;font-weight:700;text-align:left;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu button img{
 flex:0 0 44px;width:44px;height:26px;object-fit:contain;image-rendering:pixelated;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu button.selected{
 background:rgba(90,145,208,.25);border-color:rgba(164,199,247,.32);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu button:hover{
 background:rgba(105,162,228,.3);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-menu button:focus-visible{
 outline:2px solid #b7deff;outline-offset:-2px;
}
/* A single rounded Liquid Glass outline for the Year dropdown. The Year
   caption sits outside the border, the same as Date; remove the browser's
   square native select chrome rather than hiding every border. */
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field{
 position:relative;
 background:transparent!important;border:0!important;box-shadow:none!important;
 padding:0!important;gap:8px;min-width:0!important;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select{
 -webkit-appearance:none!important;appearance:none!important;
 box-sizing:border-box!important;flex:1 1 116px;min-width:98px!important;
 width:118px!important;max-width:140px!important;height:42px!important;min-height:42px!important;
 padding:0 31px 0 12px!important;
 color:#edf6ff!important;font-size:12px;font-weight:700;
 border:1px solid rgba(157,201,249,.28)!important;border-radius:10px!important;
 background:rgba(26,49,82,.65)!important;
 box-shadow:inset 0 1px rgba(245,252,255,.08)!important;
 outline:none!important;cursor:pointer;transition:background .17s ease,border-color .17s ease;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field::after{
 content:"";position:absolute;right:14px;top:50%;pointer-events:none;
 width:7px;height:7px;border-right:1.5px solid #b5cfee;border-bottom:1.5px solid #b5cfee;
 transform:translateY(-65%) rotate(45deg);
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select:hover{
 background:rgba(52,84,130,.75)!important;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select:focus-visible{
 background:rgba(52,84,130,.75)!important;
 outline:2px solid #b7deff!important;outline-offset:2px!important;
}
@media(max-width:370px){
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select{
  width:105px!important;min-width:92px!important;padding-right:27px!important;
 }
}
body[data-theme="glass"][data-current-view="history"] #content .v5-main-panel{overflow:visible!important}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar{position:relative;z-index:3}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.tag{margin-left:auto;white-space:nowrap}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-identity>div>span{
 display:block;margin-top:5px;font-size:12px;color:#a9bfd9;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-grids{gap:14px}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-col{min-width:0}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-audience-heading{
 display:flex;align-items:center;gap:9px;padding:0 12px;margin-bottom:10px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-audience-label{
 font-size:14px;font-weight:800;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns,
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow{
 grid-template-columns:40px minmax(0,1fr) minmax(88px,auto) 122px!important;
 column-gap:9px!important;align-items:center;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns{
 display:grid;padding:4px 12px 7px;color:#9fbadb;
 font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns>span:nth-child(n+3){text-align:right}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow{
 padding:6px 12px!important;min-width:0;box-sizing:border-box;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>span:first-child{display:flex;justify-content:center}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>button{
 min-width:0;text-align:left;overflow-wrap:anywhere;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>b{
 min-width:0;text-align:right;font-variant-numeric:tabular-nums;font-size:13px;
}
body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>.v5-rewards{
 min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:3px;
}
@media(max-width:1000px){
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v5-search{max-width:none}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v56-dc-picker{flex:1 1 210px}
}
@media(max-width:760px){
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar{
  display:flex!important;gap:8px!important;padding:10px!important;align-items:stretch!important;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v5-search{
  flex:1 1 100%!important;max-width:100%!important;min-width:0!important;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.v56-dc-picker{
  flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field{
  order:2!important;flex:1 1 126px;min-width:0;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-controls{
  order:2!important;flex:0 0 auto;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-toolbar>.tag{
  order:3!important;margin-left:0;padding:7px 9px;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-grids{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-card-head{padding:13px!important}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-identity{min-width:0;gap:10px!important}
}
@media(max-width:600px){
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns,
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow{
  grid-template-columns:34px minmax(0,1fr) minmax(74px,max-content)!important;
  column-gap:8px!important;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns>span:last-child{display:none}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow{
  row-gap:1px!important;padding:7px 9px!important;min-height:60px;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-columns{padding:5px 9px 6px}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>.v5-rewards{
  grid-column:2 / -1;grid-row:2;justify-content:flex-start;min-height:20px;flex-wrap:wrap;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-minirow>.v5-rewards img{
  height:20px;width:20px;
 }
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-audience-heading{padding:0 9px}
}
@media(max-width:370px){
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown{min-width:165px}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-date-dropdown>summary{padding-inline:7px;gap:5px}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field{padding:0 7px;gap:5px}
 body[data-theme="glass"][data-current-view="history"] #content .v5-history-year-field select{font-size:11px;min-width:70px}
}
