body[data-site-page="rights"]:not(.inner-dark) {
  --ink: #1d1d1f; --muted: #6e6e73; --paper: #fff; --surface: #fff;
  --surface-subtle: #f5f5f7; --line: #dedee3; --accent: #0071e3; --accent-soft: #edf5ff;
}
main.rights-page { max-width: 1140px; padding-top: 48px; }
.rights-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); padding: 0 0 32px; align-items: start; }
.rights-sidebar { min-width: 0; }
.rights-profile { margin-bottom: 32px; }
.rights-avatar { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 20px; border-radius: 50%; color: var(--surface); background: #e8e8ed; }
.rights-avatar svg { width: 64px; height: 64px; }
body.inner-dark .rights-avatar { background: #394253; color: #d8e0ed; }
.rights-email { min-width: 0; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rights-tabs { display: flex; flex-direction: column; align-items: start; gap: 2px; }
.rights-tabs a { display: inline-flex; align-items: center; min-height: 42px; max-width: 100%; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.5; }
.rights-tabs a:hover, .rights-tabs a[aria-selected="true"] { color: var(--accent); }
.rights-tabs a[aria-selected="true"] { font-weight: 600; }
.rights-tabs a:focus-visible, .rights-section:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
.rights-content { min-width: 0; min-height: 480px; position: relative; }
.rights-section { margin: 0; }
.rights-section > h2 { font-size: 30px; letter-spacing: -.8px; margin: 0 0 28px; }
.rights-toolbar { gap: 22px; margin: 24px 0 0; font-size: 14px; }
.rights-toolbar > a { text-decoration: none; }
.rights-content > .status { margin: 0 0 24px; }
.rights-content > .status:empty { display: none; }
.rights-page-title, .rights-status-complete { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rights-content .cards { gap: 20px; }
.rights-content :is(button, .button) { border-radius: 20px; min-height: 36px; padding: 6px 16px; font-size: 13px; }
.rights-content .button.secondary { color: var(--accent); background: transparent; border-color: var(--line); }
.rights-record-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.rights-badge { flex-shrink: 0; padding: 3px 12px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.rights-record-heading h3 { overflow-wrap: anywhere; }
.rights-values { display: grid; gap: 8px; margin: 16px 0; line-height: 1.6; }
.rights-values > div { min-width: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); align-items: baseline; gap: 10px; }
.rights-values dt { font-size: 13px; color: var(--muted); }
.rights-values dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rights-timezone { white-space: nowrap; }
.rights-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 16px; }
.rights-product { min-width: 0; border: 1px solid var(--line); background: linear-gradient(135deg,var(--surface),var(--surface-subtle)); border-radius: 12px; padding: 22px; box-shadow: 0 8px 22px #00000005; }
.rights-product-heading, .rights-device-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rights-product-heading h3 { min-width: 0; margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.rights-product-heading .hint { flex-shrink: 0; font-size: 13px; }
.rights-product .rights-values { margin: 16px 0; font-size: 14px; }
.rights-product .rights-values > div { grid-template-columns: 4em minmax(0, 1fr); }
.rights-product .rights-values > div:last-child dd { color: var(--ink); font-weight: 600; }
.rights-record > .rights-values { font-size: 14px; }
.rights-record .rights-items { font-size: 14px; }
.rights-record { padding: 24px; border-radius: 12px; background: linear-gradient(135deg,var(--surface),var(--surface-subtle)); box-shadow: 0 8px 22px #00000005; }
.rights-record:has(.rights-products) { padding: 0; border: 0; background: none; box-shadow: none; }
.rights-record-heading h3 { margin: 0; }
.rights-record > .rights-values:first-child { margin-top: 0; }
.rights-record .hint:empty { display: none; }
.rights-badge[data-state="active"], .rights-badge[data-state="paid"] { color: #23614d; background: #e9f5ee; }
.rights-badge[data-state="pending"], .rights-badge[data-state="partial"] { color: #825a1b; background: #fff3db; }
.rights-badge[data-state="inactive"], .rights-badge[data-state="cancelled"], .rights-badge[data-state="refunded"], .rights-badge[data-state="unknown"] { color: var(--muted); background: var(--surface-subtle); border: 1px solid var(--line); }
.rights-badge[data-state="failed"] { color: #a63128; background: #fff0ed; }
body.inner-dark .rights-badge[data-state="active"], body.inner-dark .rights-badge[data-state="paid"] { color: #a3dfbd; background: #19382d; }
body.inner-dark .rights-badge[data-state="pending"], body.inner-dark .rights-badge[data-state="partial"] { color: #f0cd88; background: #3b3020; }
body.inner-dark .rights-badge[data-state="failed"] { color: #ffc2ba; background: #442c32; }
#rights-status { overflow-wrap: anywhere; }
#orders-list:empty, #entitlements-list:empty { display: none; }
#orders-status:not(.error):has(+ #orders-list:empty), #entitlements-status:not(.error):has(+ #entitlements-list:empty) { border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-subtle); padding: 24px; }
.rights-record .actions { margin-top: 18px; }
.rights-items { list-style: none; padding: 0; margin: 12px 0 0; }
.rights-items:empty { display: none; }
.rights-items li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rights-items li:last-child { padding-bottom: 0; }
.rights-items .rights-values { margin: 8px 0 0; }
.rights-device-heading { justify-content: start; }
.rights-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.rights-details summary { cursor: pointer; color: var(--accent); width: fit-content; }
.rights-order-detail .status { margin-bottom: 0; }
.rights-order-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; margin-top: 16px; }
.rights-order-detail { flex: 1 1 180px; min-width: 0; }
.rights-order-detail button[aria-disabled="true"] { opacity: .55; cursor: default; }
@media (min-width: 761px) and (max-width: 1100px) {
  .rights-products { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  main.rights-page { padding-top: 28px; }
  .rights-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 12px; }
  .rights-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
  .rights-avatar { flex-shrink: 0; width: 56px; height: 56px; margin: 0; }
  .rights-avatar svg { width: 46px; height: 46px; }
  .rights-tabs { flex-direction: row; gap: 24px; overflow-x: auto; padding: 2px 4px 8px; margin: 0 -4px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .rights-tabs a { flex-shrink: 0; font-size: 14px; min-height: 40px; }
  .rights-content { min-height: 360px; }
  .rights-section > h2 { font-size: 26px; margin-bottom: 24px; }
  .rights-products { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rights-values > div { grid-template-columns: 6em minmax(0, 1fr); }
  .rights-record-heading { flex-wrap: wrap; }
  .rights-badge { max-width: 100%; }
  .rights-record, .rights-product { padding: 20px; }
  .rights-toolbar { gap: 16px; }
}
