#history-dialog{width:min(960px,calc(100% - 20px));max-height:90dvh;overflow:auto;padding:18px;box-sizing:border-box;background:var(--panel,#101e30);color:var(--text,#edf4ff);border:1px solid #526c88;border-radius:18px}#history-dialog::backdrop{background:#000b}#history-dialog button,#history-dialog select{min-height:44px;font-size:1rem;padding:8px 12px;border-radius:9px}#history-dialog .hp-controls{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0;align-items:end}#history-dialog label{display:grid;gap:5px;flex:1;min-width:115px}#hp-map{height:clamp(240px,40dvh,460px);background:#172b40;border:1px solid #526c88;border-radius:12px;isolation:isolate}#hp-slider{width:100%;accent-color:#ffd34d;min-height:36px}#hp-bars{display:flex;gap:3px;height:64px;margin:8px 0}#history-dialog #hp-bars button{flex:1;min-width:0;height:64px;padding:2px;display:flex;align-items:end;background:transparent;border:1px solid #526c8870;border-radius:3px}#hp-bars span{background:#65b7ff;width:100%;display:block;border-radius:2px}#history-dialog #hp-bars button[aria-pressed=true]{border-color:#ffd34d}#hp-bars button[aria-pressed=true] span{background:#ffd34d}#history-dialog .hp-note{font-size:.94rem;line-height:1.5;opacity:.9}#hp-count{font-size:1.35rem;font-weight:700}#hp-list{padding-left:22px;line-height:1.5}#hp-list li{margin:8px 0}#history-dialog button[aria-pressed=true]:not(#hp-bars button){background:#ffd34d;color:#132033}@media(max-width:480px){#history-dialog{padding:12px}#history-dialog #hp-bars{gap:1px}#history-dialog #hp-bars button{padding:0}}
