/* Optical roles are separate from control hit areas and preview scaling. */
:root {
  --icon-inline: 11px;
  --icon-action: 18px;
  --icon-navigation: 16px;
  --chip-gap: 2px;
  --accent-readable: #7540c8;
  --detail-transition: 140ms ease-out;
}
.photo-count,
.paid {
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  gap: var(--chip-gap);
  padding: 4px 7px 4px 6px;
}
.photo-count svg,
.paid svg {
  width: var(--icon-inline);
  height: var(--icon-inline);
}
.paid {
  left: 8px;
  bottom: 8px;
}
.paid svg {
  width: 10px;
  height: 10px;
}
.photo-count > span,
.paid > span {
  line-height: 14px;
}
.nearby {
  width: 220px;
  font-size: 14px;
  line-height: 20px;
}
.nearby > div {
  margin-bottom: 10px;
}
.nearby > div > img {
  width: 220px;
  height: 278px;
  border-radius: 16px;
}
.nearby p {
  font-size: 12px;
  line-height: 18px;
  margin-top: 2px;
}
/* A standalone specimen needs a readable native size, not enlarged microtype. */
.component-wrap > .track-tile,
.component-wrap > .collection-tile {
  width: 240px;
}
.component-wrap > .track-tile .cover,
.component-wrap > .collection-tile img {
  width: 240px;
  height: 240px;
  border-radius: 14px;
}
.component-wrap > .track-tile .tile-title,
.component-wrap > .collection-tile .tile-title {
  font-size: 16px;
  line-height: 22px;
  margin-top: 12px;
  white-space: normal;
}
.component-wrap > .track-tile .tile-year {
  font-size: 12px;
  line-height: 18px;
  margin-top: 2px;
}
.icon-button svg,
.play-state svg {
  width: var(--icon-action);
  height: var(--icon-action);
}
.bookmark {
  width: 44px;
  height: 44px;
}
.source-link svg {
  width: 14px;
  height: 14px;
}
.study-controls button,
.calendar header button {
  display: inline-grid;
  place-items: center;
}
.study-controls svg,
.calendar header svg {
  width: var(--icon-navigation);
  height: var(--icon-navigation);
}
.study-controls [data-counter] {
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.study-controls button:disabled:hover {
  background: transparent;
}
.riz-post footer svg {
  width: var(--icon-action);
  height: var(--icon-action);
}
.riz-post footer > * {
  gap: 4px;
}
.riz-post footer button {
  min-width: 44px;
  justify-content: center;
  padding-inline: 6px;
}
.riz-post footer > button:last-child {
  margin-right: -10px;
}
.verified {
  width: 14px;
  height: 14px;
}
.ellipsis svg {
  width: 18px;
  height: 18px;
}
.profile-content h2 svg {
  width: 14px;
  height: 14px;
}
.conversation svg {
  width: 12px;
  height: 12px;
}
.membership > svg {
  width: 22px;
  height: 22px;
}
.membership {
  gap: 10px;
  padding: 16px;
}
.membership-label {
  line-height: 16px;
  padding: 6px 10px;
}
.message-thread form button {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.message-thread form svg {
  width: var(--icon-action);
  height: var(--icon-action);
}
.message-thread input {
  font-size: 13px;
  line-height: 18px;
}
.messages p {
  flex-shrink: 0;
}
.messages .sent,
.membership-label,
.date-grid button[aria-pressed="true"] {
  background: var(--accent-readable);
  color: white;
}
.plan-picker input {
  accent-color: var(--accent-readable);
}
.plan-picker label:has(input:checked) {
  outline-color: var(--accent-readable);
}
.plan-picker label {
  cursor: pointer;
  min-height: 54px;
}
.plan-picker input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: none;
}
.artist strong {
  letter-spacing: -0.3px;
}
.subscribe {
  min-width: 106px;
  min-height: 44px;
  padding: 10px 16px;
}
.track-panel header strong {
  letter-spacing: -0.2px;
}
.shop-row > strong {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.shop-scroll {
  scroll-padding-inline: var(--panel-inset);
}
.shop-scroll .collection-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.collection-tile .tile-title {
  font-size: 13px;
  line-height: 18px;
  margin-top: 10px;
}
.paper-card > p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.source small {
  color: #66615e;
}
.calendar header button {
  width: 44px;
}
.date-grid button {
  font-size: 18px;
}
.weekdays {
  font-size: 11px;
  color: #666278;
}
button:not(:disabled),
.plan-picker label {
  transition:
    background-color var(--detail-transition),
    color var(--detail-transition),
    box-shadow var(--detail-transition);
}
@media (hover: hover) {
  .icon-button:hover:not(:disabled),
  .conversation:hover {
    box-shadow: inset 0 0 0 1px #1c17291a;
  }
  .subscribe:hover {
    background: #333;
  }
  .subscribe[aria-pressed="true"]:hover {
    background: #dcc8f7;
  }
}
button:focus-visible,
[tabindex]:focus-visible:not(.shop-scroll),
a:focus-visible,
input:focus-visible {
  outline: 2px solid #6d35b7;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.profile-cover img {
  object-position: center 30%;
}
.profile-avatar {
  object-position: 67% 30%;
}
.track-slot {
  padding: 0;
  text-align: left;
  border-radius: 9px;
}
.track-slot[aria-pressed="true"] {
  background: transparent !important;
}
.track-panel {
  padding-bottom: 12px;
}
/* Each sheet owns its clipped texture. Back sheets have no independent overlay. */
.paper-card {
  background: #faf9f7;
  box-shadow: 0 12px 28px -12px #25232a26;
}
.paper-card::before {
  border-radius: inherit;
  opacity: 0.045;
}
.paper-back {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 16px -10px #25232a22;
}
.paper-back::before {
  content: none;
}
.paper-back > .paper-card {
  border-radius: inherit;
}
.paper-stack {
  cursor: grab;
}
.paper-stack:active {
  cursor: grabbing;
}
.paper-stack .paper-card {
  transform-origin: 50% 65%;
}
.riz-post {
  width: 385px;
  padding: 20px 20px 12px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px -12px #25232a20;
}
.message-thread form {
  margin-bottom: 0;
}
.plan-picker label:last-of-type {
  margin-bottom: 0;
}

/* Small pictograms need optical weight without increasing their footprint. */
.photo-count svg [stroke-width],
.paid svg [stroke-width],
.photo-next svg [stroke-width] {
  stroke-width: 2;
}
.nearby {
  width: 252px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px -12px #25232a20;
}

.profile-avatar {
  object-position: center;
}
.profile-cover img {
  object-position: center 38%;
}
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #b92349;
  color: white;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}
.date-grid {
  position: relative;
  isolation: isolate;
}
.date-grid button {
  position: relative;
  z-index: 1;
}
.date-grid button[aria-pressed="true"] {
  background: transparent !important;
}
.date-selection {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-readable);
  pointer-events: none;
  z-index: 0;
}
.date-grid.is-moving button[aria-pressed="true"] {
  color: #120d30;
}
/* The moving surface owns animation; number colors must not trail selection. */
.date-grid button { transition: none; }
/* One clipped surface contains both fill and white text at every animation frame. */
.date-selection { background: transparent; }
.date-selection-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  color: #fff;
  background: var(--accent-readable);
}
.date-grid button[aria-pressed="true"] { color: #120d30; }
.date-selection-surface[hidden] { display: none; }

/* Only exposed labels follow the canvas. Card interiors retain source colors. */
.component-wrap > .track-tile,
.component-wrap > .collection-tile,
.session > .artist {
  color: var(--canvas-ink);
}
.component-wrap > .track-tile .tile-year,
.session > .artist .muted,
.napkin > .study-controls {
  color: var(--canvas-muted);
}
.session .subscribe {
  background: var(--canvas-ink);
  color: var(--canvas-action-ink);
}
.session .subscribe[aria-pressed="true"] {
  background: #e8dbfc;
  color: #1a1a1a;
}
