.up-history-shell { min-width:0; border:1px solid var(--up-line); border-radius:16px; background:var(--up-surface); box-shadow:var(--up-card-shadow); overflow:hidden; }
.up-history-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; padding:0 18px; border-bottom:1px solid var(--up-line); }
.up-history-tabs button { position:relative; min-width:0; min-height:56px; padding:14px 4px; color:var(--up-muted); border:0; background:transparent; cursor:pointer; font:700 .84rem/1.3 Manrope,sans-serif; transition:color 150ms ease,background-color 150ms ease; }
.up-history-tabs button[aria-selected="true"] { color:var(--up-gold); background:color-mix(in srgb,var(--up-gold) 5%,transparent); }
.up-history-tabs button[aria-selected="true"]::after { content:""; position:absolute; bottom:0; height:3px; border-radius:3px 3px 0 0; left:12px; right:12px; background:var(--up-gold); }
.up-history-tabs button:focus-visible { outline:2px solid var(--up-gold); outline-offset:-4px; }
.up-history-shell [data-history-panel][hidden] { display:none!important; }
.up-history-shell .up-card { border:0; border-radius:0; box-shadow:none; background:transparent; }
.up-history-shell .up-card>header { padding:23px 24px 18px; margin:0; }
.up-history-shell .up-card>header h2 { font:800 1.08rem/1.4 Manrope,sans-serif; }
.up-history-shell .up-card>header p:not(.eyebrow) { color:var(--up-muted); font-size:.78rem; line-height:1.7; margin-top:6px; }
.up-history-shell .up-card .eyebrow { font-size:.65rem; }
.up-history-shell .up-purchase-cards { gap:0; }
.up-history-shell .up-card-order-history { padding:0; margin:0; border-bottom:1px solid var(--up-line); scroll-margin-top:140px; }
.up-card-order-history>summary { display:grid; grid-template-columns:minmax(0,1fr) auto 16px; align-items:center; gap:16px; padding:22px 24px; min-height:82px; cursor:pointer; list-style:none; }
.up-card-order-history>summary::-webkit-details-marker { display:none; }
.up-card-order-label { display:grid; gap:5px; }
.up-card-order-label strong { color:var(--up-text); font:700 .9rem/1.4 Manrope,sans-serif; }
.up-card-order-label small { color:var(--up-muted); font-size:.72rem; }
.up-card-order-count { min-width:28px; text-align:center; padding:4px 8px; border:1px solid var(--up-line); border-radius:6px; background:var(--up-raised); color:var(--up-muted); font-size:.72rem; font-variant-numeric:tabular-nums; }
.up-card-order-history[open]>summary { border-bottom:1px solid var(--up-line); }
.up-card-order-history[open]>summary>.up-history-chevron { transform:rotate(90deg); }
.up-card-order-list>.up-history-entry:last-child { border-bottom:0; }
.up-history-shell .up-card-order-history .up-table-pagination { border-top:1px solid var(--up-line); }
.up-card-order-history summary:focus-visible,.up-wallet-disclosure>summary:focus-visible { outline:2px solid var(--up-gold); outline-offset:-3px; border-radius:5px; }
.up-history-shell .up-cardshop-wallet { padding:0; }
.up-history-shell .up-cardshop-wallet-toolbar,.up-history-shell #up-cardshop-wallet-message { margin-inline:24px; }
.up-history-shell .up-cardshop-wallet-list { display:block; padding:0 24px 10px; }
.up-history-shell .up-wallet-disclosure { display:block; min-height:0; border:0; border-bottom:1px solid var(--up-line); border-radius:0; padding:17px 0; background:transparent; box-shadow:none; margin:0; }
.up-history-shell .up-wallet-disclosure::before,.up-history-shell .up-wallet-disclosure::after { display:none; }
.up-history-shell .up-wallet-disclosure>summary { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:14px; min-height:48px; cursor:pointer; list-style:none; padding-right:25px; position:relative; }
.up-history-shell .up-wallet-disclosure>summary::-webkit-details-marker { display:none; }
.up-history-shell .up-wallet-disclosure>summary::after { content:'›'; position:absolute; right:2px; font-size:22px; color:var(--up-muted); }
.up-history-shell .up-wallet-disclosure[open]>summary::after { transform:rotate(90deg); }
.up-history-shell .up-wallet-disclosure .up-virtual-card-code { margin-top:16px; padding:14px 16px; border:1px dashed var(--up-line); border-radius:8px; background:var(--up-raised); overflow-wrap:anywhere; font-size:.87rem; }
.up-wallet-card-mark { display:grid; place-items:center; width:48px; height:38px; border:1px solid color-mix(in srgb,var(--up-gold) 45%,var(--up-line)); border-radius:7px; color:var(--up-gold); background:linear-gradient(135deg,color-mix(in srgb,var(--up-gold) 12%,transparent),transparent); font:700 .8rem Cinzel,serif; }
.up-wallet-disclosure.is-redeemed .up-wallet-card-mark { color:var(--up-muted); border-color:var(--up-line); background:var(--up-raised); }
.up-wallet-card-identity { display:grid; gap:6px; min-width:0; }
.up-history-shell .up-wallet-disclosure .up-wallet-card-head strong { font:700 .87rem/1.4 Manrope,sans-serif; overflow-wrap:anywhere; }
.up-wallet-card-identity small { color:var(--up-muted); font:500 .68rem/1.4 Manrope,sans-serif; letter-spacing:.03em; overflow-wrap:anywhere; }
.up-wallet-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 0 2px; }
.up-wallet-card-footer .up-virtual-card-actions { margin:0; }
.up-history-shell .up-virtual-card-actions button { min-height:40px; }
.up-history-shell #up-cardshop-export { min-height:40px; padding:10px 14px; border:1px solid var(--up-line); border-radius:8px; clip-path:none; font:700 .75rem Manrope,sans-serif; background:var(--up-raised); }
.up-history-shell #up-cardshop-export:disabled { opacity:.42; cursor:not-allowed; }
.up-history-shell .up-shop-history-filters,.up-history-filters { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:12px; margin:0; padding:0 24px 16px; }
.up-history-shell .up-shop-history-filters { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); }
.up-history-filters label,.up-history-shell .up-shop-history-filters label,.up-pass-character { display:grid; gap:6px; min-width:0; font-size:.7rem; color:var(--up-muted); }
.up-history-filters input,.up-history-filters select,.up-history-shell .up-shop-history-filters input,.up-history-shell .up-shop-history-filters select,.up-pass-character select { min-width:0; width:100%; min-height:40px; padding:9px 11px; border:1px solid var(--up-line); border-radius:8px; background:var(--up-surface); color:var(--up-text); font:500 .78rem/1.4 Manrope,sans-serif; }
.up-history-shell input::placeholder { color:var(--up-muted); opacity:1; }
.up-history-shell .up-shop-history-help,.up-history-footnote { margin:0; padding:0 24px 16px; color:var(--up-muted); font-size:.73rem; line-height:1.7; }
.up-history-feedback-row,.up-history-shell .up-shop-history-feedback { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 24px 14px; }
.up-history-feedback { margin:0; color:var(--up-muted); font-size:.73rem; }
.up-history-feedback-row button { border:1px solid var(--up-line); border-radius:7px; padding:7px 13px; background:var(--up-surface-2); color:var(--up-text); cursor:pointer; font:600 .74rem Manrope,sans-serif; min-height:36px; }
.up-history-feedback-row button:disabled { opacity:.5; cursor:wait; }
.up-history-shell .up-table-wrap { overflow:visible; border:0; margin:0; }
.up-history-shell .up-history-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; }
.up-history-shell .up-history-table thead { background:var(--up-raised); }
.up-history-shell .up-history-table th { font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; color:var(--up-muted); border-top:1px solid var(--up-line); border-bottom:1px solid var(--up-line); padding:11px 24px; text-align:left; }
.up-history-shell .up-history-table th:first-child { width:55%; }
.up-history-shell .up-history-table th:nth-child(2) { width:21%; }
.up-history-shell .up-history-table td { padding:0; border:0; white-space:normal; }
.up-history-shell .up-history-table tr { display:table-row; border:0; background:transparent; }
.up-history-shell .up-history-table td::before { display:none; }
.up-history-entry { margin:0; border:0; border-radius:0; border-bottom:1px solid var(--up-line); background:transparent; }
.up-history-entry>summary { display:grid; grid-template-columns:minmax(0,1fr) 116px 107px 16px; align-items:center; gap:14px; padding:19px 24px; min-height:83px; cursor:pointer; list-style:none; color:var(--up-text); }
.up-history-entry>summary::-webkit-details-marker { display:none; }
.up-history-entry-copy { min-width:0; display:grid; gap:5px; }
.up-history-entry-copy strong { font-size:.84rem; font-weight:700; overflow-wrap:anywhere; }
.up-history-entry-copy small { color:var(--up-muted); font-size:.69rem; }
.up-history-entry-amount { font-size:.81rem; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.up-history-entry-status { display:inline-block; width:fit-content; max-width:100%; padding:5px 8px; border-radius:5px; color:var(--up-muted); background:var(--up-raised); font-size:.68rem; font-weight:700; line-height:1.4; white-space:normal; }
.up-history-entry-status.is-success { color:var(--up-green); background:color-mix(in srgb,var(--up-green) 10%,transparent); }
.up-history-entry-status.is-pending { color:var(--up-warn); background:color-mix(in srgb,var(--up-warn) 10%,transparent); }
.up-history-entry-status.is-danger { color:var(--up-danger); background:color-mix(in srgb,var(--up-danger) 10%,transparent); }
.up-history-entry-status.is-muted { color:var(--up-muted); background:var(--up-raised); border:1px solid var(--up-line); }
.up-history-chevron { font-size:22px; color:var(--up-muted); text-align:center; }
.up-history-entry[open] .up-history-chevron { transform:rotate(90deg); color:var(--up-gold); }
.up-history-entry[open]>summary { background:var(--up-raised); }
.up-history-entry-info { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 25px; margin:0; padding:18px 24px 23px; border-top:1px dashed var(--up-line); background:var(--up-raised); }
.up-history-entry-info dt { font-size:.69rem; color:var(--up-muted); margin-bottom:5px; }
.up-history-entry-info dd { margin:0; font-size:.77rem; color:var(--up-text); overflow-wrap:anywhere; }
.up-history-shell .up-table-pagination { display:flex; margin:0; padding:17px 24px; gap:12px; }
.up-history-shell .up-table-pagination[hidden] { display:none; }
.up-history-shell .up-table-pagination button { min-height:38px; }
.up-history-shell .up-inline-empty { padding:30px 24px; margin:0; }
.up-pass-character { margin:0 24px 18px; max-width:360px; }
.up-pass-status { margin:0 24px 23px; }
.up-pass-cycle { display:flex; align-items:baseline; justify-content:space-between; gap:8px 20px; flex-wrap:wrap; margin:0 0 14px; }
.up-pass-cycle strong { color:var(--up-text); font-size:.83rem; }
.up-pass-cycle span { color:var(--up-muted); font-size:.68rem; }
.up-pass-tracks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.up-pass-track { min-width:0; border:1px solid var(--up-line); border-radius:12px; padding:19px; background:var(--up-surface-2); }
.up-pass-track.is-premium { background:linear-gradient(130deg,color-mix(in srgb,var(--up-gold) 10%,transparent),transparent 85%),var(--up-surface-2); }
.up-pass-track-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.up-pass-track-head h3 { margin:0; font:700 1.05rem Cinzel,serif; color:var(--up-text); }
.up-pass-track-count { margin:20px 0 8px; color:var(--up-muted); font-size:.74rem; }
.up-pass-track-count strong { color:var(--up-text); font-size:1.6rem; font-weight:800; font-variant-numeric:tabular-nums; }
.up-pass-track progress { display:block; appearance:none; width:100%; height:6px; border:0; border-radius:6px; overflow:hidden; background:var(--up-line); accent-color:var(--up-gold); }
.up-pass-track progress::-webkit-progress-bar { background:var(--up-line); border-radius:6px; }
.up-pass-track progress::-webkit-progress-value { background:var(--up-gold); border-radius:6px; }
.up-pass-track progress::-moz-progress-bar { background:var(--up-gold); border-radius:6px; }
.up-pass-track-hint { color:var(--up-muted); font-size:.7rem; line-height:1.65; margin:11px 0 0; }
.up-pass-status>.up-history-footnote { padding:12px 0 0; }
.up-pass-days { border:0; border-radius:0; margin:14px 0 0; background:transparent; }
.up-pass-days>summary { cursor:pointer; color:var(--up-gold); font-size:.77rem; padding:10px 0; min-height:40px; }
.up-pass-day-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding-top:8px; }
.up-pass-day { padding:12px; background:var(--up-raised); border:1px solid var(--up-line); border-radius:7px; min-width:0; }
.up-pass-day strong { display:block; font-size:.77rem; margin-bottom:5px; color:var(--up-text); }
.up-pass-day span { display:block; color:var(--up-muted); font-size:.65rem; line-height:1.7; }
.up-pass-day span.is-success { color:var(--up-green); }
.up-history-subheading { margin:0; padding:0 24px 15px; color:var(--up-text); font:700 .91rem Manrope,sans-serif; }
@media(hover:hover) and (pointer:fine) { .up-history-tabs button:hover,.up-history-entry>summary:hover,.up-card-order-history>summary:hover,.up-wallet-disclosure>summary:hover { background:var(--up-raised); } }
@media(max-width:900px) { .up-history-entry>summary { grid-template-columns:minmax(0,1fr) 88px 90px 14px; gap:10px; }.up-history-shell .up-shop-history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.up-history-shell .up-shop-history-filters>label:first-child { grid-column:1/-1; }.up-pass-day-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) {
  .up-history-shell { border-radius:12px; }
  .up-history-tabs { padding:0 6px; gap:0; }
  .up-history-tabs button { min-height:52px; font-size:.73rem; padding-inline:2px; }
  .up-history-tabs button[aria-selected="true"]::after { left:6px; right:6px; }
  .up-history-shell .up-card>header { padding:20px 16px 16px; }
  .up-history-filters,.up-history-shell .up-shop-history-filters { padding:0 16px 16px; grid-template-columns:minmax(0,1fr); }
  .up-history-filters input,.up-history-filters select,.up-history-shell .up-shop-history-filters input,.up-history-shell .up-shop-history-filters select,.up-pass-character select { min-height:44px; font-size:16px; }
  .up-history-shell .up-shop-history-help,.up-history-footnote,.up-history-feedback-row,.up-history-shell .up-shop-history-feedback { padding-left:16px; padding-right:16px; }
  .up-history-shell .up-history-table thead { display:none; }
  .up-history-shell .up-history-table,.up-history-shell .up-history-table tbody,.up-history-shell .up-history-table tr,.up-history-shell .up-history-table td { display:block; width:100%; }
  .up-history-entry>summary { grid-template-columns:minmax(0,1fr) auto 16px; gap:9px 10px; padding:16px; min-height:98px; }
  .up-history-entry-copy { grid-column:1/3; grid-row:1; }
  .up-history-entry-amount { grid-column:1; grid-row:2; }
  .up-history-entry-status { grid-column:2; grid-row:2; }
  .up-history-chevron { grid-column:3; grid-row:1/3; }
  .up-history-entry-info { padding:17px 16px; gap:16px; }
  .up-history-shell .up-table-pagination { padding:16px; }
  .up-history-shell .up-table-pagination button,.up-history-feedback-row button { min-height:44px; }
  .up-pass-character,.up-pass-status { margin-left:16px; margin-right:16px; }
  .up-pass-tracks { grid-template-columns:minmax(0,1fr); gap:10px; }
  .up-pass-track { padding:17px; }
  .up-pass-track-count { margin-top:12px; }
  .up-pass-day-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .up-history-subheading { padding-left:16px; }
  .up-history-shell .up-cardshop-wallet-toolbar,.up-history-shell #up-cardshop-wallet-message { margin-left:16px; margin-right:16px; }
  .up-history-shell .up-cardshop-wallet-list { padding-left:16px; padding-right:16px; }
  .up-history-shell .up-cardshop-wallet>header { align-items:flex-start; flex-direction:column; }
  .up-history-shell .up-wallet-disclosure>summary { min-height:44px; }
  .up-card-order-history>summary { padding:19px 16px; gap:10px; }
  .up-history-shell .up-wallet-disclosure>summary { grid-template-columns:38px minmax(0,1fr); gap:7px 11px; }
  .up-wallet-card-mark { grid-row:1/3; width:38px; height:32px; }
  .up-wallet-card-identity { grid-column:2; }
  .up-wallet-disclosure>summary>.up-history-entry-status { grid-column:2; }
  .up-history-shell .up-wallet-disclosure .up-virtual-card-head strong { font-size:.83rem; }
  .up-wallet-card-footer { align-items:flex-start; flex-direction:column; }
  .up-history-shell .up-virtual-card-actions button,.up-history-shell #up-cardshop-export { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .up-history-tabs button { transition:none; } }
