@media screen {
  .np-history-row .np-history-delete { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; min-width:44px; min-height:44px; padding:8px 10px; border:1px solid var(--np-border); border-radius:8px; font:inherit; font-size:.875rem; color:var(--np-secondary); background:var(--np-paper); cursor:pointer; }
  .np-history-delete svg { width:18px; height:18px; flex:none; }
  .np-history-row .np-history-delete:hover { color:var(--danger); border-color:var(--danger); background:var(--danger-bg); }
  .np-history-row .np-history-delete:focus-visible { outline:2px solid var(--np-accent-strong); outline-offset:3px; }
  .np-recent .np-history-delete span { display:none; }
  .np-history-row .np-open-button { min-width:36px; min-height:44px; flex-shrink:0; }
  .np-history-recovery { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:12px 16px; background:var(--np-soft); border-bottom:1px solid var(--np-border); color:var(--np-secondary); }
  .np-history-recovery p { flex:1 1 160px; min-width:0; margin:0; font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
  .np-history-recovery button { min-height:44px; padding:8px 11px; font:inherit; font-size:.875rem; font-weight:600; background:var(--np-paper); color:var(--np-accent-strong); border:1px solid var(--np-border); border-radius:8px; cursor:pointer; }
  .np-history-recovery button:hover { background:var(--teal-soft); }
  @media(max-width:600px) {
    .np-history-row { display:grid; grid-template-columns:32px minmax(0,1fr) 44px auto; gap:8px; }
    .np-history-row .np-history-symbol { grid-column:1; grid-row:1; }
    .np-history-row .np-history-main { grid-column:2/-1; grid-row:1; }
    .np-history-row .np-reuse { grid-column:2; grid-row:2; justify-self:start; min-height:44px; }
    .np-history-row .np-open-button { grid-column:3; grid-row:2; }
    .np-history-row .np-history-delete { grid-column:4; grid-row:2; }
    .np-recent .np-history-row { grid-template-columns:minmax(0,1fr) 44px 44px; }
    .np-recent .np-history-symbol { display:none; }
    .np-recent .np-history-main { grid-column:1; grid-row:1; }
    .np-recent .np-open-button { grid-column:2; grid-row:1; }
    .np-recent .np-history-delete { grid-column:3; grid-row:1; }
  }
}
@media print { .np-history-delete,.np-history-recovery { display:none!important; } }
