/* History modal */
.hist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hist-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    width: min(720px, calc(100% - 32px));
    max-height: 80vh;
    overflow: auto;
    padding: 16px;
  }
  .hist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9f1ec;
  }
  .hist-title { font-size: 20px; font-weight: 700; color: #245d44; }
  .hist-close { border: none; background: transparent; font-size: 24px; cursor: pointer; }