/*
 * Venue Details Styles
 */

.venue-details-page {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--color-text);
}

.venue-header {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.title-container {
    display: flex;
    align-items: center;
}

.main-content {
    padding: 0 var(--gutter);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.back-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.back-arrow {
    margin-right: 10px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.edit-venue-button {
    background-color: var(--color-purple);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.venue-profile-section {
    margin-bottom: 40px;
}

.venue-profile {
    display: flex;
    margin-bottom: 30px;
}

.venue-image {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 30px;
}

.venue-info {
    display: flex;
    flex-direction: column;
}

.venue-name {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.venue-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.venue-detail-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--color-purple);
}

.stats-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.chart-container {
    height: 250px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
}

.stats-grid {
    display: flex;
    margin-bottom: 40px;
}

.left-column {
    flex: 1;
    margin-right: 30px;
}

.right-column {
    flex: 2;
}

.capacity-section {
    margin-bottom: 30px;
}

.capacity-bar {
    height: 16px;
    background-color: var(--color-background-muted);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background-color: var(--color-purple);
    border-radius: 8px 0 0 8px;
}

.capacity-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.capacity-fraction {
    color: #666;
}

.capacity-percentage {
    font-weight: 600;
    color: #6b46c1;
}

.genres-songs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.genre-chart-container {
    height: 220px;
    position: relative;
    margin-bottom: 15px;
}

.genre-legend {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.genre-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.genre-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 8px;
}

.top-songs-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.song-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.song-number {
    width: 22px;
    height: 22px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 10px;
    font-weight: 500;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.song-title {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 14px;
}

.song-artist {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .venue-profile {
        flex-direction: column;
    }
    
    .venue-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .stats-grid {
        flex-direction: column;
    }
    
    .left-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .genres-songs-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HALL OF ECHOES — Public Venue Module Styles (HOE.M6 packet A)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Module Container ── */
.hall-module {
    margin-bottom: 40px;
    padding: 0;
}

/* ── Hall Hero ── */
.hall-hero {
    background: linear-gradient(135deg, #6b46c1 0%, #483D8B 100%);
    border-radius: 12px;
    padding: 28px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hall-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hall-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hall-hero__icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.hall-hero__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hall-hero__subtitle {
    font-size: 14px;
    font-weight: 400;
    margin: 4px 0 0 0;
    opacity: 0.85;
    line-height: 1.4;
}

.hall-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hall-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hall-chip--meta {
    background: rgba(255,255,255,0.08);
    font-weight: 400;
    opacity: 0.75;
}

.hall-chip__icon {
    font-size: 13px;
    line-height: 1;
}

.hall-hero__privacy-note {
    font-size: 12px;
    opacity: 0.7;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.hall-hero__rules-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hall-hero__rules-cta:hover,
.hall-hero__rules-cta:focus-visible {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}

.hall-hero__rules-cta:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* ── Loading Skeleton ── */
.hall-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.hall-skeleton-card {
    height: 120px;
    border-radius: 10px;
    background-color: #e8e0f0;
    background-image: linear-gradient(90deg, #e8e0f0 25%, #f0eaf5 50%, #e8e0f0 75%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.hall-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background-color: #e8e0f0;
    background-image: linear-gradient(90deg, #e8e0f0 25%, #f0eaf5 50%, #e8e0f0 75%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}

.hall-skeleton-line:nth-child(2) { width: 80%; }
.hall-skeleton-line:nth-child(3) { width: 60%; }

/* ── Empty / Ineligible States ── */
.hall-empty,
.hall-ineligible {
    text-align: center;
    padding: 40px 20px;
    background: #faf8ff;
    border-radius: 12px;
    border: 1px dashed #d4c8e8;
}

.hall-empty__icon,
.hall-ineligible__icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.hall-empty__copy,
.hall-ineligible__copy {
    font-size: 15px;
    color: #6b5b8a;
    margin: 0;
    line-height: 1.6;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Error / Degraded States ── */
.hall-error {
    text-align: center;
    padding: 32px 20px;
    background: #fff5f5;
    border-radius: 12px;
    border: 1px solid #fed7d7;
}

.hall-error__copy {
    font-size: 15px;
    color: #c53030;
    margin: 0 0 14px 0;
}

.hall-error__retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hall-error__retry:hover,
.hall-error__retry:focus-visible {
    background: #fff5f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(197,48,48,0.25);
}

.hall-degraded {
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fde68a;
    margin-bottom: 16px;
}

.hall-degraded__freshness {
    font-size: 11px;
    color: #92400e;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.hall-degraded__copy {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    opacity: 0.85;
}

/* ── Current Echo Record Cards ── */
.hall-records {
    margin-top: 24px;
}

.hall-records__heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.hall-records__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hall-record-card {
    background: #fff;
    border: 1px solid #ede8f5;
    border-radius: 12px;
    padding: 18px 20px;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hall-record-card:hover {
    border-color: #d4c8e8;
    box-shadow: 0 2px 12px rgba(107,70,193,0.08);
}

.hall-record-card__header {
    margin-bottom: 12px;
}

.hall-record-card__track {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.hall-record-card__artist {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.hall-record-card__holder {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hall-record-card__holder--private {
    background: #f7f4fc;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.hall-record-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ede8f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b46c1;
    font-weight: 600;
}

.hall-record-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.hall-record-card__private-label {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.hall-record-card__stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.hall-record-card__score,
.hall-record-card__hold {
    font-size: 13px;
    color: #6b46c1;
    font-weight: 500;
}

.hall-record-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Badge state variants — runtime adds data-hall-badge attribute */
.hall-record-card__badge[data-hall-badge="current"] {
    background: #e6ffed;
    color: #006633;
}

.hall-record-card__badge[data-hall-badge="shared"] {
    background: #e8f0fe;
    color: #1a56db;
}

.hall-record-card__badge[data-hall-badge="private-holder"] {
    background: #f3e8ff;
    color: #6b46c1;
}

.hall-record-card__badge[data-hall-badge="legacy"] {
    background: #f9f3e3;
    color: #8b6914;
}

.hall-record-card__badge[data-hall-badge="under-review"] {
    background: #fff3e0;
    color: #c45500;
}

.hall-record-card__context {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 10px 0;
}

.hall-record-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hall-record-card__detail-cta,
.hall-record-card__profile-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.hall-record-card__detail-cta {
    background: transparent;
    color: #6b46c1;
    border: 1px solid #d4c8e8;
}

.hall-record-card__detail-cta:hover,
.hall-record-card__detail-cta:focus-visible {
    background: #f7f4fc;
    border-color: #6b46c1;
    outline: none;
}

.hall-record-card__profile-cta {
    background: #6b46c1;
    color: #fff;
    border: 1px solid #6b46c1;
}

.hall-record-card__profile-cta:hover,
.hall-record-card__profile-cta:focus-visible {
    background: #5a3aab;
    outline: none;
}

/* ── Etched Entry Cards ── */
.hall-etched {
    margin-top: 28px;
}

.hall-etched__heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.hall-etched__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hall-etched-card {
    background: #faf8ff;
    border: 1px solid #ede8f5;
    border-radius: 10px;
    padding: 14px 18px;
    position: relative;
}

.hall-etched-card__header {
    margin-bottom: 8px;
}

.hall-etched-card__track {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.hall-etched-card__artist {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.hall-etched-card__holder {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hall-etched-card__holder--private {
    background: #f0ecf7;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.hall-etched-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ede8f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b46c1;
    font-weight: 600;
}

.hall-etched-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.hall-etched-card__private-label {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.hall-etched-card__meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #888;
}

.hall-etched-card__date,
.hall-etched-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hall-etched-card__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.hall-etched-card__badge[data-hall-badge="still-holding"] {
    background: #e6ffed;
    color: #006633;
}

.hall-etched-card__badge[data-hall-badge="dethroned"] {
    background: #f9f3e3;
    color: #8b6914;
}

.hall-etched-card__badge[data-hall-badge="shared"] {
    background: #e8f0fe;
    color: #1a56db;
}

.hall-etched-card__badge[data-hall-badge="corrected"] {
    background: #fff3e0;
    color: #c45500;
}

.hall-etched-card__badge[data-hall-badge="suppressed"] {
    background: #f5f5f5;
    color: #999;
}

/* ── Corrected State ── */
.hall-corrected {
    text-align: center;
    padding: 24px 20px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-top: 16px;
}

.hall-corrected__icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.hall-corrected__copy {
    font-size: 14px;
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
}

/* ── Under Review / Suppressed States ── */
.hall-under-review {
    text-align: center;
    padding: 28px 20px;
    background: #fff8f0;
    border-radius: 12px;
    border: 1px solid #fde68a;
    margin-top: 16px;
}

.hall-under-review__icon {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1;
}

.hall-under-review__copy {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

.hall-suppressed {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-top: 16px;
}

.hall-suppressed__copy {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ── Rules Drawer ── */
.hall-rules-drawer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hall-rules-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: opacity 0.25s ease;
}

.hall-rules-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hall-drawer-slide-up 0.3s ease-out;
}

.hall-rules-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-rules-drawer__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.hall-rules-drawer__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f4fc;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #6b46c1;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.hall-rules-drawer__close:hover,
.hall-rules-drawer__close:focus-visible {
    background: #ede8f5;
    outline: none;
}

.hall-rules-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.hall-rules-drawer__rules {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.hall-rules-drawer__footer {
    padding: 14px 20px;
    border-top: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-rules-drawer__privacy {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

@keyframes hall-drawer-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── Track Detail Panel ── */
.hall-track-detail {
    position: fixed;
    inset: 0;
    z-index: 9001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hall-track-detail__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: opacity 0.25s ease;
}

.hall-track-detail__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hall-drawer-slide-up 0.3s ease-out;
}

.hall-track-detail__header {
    padding: 18px 20px;
    border-bottom: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-track-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #6b46c1;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.hall-track-detail__back:hover,
.hall-track-detail__back:focus-visible {
    color: #5a3aab;
    outline: none;
}

.hall-track-detail__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.hall-track-detail__artist {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 2px;
}

.hall-track-detail__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.hall-track-detail__subheading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.hall-track-detail__standings,
.hall-track-detail__explanation,
.hall-track-detail__timeline,
.hall-track-detail__archive {
    margin-bottom: 24px;
}

.hall-track-detail__explanation p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.hall-track-detail__footer {
    padding: 14px 20px;
    border-top: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-track-detail__privacy {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ── Report CTA (hero) ── */
.hall-hero__report-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin-left: 8px;
}

.hall-hero__report-cta:hover,
.hall-hero__report-cta:focus-visible {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    outline: none;
}

.hall-hero__report-cta:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

/* ── Report CTA (record card) ── */
.hall-record-card__report-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: transparent;
    color: #999;
    border: 1px solid #e5e5e5;
}

.hall-record-card__report-cta:hover,
.hall-record-card__report-cta:focus-visible {
    color: #6b46c1;
    border-color: #d4c8e8;
    background: #faf8ff;
    outline: none;
}

/* ── Report CTA (etched card) ── */
.hall-etched-card__report-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: transparent;
    color: #aaa;
    border: 1px solid #e5e5e5;
    margin-top: 8px;
    display: inline-block;
}

.hall-etched-card__report-cta:hover,
.hall-etched-card__report-cta:focus-visible {
    color: #6b46c1;
    border-color: #d4c8e8;
    background: #faf8ff;
    outline: none;
}

/* ── Report CTA (track detail footer) ── */
.hall-track-detail__report-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #999;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 10px;
}

.hall-track-detail__report-cta:hover,
.hall-track-detail__report-cta:focus-visible {
    color: #6b46c1;
    border-color: #d4c8e8;
    background: #faf8ff;
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   Report Drawer (HOE.M7 packet C — UI shell / design only)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Report Drawer Container ── */
.hall-report-drawer {
    position: fixed;
    inset: 0;
    z-index: 9002;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hall-report-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: opacity 0.25s ease;
}

.hall-report-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hall-drawer-slide-up 0.3s ease-out;
}

.hall-report-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-report-drawer__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.hall-report-drawer__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f4fc;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #6b46c1;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.hall-report-drawer__close:hover,
.hall-report-drawer__close:focus-visible {
    background: #ede8f5;
    outline: none;
}

.hall-report-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.hall-report-drawer__footer {
    padding: 14px 20px;
    border-top: 1px solid #ede8f5;
    flex-shrink: 0;
}

.hall-report-drawer__privacy {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ── Report State: Auth Required ── */
.hall-report-auth {
    text-align: center;
    padding: 32px 16px;
}

.hall-report-auth__icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.hall-report-auth__copy {
    font-size: 15px;
    color: #555;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.hall-report-auth__signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6b46c1;
    color: #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hall-report-auth__signin:hover,
.hall-report-auth__signin:focus-visible {
    background: #5a3aab;
    outline: none;
    box-shadow: 0 0 0 2px rgba(107,70,193,0.3);
}

/* ── Report State: Unavailable ── */
.hall-report-unavailable {
    text-align: center;
    padding: 32px 16px;
}

.hall-report-unavailable__icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.hall-report-unavailable__copy {
    font-size: 15px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ── Report Form ── */
.hall-report-form__intro {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.hall-report-form__category-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hall-report-form__category-legend {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 0;
}

.hall-report-form__categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hall-report-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #ede8f5;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hall-report-category:hover {
    background: #faf8ff;
    border-color: #d4c8e8;
}

.hall-report-category:has(.hall-report-category__input:checked) {
    background: #f3ecff;
    border-color: #6b46c1;
}

.hall-report-category__input {
    width: 18px;
    height: 18px;
    accent-color: #6b46c1;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.hall-report-category__label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* ── Report Context (track info when reporting a specific record) ── */
.hall-report-form__context {
    background: #f7f4fc;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.hall-report-form__context-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 4px 0;
}

.hall-report-form__context-track {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.hall-report-form__context-artist {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

/* ── Report Details Textarea ── */
.hall-report-form__details {
    margin-bottom: 18px;
}

.hall-report-form__details-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.hall-report-form__optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.hall-report-form__details-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ede8f5;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.hall-report-form__details-textarea::placeholder {
    color: #bbb;
}

.hall-report-form__details-textarea:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107,70,193,0.12);
}

.hall-report-form__details-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

/* ── Report Validation ── */
.hall-report-form__validation {
    font-size: 13px;
    color: #c53030;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

/* ── Report Submit Button ── */
.hall-report-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #6b46c1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hall-report-form__submit:hover,
.hall-report-form__submit:focus-visible {
    background: #5a3aab;
    outline: none;
    box-shadow: 0 0 0 2px rgba(107,70,193,0.3);
}

.hall-report-form__submit:disabled {
    background: #c4b5e0;
    cursor: not-allowed;
}

/* ── Report State: Submitting ── */
.hall-report-submitting {
    text-align: center;
    padding: 40px 16px;
}

.hall-report-submitting__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ede8f5;
    border-top-color: #6b46c1;
    border-radius: 50%;
    animation: hall-report-spin 0.7s linear infinite;
    margin: 0 auto 16px auto;
}

.hall-report-submitting__copy {
    font-size: 15px;
    color: #555;
    margin: 0;
}

@keyframes hall-report-spin {
    to { transform: rotate(360deg); }
}

/* ── Report State: Submitted / Thanks ── */
.hall-report-thanks {
    text-align: center;
    padding: 36px 16px;
}

.hall-report-thanks__icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.hall-report-thanks__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.hall-report-thanks__copy {
    font-size: 14px;
    color: #555;
    margin: 0 0 22px 0;
    line-height: 1.6;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.hall-report-thanks__done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6b46c1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hall-report-thanks__done:hover,
.hall-report-thanks__done:focus-visible {
    background: #5a3aab;
    outline: none;
    box-shadow: 0 0 0 2px rgba(107,70,193,0.3);
}

/* ── Report State: Error ── */
.hall-report-error {
    text-align: center;
    padding: 32px 16px;
}

.hall-report-error__icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.hall-report-error__copy {
    font-size: 15px;
    color: #c53030;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.hall-report-error__retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hall-report-error__retry:hover,
.hall-report-error__retry:focus-visible {
    background: #fff5f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(197,48,48,0.25);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .hall-skeleton-card,
    .hall-skeleton-line {
        animation: none;
    }

    .hall-rules-drawer__panel,
    .hall-track-detail__panel,
    .hall-report-drawer__panel {
        animation: none;
    }

    .hall-report-submitting__spinner {
        animation: none;
        border-top-color: #6b46c1;
        border-right-color: #6b46c1;
    }

    .hall-record-card,
    .hall-hero__rules-cta,
    .hall-hero__report-cta,
    .hall-record-card__detail-cta,
    .hall-record-card__profile-cta,
    .hall-record-card__report-cta,
    .hall-etched-card__report-cta,
    .hall-track-detail__report-cta,
    .hall-rules-drawer__close,
    .hall-track-detail__back,
    .hall-report-drawer__close,
    .hall-report-category,
    .hall-report-form__details-textarea,
    .hall-report-form__submit,
    .hall-report-auth__signin,
    .hall-report-thanks__done,
    .hall-report-error__retry {
        transition: none;
    }
}

/* ── Responsive: Tablet (768px+) ── */
@media (min-width: 768px) {
    .hall-hero {
        padding: 36px 32px;
    }

    .hall-hero__title {
        font-size: 26px;
    }

    .hall-hero__subtitle {
        font-size: 15px;
    }

    .hall-records__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hall-etched__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hall-rules-drawer__panel {
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }

    .hall-track-detail__panel {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .hall-report-drawer__panel {
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }

    .hall-report-form__categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ── Responsive: Desktop (1024px+) ── */
@media (min-width: 1024px) {
    .hall-hero {
        padding: 40px 36px;
    }

    .hall-hero__title {
        font-size: 28px;
    }

    .hall-hero__chips {
        gap: 10px;
    }

    .hall-records__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hall-etched__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    /* Desktop: rules drawer opens as side panel from right */
    .hall-rules-drawer {
        align-items: stretch;
        justify-content: flex-end;
    }

    .hall-rules-drawer__panel {
        max-width: 420px;
        max-height: 100vh;
        border-radius: 0;
        animation: hall-drawer-slide-left 0.3s ease-out;
    }

    /* Desktop: track detail opens as side panel from right */
    .hall-track-detail {
        align-items: stretch;
        justify-content: flex-end;
    }

    .hall-track-detail__panel {
        max-width: 480px;
        max-height: 100vh;
        border-radius: 0;
        animation: hall-drawer-slide-left 0.3s ease-out;
    }

    /* Desktop: report drawer opens as side panel from right */
    .hall-report-drawer {
        align-items: stretch;
        justify-content: flex-end;
    }

    .hall-report-drawer__panel {
        max-width: 440px;
        max-height: 100vh;
        border-radius: 0;
        animation: hall-drawer-slide-left 0.3s ease-out;
    }
}

@keyframes hall-drawer-slide-left {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ── Responsive: Very small phones (≤360px) ── */
@media (max-width: 360px) {
    .hall-hero {
        padding: 20px 16px;
    }

    .hall-hero__title {
        font-size: 18px;
    }

    .hall-hero__icon {
        font-size: 26px;
    }

    .hall-chip {
        font-size: 11px;
        padding: 4px 8px;
    }

    .hall-record-card {
        padding: 14px 16px;
    }

    .hall-record-card__track {
        font-size: 15px;
    }

    .hall-etched-card {
        padding: 12px 14px;
    }

    .hall-report-drawer__panel {
        max-width: 100%;
    }

    .hall-report-form__categories {
        grid-template-columns: 1fr;
    }

    .hall-report-category {
        padding: 8px 12px;
    }

    .hall-report-category__label {
        font-size: 13px;
    }

    .hall-report-form__submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════
     VAD.M4 Packet E — Owner-only Venue Analytics CTA + lightweight cards
     Hidden by default; runtime shows only for confirmed owners.
     ═══════════════════════════════════════════════════════════════ */

.owner-analytics-section {
    margin-bottom: 40px;
    padding: 24px;
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.04) 0%, rgba(107, 70, 193, 0.08) 100%);
}

.owner-analytics-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.owner-analytics-header__icon {
    font-size: 24px;
    line-height: 1;
}

.owner-analytics-header__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.owner-analytics-header__subtitle {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0 0;
}

.owner-analytics-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.owner-analytics-card {
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(107, 70, 193, 0.12);
}

.owner-analytics-card__icon {
    font-size: 20px;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.owner-analytics-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
}

.owner-analytics-card__copy {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.owner-analytics-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    background-color: var(--color-purple, #6b46c1);
    color: var(--color-white, #fff);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.owner-analytics-cta:hover {
    opacity: 0.9;
}

.owner-analytics-cta:focus-visible {
    outline: 2px solid var(--color-purple, #6b46c1);
    outline-offset: 2px;
}

.owner-analytics-cta__icon {
    font-size: 16px;
    line-height: 1;
}

.owner-analytics-note {
    font-size: 12px;
    color: #999;
    margin: 12px 0 0 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .owner-analytics-cards {
        grid-template-columns: 1fr;
    }

    .owner-analytics-section {
        padding: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .owner-analytics-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRT.M4 Packet A — Public Ratings & Vibe Tag Cloud (dormant shell)
   Hidden by default; runtime hydration in later packets will toggle
   data-prt-state attributes and populate data-prt-field values.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Module Container ── */
.prt-module {
    margin-bottom: 40px;
    padding: 0;
}

/* ── Ratings Hero ── */
.prt-hero {
    background: linear-gradient(135deg, #5b3fa0 0%, #3d2b73 100%);
    border-radius: 12px;
    padding: 28px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.prt-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.prt-hero__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.prt-hero__icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.prt-hero__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.prt-hero__subtitle {
    font-size: 14px;
    font-weight: 400;
    margin: 4px 0 0 0;
    opacity: 0.85;
    line-height: 1.4;
}

/* ── Score Summary ── */
.prt-hero__score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.prt-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.prt-score-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* ── Meta Chips (Freshness + Response Bucket) ── */
.prt-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.prt-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.prt-meta-chip__icon {
    font-size: 13px;
    line-height: 1;
}

.prt-hero__privacy-note {
    font-size: 12px;
    opacity: 0.7;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

/* ── Methodology CTA ── */
.prt-hero__methodology-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.prt-hero__methodology-cta:hover,
.prt-hero__methodology-cta:focus-visible {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}

.prt-hero__methodology-cta:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* ── Vibe Tag Cloud ── */
.prt-tags {
    margin-top: 24px;
}

.prt-tags__heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px 0;
    color: #333;
}

.prt-tags__cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tag chip — runtime clones this template per tag */
.prt-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #f3ecff;
    color: #5b3fa0;
    border: 1px solid #e0d4f5;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.prt-tag-chip:hover {
    background: #ede4ff;
    border-color: #c9b8f0;
}

.prt-tag-chip--strong {
    background: #5b3fa0;
    color: #fff;
    border-color: #5b3fa0;
}

.prt-tag-chip--moderate {
    background: #e0d4f5;
    color: #3d2b73;
    border-color: #c9b8f0;
}

.prt-tag-chip--light {
    background: #f7f4fc;
    color: #7c6aad;
    border-color: #ede8f5;
}

/* ── Methodology Drawer ── */
.prt-methodology-drawer {
    position: fixed;
    inset: 0;
    z-index: 9003;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Fix: author display:flex overrode the hidden attribute's display:none,
   leaving the drawer hit-testable and keyboard-accessible while dormant.
   This rule restores hidden-attribute semantics so dormant = non-rendered. */
.prt-methodology-drawer[hidden] {
    display: none;
}

.prt-methodology-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: opacity 0.25s ease;
}

.prt-methodology-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: prt-drawer-slide-up 0.3s ease-out;
}

.prt-methodology-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ede8f5;
    flex-shrink: 0;
}

.prt-methodology-drawer__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.prt-methodology-drawer__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f4fc;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #5b3fa0;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.prt-methodology-drawer__close:hover,
.prt-methodology-drawer__close:focus-visible {
    background: #ede8f5;
    outline: none;
}

.prt-methodology-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.prt-methodology-drawer__copy {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 14px 0;
}

.prt-methodology-drawer__copy:last-child {
    margin-bottom: 0;
}

.prt-methodology-drawer__footer {
    padding: 14px 20px;
    border-top: 1px solid #ede8f5;
    flex-shrink: 0;
}

.prt-methodology-drawer__privacy {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

@keyframes prt-drawer-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── Loading Skeleton ── */
.prt-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.prt-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background-color: #e8e0f0;
    background-image: linear-gradient(90deg, #e8e0f0 25%, #f0eaf5 50%, #e8e0f0 75%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: prt-shimmer 1.5s infinite;
    margin-bottom: 6px;
}

.prt-skeleton-line:nth-child(2) { width: 80%; }
.prt-skeleton-line:nth-child(3) { width: 55%; }

@keyframes prt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Unavailable / Not Opted-In State ── */
.prt-unavailable {
    text-align: center;
    padding: 40px 20px;
    background: #faf8ff;
    border-radius: 12px;
    border: 1px dashed #d4c8e8;
}

.prt-unavailable__icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.prt-unavailable__copy {
    font-size: 15px;
    color: #6b5b8a;
    margin: 0;
    line-height: 1.6;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Insufficient Data State ── */
.prt-insufficient {
    text-align: center;
    padding: 40px 20px;
    background: #f9f8ff;
    border-radius: 12px;
    border: 1px dashed #d4c8e8;
}

.prt-insufficient__icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.prt-insufficient__copy {
    font-size: 15px;
    color: #6b5b8a;
    margin: 0;
    line-height: 1.6;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Error / Degraded States ── */
.prt-error {
    text-align: center;
    padding: 32px 20px;
    background: #fff5f5;
    border-radius: 12px;
    border: 1px solid #fed7d7;
}

.prt-error__copy {
    font-size: 15px;
    color: #c53030;
    margin: 0 0 14px 0;
}

.prt-error__retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.prt-error__retry:hover,
.prt-error__retry:focus-visible {
    background: #fff5f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(197,48,48,0.25);
}

.prt-degraded {
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fde68a;
    margin-bottom: 16px;
}

.prt-degraded__freshness {
    font-size: 11px;
    color: #92400e;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.prt-degraded__copy {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    opacity: 0.85;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .prt-skeleton-line {
        animation: none;
    }

    .prt-methodology-drawer__panel {
        animation: none;
    }

    .prt-hero__methodology-cta,
    .prt-methodology-drawer__close,
    .prt-error__retry,
    .prt-tag-chip {
        transition: none;
    }
}

/* ── Responsive: Tablet (768px+) ── */
@media (min-width: 768px) {
    .prt-hero {
        padding: 36px 32px;
    }

    .prt-hero__title {
        font-size: 26px;
    }

    .prt-hero__subtitle {
        font-size: 15px;
    }

    .prt-methodology-drawer__panel {
        border-radius: 16px 16px 0 0;
        max-height: 75vh;
    }
}

/* ── Responsive: Desktop (1024px+) ── */
@media (min-width: 1024px) {
    .prt-hero {
        padding: 40px 36px;
    }

    .prt-hero__title {
        font-size: 28px;
    }

    .prt-hero__meta {
        gap: 10px;
    }

    /* Desktop: methodology drawer opens as side panel from right */
    .prt-methodology-drawer {
        align-items: stretch;
        justify-content: flex-end;
    }

    .prt-methodology-drawer__panel {
        max-width: 420px;
        max-height: 100vh;
        border-radius: 0;
        animation: prt-drawer-slide-left 0.3s ease-out;
    }
}

@keyframes prt-drawer-slide-left {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ── Responsive: Very small phones (≤360px) ── */
@media (max-width: 360px) {
    .prt-hero {
        padding: 20px 16px;
    }

    .prt-hero__title {
        font-size: 18px;
    }

    .prt-hero__icon {
        font-size: 26px;
    }

    .prt-score-badge {
        min-width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .prt-meta-chip {
        font-size: 11px;
        padding: 4px 8px;
    }

    .prt-methodology-drawer__panel {
        max-width: 100%;
    }
}