@layer components {
.pt-logo { position: relative; display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; font-weight: 700; overflow: hidden; }
.pt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.pt-rb-logo { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); overflow: hidden; }
.pt-rb-logo img { width: 24px; height: 24px; }
.pt-rv { display: grid; gap: var(--s3); }
.pt-rv-span { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--s3); }
.pt-rv-span--single { grid-template-columns: minmax(0, 1fr); }
.pt-rv-span__card { display: grid; align-content: start; gap: var(--s1); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); }
.pt-rv-span__card--done { border-color: var(--gold-border); background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--surface-muted); }
.pt-rv-span__card--next { border-style: dashed; border-color: var(--pt-sheet-border, var(--info-border)); }
.pt-rv-span__card p { margin: 0; }
.pt-rv-span__label { display: flex; align-items: center; gap: var(--s2); color: var(--text-faint); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pt-rv-span__label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--gold); }
.pt-rv-span__card--next .pt-rv-span__label::before { border: 2px solid var(--pt-sheet-tone, var(--info)); background: transparent; }
.pt-rv-span__value { color: var(--text); font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-rv-span__meta { color: var(--text-muted); font-size: .86rem; }
.pt-rv-span__arrow { align-self: center; width: 36px; height: 12px; background: var(--text-faint); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 6h32M28 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pt-rv-note { margin: 0; }
.pt-rv-item { border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.pt-rv-item__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); cursor: pointer; list-style: none; }
.pt-rv-item__head::-webkit-details-marker { display: none; }
.pt-rv-item__head > span:first-child { display: grid; gap: var(--s1); flex: 1 1 auto; min-width: 0; }
.pt-rv-item__head strong { color: var(--text); font-size: 1rem; }
.pt-rv-item__pct { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-rv-item__head > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); font-style: normal; transition: transform var(--motion-base) var(--ease-standard); }
.pt-rv-item[open] > .pt-rv-item__head > i { transform: rotate(180deg); }
.pt-rv-item__head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-control); }
.pt-rv-item__body { display: grid; gap: var(--s3); padding: 0 var(--s4) var(--s4); }
.pt-rv-result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s5); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); }
.pt-rv-item[data-pt-trend="is-positive"] .pt-rv-result { border-color: var(--success-border); background: linear-gradient(120deg, var(--success-soft), transparent 75%), var(--surface-muted); }
.pt-rv-item[data-pt-trend="is-negative"] .pt-rv-result { border-color: var(--danger-border); background: linear-gradient(120deg, var(--danger-soft), transparent 75%), var(--surface-muted); }
.pt-rv-result__big { display: grid; gap: var(--s1); margin: 0; }
.pt-rv-result__label { color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pt-rv-result__big b { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-rv-result__big small { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-rv-flow { display: grid; gap: var(--s2); }
.pt-rv-flow__row { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto; align-items: center; gap: var(--s3); }
.pt-rv-flow__label { display: grid; color: var(--text-muted); font-size: .86rem; }
.pt-rv-flow__label small { color: var(--text-faint); font-size: .72rem; }
.pt-rv-flow__row > b { font-variant-numeric: tabular-nums; }
.pt-rv-flow__bar { width: 100%; height: 10px; }
.pt-rv-flow__track { fill: var(--border-soft); }
.pt-rv-flow__fill { fill: var(--text-faint); }
.pt-rv-flow__row--now .pt-rv-flow__fill { fill: var(--gold); }
.pt-rv-item[data-pt-trend="is-positive"] .pt-rv-flow__row--now .pt-rv-flow__fill { fill: var(--success); }
.pt-rv-item[data-pt-trend="is-negative"] .pt-rv-flow__row--now .pt-rv-flow__fill { fill: var(--danger); }
.pt-rv-tiles, .pt-rv-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.pt-rv-tile { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); }
.pt-rv-tile span { color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pt-rv-tile b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pt-rv-tile small { color: var(--text-muted); font-size: .78rem; }
.pt-rv-move { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); }
.pt-rv-move p { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--text-muted); font-size: .82rem; }
.pt-rv-move b { display: block; color: var(--text); font-size: .95rem; }
.pt-rv-move p small { display: block; color: var(--text-muted); font-size: .76rem; }
.pt-rv-move > em { flex: none; font-size: .95rem; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-rv-move > em.is-positive { color: var(--success); }
.pt-rv-move > em.is-negative { color: var(--danger); }
.pt-rv-move .pt-rb-logo { flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--surface-strong); }
.pt-rv-move .pt-rb-logo .pt-logo { width: 40px; height: 40px; flex-basis: 40px; border: 0; }
.pt-rv-move .pt-rb-logo img { width: 100%; height: 100%; }
.pt-rv-flows { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pt-rv-chip { display: inline-flex; align-items: baseline; gap: var(--s2); padding: var(--s1) var(--s3); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pt-rv-chip > span { color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pt-rv-item :is(b, small, span).is-positive { color: var(--success); }
.pt-rv-item :is(b, small, span).is-negative { color: var(--danger); }
.pt-rv-item--list { background: var(--surface-muted); }
.pt-rv-item__head small { color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.pt-rv-item__next { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text-muted); font-size: .86rem; }
.pt-rv-item__next::before { content: ''; flex: none; width: 16px; height: 16px; background: var(--pt-sheet-tone, var(--info)); mask: var(--pt-sheet-icon) center / contain no-repeat; }
.pt-ov-sheet__weekly { display: flex; justify-content: flex-start; margin: var(--s3) 0 0; }
@media (max-width: 640px) {
.pt-rv-span { grid-template-columns: minmax(0, 1fr); }
.pt-rv-span__arrow { justify-self: center; height: 24px; transform: rotate(90deg); }
.pt-rv-result { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.pt-rv-flow__row { grid-template-columns: minmax(6rem, auto) minmax(0, 1fr) auto; gap: var(--s2); }
.pt-rv-moves { grid-template-columns: minmax(0, 1fr); }
}
}
