.hfilters{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.hfilters label{display:flex;flex-direction:column;font-size:14px;font-weight:600;gap:4px}
.hfilters label.chk{flex-direction:row;align-items:center;gap:6px;font-weight:500}
.hfilters input[type=search],.hfilters select{font:inherit;font-size:15px;padding:6px 8px;border:1px solid #b9c3d3;border-radius:6px;min-height:38px;background:#fff}
.types{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex-basis:100%}
.tchip{font:inherit;font-size:14px;border:2px solid var(--c);background:#fff;color:#111418;border-radius:999px;padding:4px 12px;cursor:pointer;min-height:34px}
.tchip[aria-pressed=true]{background:var(--c);color:#fff}
.htl{position:relative;border:1px solid var(--line);border-radius:8px;background:#fbfcfe;overflow:hidden}
.htl svg{display:block;width:100%;height:auto;touch-action:none;cursor:grab}
.htl .axis text{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;fill:#4a5260}
.htl .ev{cursor:pointer}
.htl .ev:focus-visible{outline:none;stroke:#4D7BFF;stroke-width:3}
.ctry{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.ctry li{border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:14px}
.ctry b{color:var(--blue);font-size:18px;margin-right:6px}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.htable{border-collapse:collapse;width:100%;font-size:14px;min-width:980px}
.htable th,.htable td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.htable thead th{background:var(--soft);position:sticky;top:0}
.htable thead button{font:inherit;font-weight:700;background:none;border:0;color:var(--blue);cursor:pointer;padding:0}
.htable tr.glass td:first-child{box-shadow:inset 4px 0 0 #002FA7}
.htable .rowbtn{font:inherit;font-weight:600;background:none;border:0;padding:0;color:var(--ink);text-align:left;cursor:pointer}
.htable .rowbtn:hover{color:var(--blue);text-decoration:underline}
.tag{display:inline-block;font-size:11px;font-weight:700;border-radius:3px;padding:1px 5px;margin:2px 4px 0 0;border:1px solid currentColor}
.tag.g{color:#002FA7}.tag.l{color:#4D7BFF}
.b-CONFIRMED{color:#fff;background:#002FA7}.b-REPORTED{color:#5a3b00;background:#ffe9b3}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:2px 6px;border-radius:3px;letter-spacing:.03em}

/* Unified History: List / Map / Globe */
.histpage{padding-bottom:0}
.histwrap{position:relative}
.hist-list .histwrap{max-width:var(--max,1120px);margin:0 auto;padding:24px 20px 120px}
.hchrome{margin-bottom:24px}
.hhead{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px}
.hhead h1{flex:1 1 280px;margin:0;font-size:clamp(22px,3vw,34px)}
.hhead .mlabel{flex:1 0 100%;margin:0}
.hviews{margin-left:auto}
.hist-list .hlede{max-width:720px}
.htable tr.is-on td{background:color-mix(in srgb,var(--accent2) 12%,transparent)}
.htl .ev.on circle:last-child{stroke:#002FA7;stroke-width:2}
.hist-list #ctime{position:relative;left:auto;right:auto;bottom:auto;transform:none;z-index:6;margin:18px auto 0;width:min(620px,100%);display:flex;align-items:center;gap:12px;padding:8px 10px 8px 8px;border-radius:999px}
.hist-list #stageview{display:none}
.hist-stage #listview,
.hist-stage .hchrome .lede,
.hist-stage .hchrome .stamp,
.hist-stage .hchrome .answer{display:none}
.hist-stage .histwrap{height:calc(100svh - var(--appbar-h) - var(--foot-h) - var(--tab-h) - var(--sa-t));min-height:480px;overflow:hidden;padding:0;max-width:none}
.hist-stage #stageview{display:block;position:absolute;inset:0;height:auto;min-height:0}
.hist-stage .hchrome{position:absolute;z-index:6;top:14px;left:50%;transform:translateX(-50%);margin:0;display:flex;align-items:center;gap:10px;pointer-events:none}
.hist-stage .hchrome .hhead{align-items:center}
.hist-stage .hchrome .hhead h1,
.hist-stage .hchrome .hhead .mlabel{display:none}
.hist-stage .hviews{pointer-events:auto;margin:0;background:var(--tray);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:var(--tray-shadow)}
.hist-stage .hfilters{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hist-stage .sheetbtn{position:absolute;z-index:6;top:14px;right:14px;pointer-events:auto}
.hist-stage #ctime{position:fixed;z-index:28;left:50%;bottom:calc(var(--foot-h) + var(--tab-h) + 14px);transform:translateX(-50%);width:min(620px,calc(100% - 660px));min-width:420px;margin:0;pointer-events:auto}
@media (max-width:1100px){
  .hist-stage #ctime{left:16px;right:16px;transform:none;width:auto;min-width:0}
}
@media (max-width:820px){
  .hist-list .histwrap{padding:16px 16px 140px}
  .hhead h1{font-size:22px}
  .hviews button{min-height:44px;padding:0 14px}
  .hist-list #ctime{position:fixed;left:10px;right:10px;width:auto;border-radius:18px;bottom:calc(var(--tab-h) + var(--foot-h) + 8px);z-index:28;margin:0}
  .hist-list .hchrome{padding-bottom:76px}
  .hist-stage .hchrome{top:10px;left:10px;right:10px;transform:none;justify-content:center}
  .hist-stage .sheetbtn{top:62px;right:10px}
  .hist-stage #ctime{left:0;right:0;bottom:calc(var(--tab-h));transform:none;width:auto;min-width:0;border-radius:0;border-left:0;border-right:0;border-bottom:0}
}
