.product-history-dialog { box-sizing: border-box; width: min(1080px, 94vw); max-height: 90dvh; padding: 28px; border: 1px solid #dce5df; border-radius: 20px; background: #fff; color: #20382b; font-family: inherit; box-shadow: 0 24px 90px #12342333; }
.product-history-dialog::backdrop { background: #112d247a; }
.product-history-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.product-history-dialog h2 { margin: 10px 0 6px; font-size: clamp(22px, 3vw, 32px); overflow-wrap: anywhere; }
.product-history-dialog header p, .product-history-activation, .product-history-status { color: #63756a; font-size: 14px; line-height: 1.6; }
.product-history-eyebrow { color: #258447; letter-spacing: .08em; font-weight: 800; }
.product-history-dialog button, .product-history-dialog input, .product-history-dialog select { font: inherit; }
.product-history-dialog button { cursor: pointer; color: #225d3c; padding: 10px 15px; border: 1px solid #cddcd1; background: #f6faf7; border-radius: 9px; font-weight: 700; }
.product-history-dialog button:focus-visible, .product-history-dialog summary:focus-visible { outline: 3px solid #248a57; outline-offset: 3px; }
.product-history-dialog .product-history-close { font-size: 26px; padding: 0; flex: 0 0 42px; height: 42px; border-radius: 50%; background: white; }
.product-history-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.product-history-tabs button { border-radius: 22px; }
.product-history-tabs button[aria-pressed="true"] { background: #226a45; color: #fff; border-color: #226a45; }
.product-history-filters { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; gap: 12px; background: #f6f9f7; border: 1px solid #e2e9e4; padding: 16px; border-radius: 12px; }
.product-history-filters label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.product-history-filters input, .product-history-filters select { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #cfdbd2; border-radius: 7px; background: white; color: #20382b; }
.product-history-events { display: grid; gap: 10px; }
.product-history-event { border: 1px solid #dfe8e2; border-radius: 12px; overflow: hidden; }
.product-history-event summary { display: flex; align-items: center; gap: 14px; padding: 17px; cursor: pointer; list-style: none; }
.product-history-event summary::-webkit-details-marker { display: none; }
.product-history-event summary::after { content: "+"; font-size: 22px; color: #688171; }
.product-history-event[open] summary::after { content: "−"; }
.product-history-event[open] summary { background: #f6faf7; border-bottom: 1px solid #dfe8e2; }
.product-history-event-dot { width: 10px; height: 10px; border-radius: 50%; background: #86978c; flex-shrink: 0; }
.product-history-event-dot.purchases { background: #278853; }.product-history-event-dot.sales { background: #4289b0; }.product-history-event-dot.transfers { background: #b58a2b; }.product-history-event-dot.prices { background: #8a62ae; }
.product-history-event-heading { flex: 1; min-width: 0; }
.product-history-event-heading strong, .product-history-event-heading small, .product-history-event-meta strong, .product-history-event-meta time { display: block; overflow-wrap: anywhere; }
.product-history-event-heading small, .product-history-event-meta time { color: #687c6f; margin-top: 5px; font-size: 12px; }
.product-history-event-meta { text-align: right; }
.product-history-dialog dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 20px; }
.product-history-dialog dt { color: #6a7b70; font-size: 12px; margin-bottom: 6px; }.product-history-dialog dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.product-history-dialog footer { display: flex; justify-content: center; margin-top: 22px; }
.product-history-dialog [hidden] { display: none !important; }.product-history-sheet { width: min(700px, 94vw); }.product-history-sheet dl { grid-template-columns: 1fr 1fr; padding: 18px 0; }
.general-product-view { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; font-weight: 750; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #c2d4c8; text-underline-offset: 4px; }
@media (max-width: 640px) { .product-history-dialog { padding: 18px; width: 96vw; max-height: 94dvh; }.product-history-filters { grid-template-columns: 1fr 1fr; }.product-history-dialog dl { grid-template-columns: 1fr 1fr; padding: 14px; gap: 15px; }.product-history-event summary { padding: 12px; gap: 9px; flex-wrap: wrap; }.product-history-event-meta { text-align: left; margin-left: 19px; flex-basis: 80%; }.product-history-tabs { gap: 6px; }.product-history-tabs button { padding: 8px 11px; font-size: 13px; } }
@media (max-width: 640px) {
  .product-history-event summary { display: grid; grid-template-columns: 10px minmax(0, 1fr) 18px; }
  .product-history-event-dot { grid-column: 1; grid-row: 1; }
  .product-history-event-heading { grid-column: 2; grid-row: 1; }
  .product-history-event summary::after { grid-column: 3; grid-row: 1; }
  .product-history-event-meta { grid-column: 2; grid-row: 2; margin: 0; }
}
