.file-history-toolbar { flex-wrap: wrap; }
.file-history-note { font-size: 13px; color: #86868b; line-height: 1.8; margin: -4px 0 20px; }
.file-history-error { font-size: 14px; color: #b54818; line-height: 1.8; padding: 12px 16px; margin-bottom: 16px; background: #fff8ed; border-radius: 12px; }
.history-result-heading { min-width: 0; }
.history-record-identity { min-width: 0; }
.history-record-actions { flex-shrink: 0; }
.history-result-name { font-size: 12px; color: #86868b; margin-top: 4px; overflow-wrap: anywhere; }
.file-history-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.file-history-clear { padding: 8px 12px; border: 1px solid #d9dfe7; border-radius: 8px; background: #fff; color: #6e6e73; font-size: 13px; cursor: pointer; }
.file-history-clear:disabled { opacity: .5; cursor: not-allowed; }
.file-history-clear:focus-visible { outline: 3px solid #007aff; outline-offset: 3px; }
.local-history-retry { color: #007aff; margin-left: 12px; text-decoration: underline; }
.local-history-confirm {
  box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 28px; border: 1px solid #e8e8ed; border-radius: 24px;
  background: #fff; color: #1d1d1f; box-shadow: 0 24px 80px #172a462b;
}
.local-history-confirm::backdrop { background: #14294266; backdrop-filter: blur(4px); }
.local-history-confirm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.local-history-clear-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff1f0; color: #d7352b; }
.local-history-clear-icon svg { width: 24px; height: 24px; }
.local-history-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f5f5f7; color: #6e6e73; cursor: pointer; }
.local-history-close svg { width: 20px; height: 20px; }
.local-history-close:hover { background: #e8e8ed; }
.local-history-confirm h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: -.3px; }
.local-history-confirm p { margin: 0; font-size: 14px; line-height: 1.8; color: #6e6e73; }
.local-history-confirm p.local-history-confirm-note { margin-top: 12px; font-size: 13px; color: #86868b; }
.local-history-confirm p.local-history-clear-error { margin-top: 12px; color: #c32c23; }
.local-history-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.local-history-confirm-actions button { min-width: 100px; min-height: 44px; padding: 10px 20px; border: 1px solid #e0e4ea; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.local-history-confirm-actions button:hover { background: #f5f5f7; }
#confirmLocalHistoryClear { border-color: #d7352b; background: #d7352b; color: #fff; }
#confirmLocalHistoryClear:hover { background: #bd2d24; }
.local-history-confirm button:disabled { opacity: .5; cursor: not-allowed; }
.local-history-confirm button:focus-visible, .local-history-retry:focus-visible { outline: 3px solid #007aff; outline-offset: 3px; }
@media (max-width: 480px) {
  .history-record-header { flex-wrap: wrap; gap: 16px; }
  .history-record-identity { width: 100%; }
  .history-record-actions { width: 100%; justify-content: flex-end; }
  .local-history-confirm { padding: 24px; border-radius: 20px; }
  .local-history-confirm-actions button { flex: 1; min-width: 0; }
}
