/* Canonical data-history-pattern.html, scoped for the embedded demo pages. */
.dataset-history-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:1000}
.dataset-history-drawer{position:fixed;top:0;right:0;bottom:0;width:440px;max-width:100vw;background:#fff;z-index:1001;display:flex;flex-direction:column;box-shadow:-4px 0 24px rgba(15,23,42,.15);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;color:#1f2937;line-height:normal;-webkit-font-smoothing:antialiased}
.dataset-history-drawer,.dataset-history-drawer *{box-sizing:border-box}
.dataset-history-header{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #e5e7eb;flex-shrink:0}
.dataset-history-heading{flex:1;min-width:0}
.dataset-history-icon-button{width:30px;height:30px;padding:0;border-radius:6px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;display:grid;place-items:center;color:#6b7280;flex-shrink:0}
.dataset-history-icon-button:hover{color:#1f2937;border-color:#9ca3af;background:#fff}
.dataset-history-icon-button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.dataset-history-icon-button svg{width:14px;height:14px}
.dataset-history-title{font-size:15px;font-weight:700;color:#1f2937;letter-spacing:-.01em}
.dataset-history-subtitle{font-size:11.5px;font-weight:500;color:#6b7280;margin-top:2px}
.dataset-history-body{flex:1;overflow-y:auto;min-height:0;padding-bottom:12px}
.dataset-history-month-group{padding:16px 20px 8px}
.dataset-history-month-label{font-size:11.5px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.dataset-history-entry{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:8px;transition:border-color .1s}
.dataset-history-entry:hover{border-color:#9ca3af}
.dataset-history-entry.dataset-history-latest{border-color:#2563eb;background:#eff6ff}
.dataset-history-entry-row{display:flex;align-items:flex-start;gap:10px;padding:11px 14px}
.dataset-history-dot{width:8px;height:8px;border-radius:50%;background:#9ca3af;margin-top:5px;flex-shrink:0}
.dataset-history-latest .dataset-history-dot{background:#2563eb}
.dataset-history-entry-content{flex:1;min-width:0}
.dataset-history-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px}
.dataset-history-latest-tag{display:inline-flex;align-items:center;padding:1px 6px;border-radius:4px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;background:#2563eb;color:#fff}
.dataset-history-meta{display:flex;align-items:center;gap:4px;font-size:12px;color:#6b7280;flex-wrap:wrap}
.dataset-history-meta+.dataset-history-meta{margin-top:4px}
.dataset-history-time{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;color:#1f2937}
.dataset-history-separator{color:#9ca3af;margin:0 2px}
.dataset-history-avatar{width:18px;height:18px;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:700;flex-shrink:0}
.dataset-history-avatar[data-hue="0"]{background:linear-gradient(135deg,#a855f7,#6b21a8)}
.dataset-history-avatar[data-hue="1"]{background:linear-gradient(135deg,#3b82f6,#1e40af)}
.dataset-history-avatar[data-hue="2"]{background:linear-gradient(135deg,#f59e0b,#b45309)}
.dataset-history-author{font-weight:500;color:#1f2937;margin-right:2px;overflow-wrap:anywhere}
.dataset-history-changes{display:inline-flex;gap:4px;flex-wrap:wrap}
.dataset-history-added{color:#047857;font-weight:600}
.dataset-history-modified{color:#1d4ed8;font-weight:600}
.dataset-history-removed{color:#b91c1c;font-weight:600}
.dataset-history-unchanged{color:#9ca3af}
.dataset-history-empty{padding:60px 24px;text-align:center;color:#6b7280}
.dataset-history-empty svg{width:40px;height:40px;color:#9ca3af;margin-bottom:12px}
.dataset-history-empty-title{font-size:14px;font-weight:700;color:#1f2937;margin-bottom:6px}
.dataset-history-empty-sub{font-size:12.5px;color:#6b7280;max-width:280px;margin:0 auto;line-height:1.5}
@media(max-width:480px){.dataset-history-drawer{width:100vw}}
