﻿    .wdr-section {
        background: #FFFFFF;
        padding: 90px 0 90px;
        font-family: var(--body-font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    }

    /* ---------- Section Header ---------- */
    .wdr-header {
        text-align: center;
        margin-bottom: 32px;
    }

    .wdr-header h2 {
        font-family: var(--title-font-family);
        font-weight: 700;
        font-size: 30px;
        color: #303137;
        margin: 0 0 8px 0;
        letter-spacing: -0.5px;
    }

    .wdr-header p {
        font-size: 14px;
        color: #717171;
        margin: 0;
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.55;
    }

    .wdr-accent { color: #eb6753; }

    /* ---------- Controls bar ---------- */
    .wdr-controls {
        background: #fff;
        border-radius: 14px;
        padding: 16px 20px;
        box-shadow: 0px 2px 12px rgba(24, 26, 32, 0.06);
        margin-bottom: 22px;
        display: flex;
        flex-wrap: wrap;
        gap: 18px 28px;
        align-items: center;
        justify-content: space-between;
    }

    .wdr-control {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: #303137;
    }

    .wdr-control label {
        font-weight: 600;
        color: #717171;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    /* Range slider with embedded walk-time display */
    .wdr-range-wrap {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 240px;
    }

    .wdr-range-readout {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 12px;
        color: #888;
    }

    .wdr-range-readout-distance {
        font-weight: 700;
        font-family: var(--title-font-family);
        color: #eb6753;
        font-size: 14px;
    }

    .wdr-range-readout-time {
        color: #717171;
        font-weight: 500;
    }

    .wdr-range-readout-time strong {
        color: #303137;
        font-weight: 700;
    }

    .wdr-radius-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #2DBE7A 0%, #6BCB6E 15%, #F0B945 31%, #F08145 46%, #E84A4A 62%, #c44 100%);
        border-radius: 3px;
        outline: none;
    }

    .wdr-radius-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #eb6753;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(235, 103, 83, 0.35);
        transition: transform 0.15s ease;
    }

    .wdr-radius-slider::-webkit-slider-thumb:hover {
        transform: scale(1.15);
    }

    .wdr-radius-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #eb6753;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(235, 103, 83, 0.35);
    }

    /* Tick scale beneath slider */
    .wdr-range-ticks {
        display: flex;
        justify-content: space-between;
        font-size: 9.5px;
        color: #aaa;
        font-weight: 600;
        margin-top: 2px;
        padding: 0 2px;
    }

    .wdr-range-tick {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .wdr-range-tick span {
        display: block;
        line-height: 1;
    }

    .wdr-range-tick-time {
        color: #ccc;
        font-size: 8.5px;
        font-weight: 500;
    }

    .wdr-profile-buttons {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .wdr-profile-btn {
        background: #f4f4f4;
        border: 1.5px solid transparent;
        color: #303137;
        padding: 7px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .wdr-profile-btn:hover {
        background: #ececec;
    }

    .wdr-profile-btn.wdr-active {
        background: rgba(235, 103, 83, 0.1);
        color: #eb6753;
        border-color: #eb6753;
    }

    /* ---------- Main Layout ---------- */
    .wdr-grid {
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 24px;
        align-items: start;
    }

    @media (max-width: 991.98px) {
        .wdr-grid { grid-template-columns: 1fr; }
    }

    /* ---------- Score Card (Left) ---------- */
    .wdr-score-card {
        background: #ffffff;
        border-radius: 18px;
        padding: 28px 24px;
        box-shadow: 0px 4px 24px rgba(24, 26, 32, 0.08);
        text-align: center;
        position: sticky;
        top: 100px;
    }

    .wdr-score-label {
        font-family: var(--title-font-family);
        font-weight: 600;
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        margin-bottom: 14px;
    }

    .wdr-score-ring {
        position: relative;
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }

    .wdr-score-ring svg {
        transform: rotate(-90deg);
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .wdr-score-ring-bg {
        fill: none;
        stroke: #f0f0f0;
        stroke-width: 12;
    }

    .wdr-score-ring-progress {
        fill: none;
        stroke-width: 12;
        stroke-linecap: round;
        transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
    }

    .wdr-score-ring-content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .wdr-score-number {
        font-family: var(--title-font-family);
        font-weight: 700;
        font-size: 58px;
        line-height: 1;
        color: #303137;
        letter-spacing: -2px;
    }

    .wdr-score-outof {
        font-size: 12px;
        color: #999;
        margin-top: 4px;
        font-weight: 500;
        letter-spacing: 0.4px;
    }

    .wdr-score-rating {
        display: inline-block;
        padding: 9px 20px;
        border-radius: 30px;
        font-family: var(--title-font-family);
        font-weight: 700;
        font-size: 14px;
        color: #fff;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
        transition: background 0.5s ease;
    }

    .wdr-score-desc {
        font-size: 13px;
        color: #717171;
        line-height: 1.55;
        margin: 0;
    }

    .wdr-score-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, #ececec, transparent);
        margin: 22px 0 18px;
    }

    /* ---------- Stats grid ---------- */
    .wdr-score-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: left;
        margin-bottom: 14px;
    }

    .wdr-stat {
        background: #FAFAFA;
        border-radius: 10px;
        padding: 12px 14px;
        transition: background 0.2s ease;
    }

    .wdr-stat:hover {
        background: #F4F4F4;
    }

    .wdr-stat-value {
        font-family: var(--title-font-family);
        font-weight: 700;
        font-size: 20px;
        color: #303137;
        line-height: 1.1;
    }

    .wdr-stat-label {
        font-size: 10.5px;
        color: #999;
        margin-top: 3px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    /* ---------- Mini distance histogram ---------- */
    .wdr-histogram {
        background: #FAFAFA;
        border-radius: 12px;
        padding: 14px 16px;
        text-align: left;
        margin-top: 4px;
    }

    .wdr-histogram-title {
        font-size: 11px;
        color: #717171;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.6px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wdr-histogram-bars {
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 40px;
    }

    .wdr-hist-bar {
        flex: 1;
        background: #eb6753;
        border-radius: 3px 3px 0 0;
        min-height: 3px;
        transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
        cursor: pointer;
        opacity: 0.85;
        position: relative;
    }

    .wdr-hist-bar:hover { opacity: 1; }

    .wdr-hist-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 6px;
        font-size: 9.5px;
        color: #aaa;
        font-weight: 600;
    }

    /* ---------- Breakdown (Right) ---------- */
    .wdr-breakdown {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wdr-category {
        background: #ffffff;
        border-radius: 14px;
        padding: 18px 22px;
        box-shadow: 0px 2px 12px rgba(24, 26, 32, 0.05);
        cursor: pointer;
        transition: all 0.25s ease;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }

    .wdr-category::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 4px;
        background: var(--wdr-cat-colour, #ECECEC);
        transition: width 0.3s ease;
    }

    .wdr-category:hover {
        box-shadow: 0px 6px 24px rgba(24, 26, 32, 0.09);
        transform: translateY(-1px);
    }

    .wdr-category:hover::before {
        width: 6px;
    }

    .wdr-category.wdr-expanded {
        border-color: rgba(235, 103, 83, 0.2);
        background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
    }

    .wdr-cat-header {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .wdr-cat-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: rgba(235, 103, 83, 0.1);
        color: #eb6753;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .wdr-category:hover .wdr-cat-icon {
        transform: scale(1.05);
    }

    .wdr-cat-info {
        flex: 1;
        min-width: 0;
    }

    .wdr-cat-title {
        font-family: var(--title-font-family);
        font-weight: 600;
        font-size: 15px;
        color: #303137;
        margin: 0 0 4px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .wdr-cat-badges {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }

    .wdr-cat-badge {
        font-size: 10px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .wdr-cat-badge-weight {
        background: #F3F3F3;
        color: #717171;
    }

    .wdr-cat-badge-diversity {
        background: rgba(45, 190, 122, 0.12);
        color: #1d9c5e;
    }

    .wdr-cat-badge-gap {
        background: rgba(232, 74, 74, 0.1);
        color: #d63838;
    }

    .wdr-cat-summary {
        font-size: 12.5px;
        color: #888;
        margin: 0;
        line-height: 1.4;
    }

    .wdr-cat-summary strong {
        color: #303137;
        font-weight: 600;
    }

    .wdr-cat-score {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        flex-shrink: 0;
    }

    .wdr-cat-score-num {
        font-family: var(--title-font-family);
        font-weight: 700;
        font-size: 22px;
        color: #303137;
        line-height: 1;
    }

    .wdr-cat-score-bar {
        width: 90px;
        height: 6px;
        background: #f0f0f0;
        border-radius: 3px;
        overflow: hidden;
    }

    .wdr-cat-score-fill {
        height: 100%;
        border-radius: 3px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .wdr-cat-toggle {
        color: #ccc;
        font-size: 13px;
        transition: transform 0.3s ease, color 0.3s ease;
        margin-left: 6px;
    }

    .wdr-category.wdr-expanded .wdr-cat-toggle {
        transform: rotate(180deg);
        color: #eb6753;
    }

    /* ---------- Expanded place list ---------- */
    .wdr-places {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .wdr-category.wdr-expanded .wdr-places {
        max-height: 3000px;
    }

    .wdr-places-inner {
        padding-top: 18px;
        margin-top: 16px;
        border-top: 1px solid #F0F0F0;
    }

    .wdr-cat-insight {
        background: #FAFAFA;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        font-size: 12.5px;
        color: #555;
        line-height: 1.5;
        border-left: 3px solid var(--wdr-cat-colour, #eb6753);
    }

    .wdr-cat-insight i {
        color: var(--wdr-cat-colour, #eb6753);
        margin-right: 6px;
    }

    .wdr-type-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
    }

    .wdr-type-chip {
        background: #F4F4F4;
        color: #555;
        padding: 4px 10px;
        border-radius: 14px;
        font-size: 11px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .wdr-type-chip-count {
        background: #fff;
        color: #303137;
        padding: 1px 6px;
        border-radius: 8px;
        font-size: 10px;
    }

    .wdr-type-chip-missing {
        background: rgba(232, 74, 74, 0.06);
        color: #b53232;
        border: 1px dashed rgba(232, 74, 74, 0.3);
    }

    .wdr-place {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        gap: 12px;
        border-bottom: 1px solid #F7F7F7;
        transition: background 0.15s ease;
    }

    .wdr-place:last-child {
        border-bottom: none;
    }

    .wdr-place:hover {
        background: rgba(235, 103, 83, 0.02);
    }

    .wdr-place-left {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .wdr-place-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
    }

    .wdr-place-name {
        font-size: 13.5px;
        color: #303137;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wdr-place-type {
        font-size: 11px;
        color: #999;
        text-transform: capitalize;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
    }

    .wdr-place-type-importance {
        font-size: 9px;
        font-weight: 700;
        background: #F3F3F3;
        color: #717171;
        padding: 1px 5px;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .wdr-place-dist {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        flex-shrink: 0;
    }

    .wdr-place-meters {
        font-family: var(--title-font-family);
        font-weight: 600;
        font-size: 13px;
        color: #303137;
    }

    .wdr-place-walk {
        font-size: 11px;
        color: #999;
    }

    .wdr-show-more {
        text-align: center;
        margin-top: 10px;
        padding: 8px;
        font-size: 12px;
        color: #eb6753;
        font-weight: 600;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .wdr-show-more:hover {
        background: rgba(235, 103, 83, 0.06);
    }

    /* ---------- Tier colours ---------- */
    .wdr-tier-excellent { background: #2DBE7A; }
    .wdr-tier-great     { background: #6BCB6E; }
    .wdr-tier-good      { background: #F0B945; }
    .wdr-tier-fair      { background: #F08145; }
    .wdr-tier-poor      { background: #E84A4A; }

    /* ---------- Legend ---------- */
    .wdr-legend {
        background: #ffffff;
        border-radius: 12px;
        padding: 14px 20px;
        margin-top: 16px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 18px;
        font-size: 12px;
        color: #717171;
        box-shadow: 0px 2px 10px rgba(24, 26, 32, 0.05);
    }

    .wdr-legend-title {
        font-family: var(--title-font-family);
        font-weight: 700;
        color: #303137;
        margin-right: 4px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .wdr-legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .wdr-legend-swatch {
        width: 14px;
        height: 14px;
        border-radius: 4px;
    }

    /* ---------- Empty state ---------- */
    .wdr-empty {
        color: #BBB;
        font-size: 12px;
        font-style: italic;
        padding: 10px 0;
    }

    /* ---------- Tooltip ---------- */
    .wdr-tooltip {
        position: absolute;
        background: #303137;
        color: #fff;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.15s ease;
        z-index: 100;
        transform: translate(-50%, -125%);
    }

    .wdr-tooltip.wdr-visible {
        opacity: 1;
    }

    .wdr-tooltip::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        background: #303137;
    }
