:root {
  --epra-europe:    #F5B833;
  --epra-na:        #0A2F58;
  --epra-apac:      #5BA7E0;
  --epra-em:        #3FB8AF;
  --epra-grey:      #A8AEB8;
  --epra-grey-line: #B8BCC2;
  --epra-blue:      #0A4D8C;
  --epra-blue-dark: #073660;
  --bg:    #ffffff;
  --panel: #f7f8fa;
  --border:#e3e6eb;
  --text:  #0A4D8C;
  --muted: #5b6573;
}

.epra-tmt-app {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);

  & * { box-sizing: border-box; }

  /* === Map view layout === */
  /* Height is capped to the viewport (JS sets an inline px value via fitTmtHeight())
     so the sidebar/map fit on screen at once and only the country list scrolls
     internally; 78vh is just the pre-JS fallback. */
  & .epra-app { display:grid; grid-template-columns: 360px 1fr; grid-template-rows: auto minmax(0, 1fr); height: 78vh; min-height:480px; overflow: hidden; }
  & .epra-header { grid-column:1/-1; padding:14px 20px; border-bottom:1px solid var(--border); display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:16px; }
  & .epra-header > .title-block { justify-self: start; }
  & .epra-header > .epra-controls { justify-self: center; }
  & .epra-header > .back-block { justify-self: end; }
  & .epra-header h1 { margin:0; font-size:18px; font-weight:700; letter-spacing:0.2px; color: var(--epra-blue); }
  & .epra-header .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
  & .epra-controls { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  & .epra-controls label { font-size: 11px; color: var(--epra-blue); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
  & .epra-controls select { font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; background: white; min-width: 170px; cursor: pointer; color: var(--epra-blue); font-weight: 500; height: auto; }
  & .epra-controls select:focus { outline: 2px solid var(--epra-blue); outline-offset: 0; border-color: var(--epra-blue); }
  & .epra-sidebar { border-right: 1px solid var(--border); padding: 0; background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
  & .epra-sidebar h2 { padding: 16px 16px 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 8px 0; font-weight: 600; }
  & #epra-list { padding: 0 16px 8px 16px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
  & #epra-detail { margin: 0 12px 12px 12px; flex: 0 0 auto; max-height: 45%; overflow-y: auto; }
  & .country-line { display:grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap:8px; padding:6px 8px; border-radius:4px; cursor:pointer; font-size:13px; align-items:center; }
  & .country-line > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .country-line:hover { background: rgba(10,77,140,0.08); }
  & .country-line.active { background: var(--epra-blue); color: white; }
  & .country-line .v { color: var(--epra-blue); font-variant-numeric: tabular-nums; text-align: right; }
  & .country-line .pct, & .region-line .pct { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 11px; }
  & .country-line.active .pct, & .region-line.active .pct { color: rgba(255,255,255,0.85); }
  & .country-line.active .v { color: rgba(255,255,255,0.9); }
  & .region-line { display:grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap:8px; padding:7px 8px; border-radius:4px; cursor:pointer; font-size:13px; font-weight: 400; align-items: center; }
  & .region-line > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .region-line:hover { background: rgba(10,77,140,0.08); }
  & .region-line.active { background: var(--epra-blue); color: white; }
  & .region-line .v { font-variant-numeric: tabular-nums; }
  & .region-line.active .v { color: rgba(255,255,255,0.95); }
  & .sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 8px 4px; }
  & .epra-detail { margin-top:14px; padding:12px; background:white; border:1px solid var(--border); border-radius:6px; font-size:13px; }
  & .epra-detail h3 { margin:0 0 8px 0; font-size:15px; color: var(--epra-blue); }
  & .epra-detail .row { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px dashed var(--border); }
  & .epra-detail .row:last-child { border:none; }
  & .epra-detail .row .lbl { color: var(--muted); }
  & .epra-detail .row .val { font-variant-numeric: tabular-nums; font-weight: 500; }
  & .region-back { background: var(--epra-blue); color: white; border: none; padding: 7px 14px; border-radius: 5px; font-size: 12px; cursor: pointer; font-weight: 600; }
  & .region-back:hover { background: var(--epra-blue-dark); }
  & .region-back[hidden] { display: none; }

  /* Map container */
  /* No min-height here: it must be free to shrink to whatever the row actually
     has (bounded by .epra-app's own min-height:480px), otherwise a floor taller
     than the available row forces the map to overflow and get clipped. */
  & #epra-map { width: 100%; height: 100%; background: #ffffff; }
  & .leaflet-container { background: #ffffff !important; }

  /* Region legend chips */
  & .region-chips {
    position: absolute; top: 12px; left: 12px; z-index: 1000;
    display: flex; gap: 8px; flex-wrap: wrap;
    background: white; padding: 8px 10px; border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    font-size: 11px;
  }
  & .region-chip { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 12px; font-weight: 600; cursor: pointer; user-select: none; }
  & .region-chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  & .region-chip:hover { background: rgba(10,77,140,0.05); }
  & .region-chip.active { background: var(--epra-blue); color: white; }

  /* Floating labels */
  & .region-label, & .country-label {
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 white, 0 -1px 0 white, 1px 0 0 white, -1px 0 0 white,
                 0 2px 4px rgba(255,255,255,0.7);
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
  }
  & .region-label  { font-size: 13px; letter-spacing: 0.6px; }
  & .country-label { font-size: 11px; }

  /* Bubbles */
  & .country-bubble {
    border-radius: 50%;
    color: white;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-variant-numeric: tabular-nums;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  }
  & .country-bubble:hover { transform: scale(1.08); box-shadow: 0 3px 12px rgba(0,0,0,0.4); z-index: 1000; }
  & .country-bubble.region { border: none; font-size: 14px; }

  & .epra-tooltip { font-size: 12px; line-height: 1.45; }
  & .epra-tooltip .ttl { font-weight: 600; margin-bottom: 4px; color: var(--epra-blue); }
  & .epra-tooltip .met { color: var(--muted); }
  & .epra-tooltip strong { color: var(--text); }
  & .epra-loading { padding: 40px; text-align: center; color: var(--muted); }

  /* === Tab navigation === */
  & .epra-tabs {
    display: flex;
    background: transparent;
    border-bottom: 1px solid #ddd;
    padding: 0;
    align-items: flex-end;
    margin-top: 4px;
  }
  & .epra-tab {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    margin-bottom: -1px;
    position: relative;
  }
  & .epra-tab:hover { color: var(--epra-blue); background: #f7f8fa; border-color: #e8e8e8 #e8e8e8 transparent; }
  & .epra-tab.active { color: var(--epra-blue); font-weight: 600; background: #fff; border-color: #ddd #ddd transparent; border-top: 2px solid var(--epra-blue); }

  /* Root container */
  & .epra-root { display: flex; flex-direction: column; }
  & .epra-root .epra-app, & .epra-root .epra-timeseries-app { flex: 1 1 auto; min-height: 0; }
  & .epra-root .hidden { display: none !important; }

  /* === Time series view === */
  /* Same viewport-capped height as .epra-app; JS sets the inline px value. */
  & .epra-timeseries-app { display: flex; flex-direction: column; height: 78vh; min-height: 480px; background: white; overflow: hidden; }
  & .ts-header { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  & .ts-title h1 { margin: 0; font-size: 18px; font-weight: 700; color: var(--epra-blue); }
  & .ts-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
  & .ts-controls { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
  & .ts-ctrl { display: flex; flex-direction: column; gap: 4px; }
  & .ts-ctrl > label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--epra-blue); font-weight: 700; }
  & .ts-ctrl select { font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--epra-blue); font-weight: 500; min-width: 160px; cursor: pointer; height: auto; }
  & .ts-ctrl select[multiple] { min-width: 220px; min-height: 80px; padding: 4px 6px; }
  & .ts-ctrl select:focus { outline: 2px solid var(--epra-blue); border-color: var(--epra-blue); }
  & .ts-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
  & .ts-toggle button { border: none; background: white; padding: 6px 14px; cursor: pointer; color: var(--epra-blue); font-weight: 600; font-size: 12px; }
  & .ts-toggle button.active { background: var(--epra-blue); color: white; }
  & .ts-toggle button + button { border-left: 1px solid var(--border); }
  & .ts-main3 { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 0; }
  & .ts-center { padding: 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  & .ts-side { background: var(--panel); padding: 14px 14px; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
  & .ts-side-left  { border-right: 1px solid var(--border); }
  & .ts-side-right { border-left:  1px solid var(--border); }
  & .ts-side h4 { margin: 0 0 8px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--epra-blue); font-weight: 700; }
  & .ts-side .ts-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  & .ts-opt { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; user-select: none; line-height: 1.2; }
  & .ts-opt:hover { background: rgba(10,77,140,0.07); }
  & .ts-opt input[type=checkbox] { accent-color: var(--epra-blue); cursor: pointer; }
  & .ts-opt .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  & #ts-country-search { width: 100%; box-sizing: border-box; margin-bottom: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--text); background: white; outline: none; }
  & #ts-country-search:focus { border-color: var(--epra-blue); }
  & .ts-mini-tog { display: inline-flex; margin-left: 8px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
  & .ts-mini-tog button { border: none; background: white; padding: 3px 9px; font-size: 11px; color: var(--epra-blue); cursor: pointer; font-weight: 700; line-height: 1; }
  & .ts-mini-tog button:hover { background: rgba(10,77,140,0.07); }
  & .ts-mini-tog button.active { background: var(--epra-blue); color: white; }
  & .ts-mini-tog button + button { border-left: 1px solid var(--border); }
  & .ts-metric-hint { font-size: 10px; color: var(--muted); margin: 0 6px 6px 6px; font-style: italic; }
  & .ctrl-reset { background: white; border: 1px solid var(--border); color: var(--epra-blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 6px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
  & .ctrl-reset:hover { background: var(--epra-blue); color: white; }
  & .ctrl-reset.active { background: var(--epra-blue); color: white; }
  & .ts-controls > .ctrl-reset { align-self: flex-end; }
  & .ts-reset { background: white; border: 1px solid var(--border); color: var(--epra-blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 6px 12px; border-radius: 4px; cursor: pointer; align-self: flex-end; margin-left: auto; }
  & .ts-reset:hover { background: var(--epra-blue); color: white; }
  & .ts-reset.active { background: var(--epra-blue); color: white; }
  & .ts-labelctrl { margin-left: auto; }
  & .ts-label-selects { display: flex; gap: 8px; }
  & .ts-labelctrl select { min-width: 130px; height: auto; }
  /* Fills whatever's left in .ts-center below the legends, instead of a fixed
     480px, so the chart never overflows into an internal scrollbar. */
  & .ts-chart-wrap { flex: 1 1 auto; min-height: 260px; position: relative; background: white; min-width: 0; padding: 0; }
  & .ts-chart-wrap canvas { width: 100% !important; height: 100% !important; display: block; }
  & .ts-empty { color: var(--muted); text-align: center; padding: 80px 20px; font-size: 13px; }
  & .ts-legends { display: flex; flex-direction: row; justify-content: center; gap: 60px; padding-top: 12px; padding-bottom: 8px; }
  & .ts-legend-block { min-width: 180px; font-size: 12px; }
  & .ts-legend-block h4 { margin: 0 0 8px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--epra-blue); font-weight: 700; }
  & .ts-leg-item { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text); }
  & .ts-leg-item .swatch { width: 24px; height: 3px; border-radius: 1px; flex-shrink: 0; background: #5b6573; }
  & .ts-leg-item .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

  /* === Dashboard view === */
  & .epra-dash-app { background: #f4f6fa; overflow-y: auto; padding: 0 0 32px 0; flex: 1 1 auto; min-height: 0; }
  & .epra-dash-app.hidden { display: none !important; }
  & .dw { max-width: 1280px; margin: 0 auto; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
  & .dhero { background: linear-gradient(135deg, var(--epra-blue) 0%, #073660 100%); color: white; border-radius: 12px; padding: 24px 28px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 24px; align-items: center; box-shadow: 0 4px 14px rgba(10,77,140,0.18); }
  & .dhero .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.75); font-weight: 600; }
  & .dhero .big { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; margin: 4px 0 8px 0; line-height: 1.05; }
  & .dhero .ds { display: flex; gap: 22px; flex-wrap: wrap; }
  & .dhero .d { font-size: 13px; }
  & .dhero .d .l { color: rgba(255,255,255,0.75); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; }
  & .dhero .d .v { font-weight: 700; font-size: 16px; }
  & .dhero .d .v.up { color: #5BE5A0; }
  & .dhero .d .v.down { color: #FF9A8C; }
  & .dhero .d .v.flat { color: rgba(255,255,255,0.7); }
  & .dhero canvas { width: 100% !important; height: 90px !important; }
  & .dkpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
  & .dkpi { background: white; border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(10,77,140,0.06); border-top: 4px solid var(--epra-blue); display: flex; flex-direction: column; gap: 6px; }
  & .dkpi.europe { border-top-color: #F5B833; display: flex; }
  & .dcard.europe { display: block; }
  & .dkpi.na { border-top-color: #0A2F58; }
  & .dkpi.apac { border-top-color: #5BA7E0; }
  & .dkpi.em { border-top-color: #3FB8AF; }
  & .dkpi .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; }
  & .dkpi .fig { font-size: 24px; font-weight: 700; color: var(--epra-blue); letter-spacing: -0.3px; }
  & .dkpi .sub { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
  & .dkpi .sub strong { color: var(--text); }
  & .dkpi canvas { width: 100% !important; height: 38px !important; margin-top: 4px; }
  & .drow2 { display: grid; grid-template-columns: minmax(0, 3fr) calc((100% - 3 * 16px) / 4); gap: 16px; }
  & .drow2-top { align-items: start; }
  & .dcard { background: white; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(10,77,140,0.06); }
  & .dcard h2 { margin: 0 0 12px 0; font-size: 12px; color: var(--epra-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
  & .dcard .sub { font-size: 11px; color: var(--muted); margin-top: -8px; margin-bottom: 12px; }
  & .dmovers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  & .dmovers-col { padding: 0 10px; }
  & .dmovers-col:first-child { padding-left: 0; border-right: 1px solid var(--border); }
  & .dmovers-col:last-child { padding-right: 0; }
  & .dmovers-col h3 { margin: 0 0 6px 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; }
  & .drow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
  & .drow:last-child { border-bottom: none; }
  & .drow .name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .drow .val { color: var(--muted); font-variant-numeric: tabular-nums; }
  & .drow .pct { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
  & .drow .pct.up { color: #1E7A3A; }
  & .drow .pct.down { color: #B5302A; }
  & .ddonut .wrap-rel { position: relative; }
  & .ddonut canvas { width: 100% !important; height: 160px !important; }
  & .ddonut .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); text-align: center; pointer-events: none; }
  & .ddonut .center .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 700; }
  & .ddonut .center .v { font-size: 20px; font-weight: 700; color: var(--epra-blue); }
  & .ddonut .leg { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 12px; }
  & .ddonut .leg .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
  & #d-league, & #d-league-reit { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; align-items: start; }
  & .dlabel { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 6px; }
  & .dlcol { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
  & .dlcol-hdr { padding: 8px 10px 7px; border-bottom: 1px solid var(--border); }
  & .dlcol-hdr .reg-name { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
  & .dlcol-hdr .reg-total { display: block; font-size: 13px; font-weight: 700; color: var(--epra-blue); font-variant-numeric: tabular-nums; margin-top: 1px; }
  & .dlrow { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 4px; align-items: start; padding: 5px 10px; border-bottom: 1px dashed var(--border); }
  & .dlrow:last-child { border-bottom: none; }
  & .dlrow .rank { font-size: 10px; color: var(--muted); font-weight: 700; padding-top: 1px; }
  & .dlrow .name-wrap .name { display: block; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .dlrow .name-wrap .bar { height: 3px; background: rgba(10,77,140,0.06); border-radius: 2px; margin-top: 3px; overflow: hidden; }
  & .dlrow .name-wrap .bar > span { display: block; height: 100%; border-radius: 2px; }
  & .dlrow .nums { text-align: right; }
  & .dlrow .nums .val { display: block; font-size: 11px; font-weight: 700; color: var(--epra-blue); font-variant-numeric: tabular-nums; }
  & .dlrow .nums .pct { display: block; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
  & .dqoq { display: flex; flex-direction: column; }
  & .dqoq-rows { margin-top: 6px; flex: 1; display: flex; flex-direction: column; }
  & .dqoq-row { flex: 1 1 0; display: grid; grid-template-columns: 92px minmax(0,1fr) 62px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
  & .dqoq-row:last-child { border-bottom: none; }
  & .dqoq-name { display: flex; align-items: center; gap: 7px; color: var(--text); }
  & .dqoq-name .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  & .dqoq-track { position: relative; height: 14px; background: rgba(10,77,140,0.06); border-radius: 7px; }
  & .dqoq-track .zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #cdd6e0; }
  & .dqoq-track .fill { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; }
  & .dqoq-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  & .dqoq-val.up { color: #1E7A3A; }
  & .dqoq-val.down { color: #B5302A; }
  & .dqoq-val.flat { color: var(--muted); }
  & .dfoot { color: var(--muted); font-size: 11px; line-height: 1.5; padding: 12px 4px 0 4px; border-top: 1px solid var(--border); }
  & .dfoot strong { color: var(--text); }

  /* === Download view === */
  & .epra-dl-app { background: #f4f6fa; overflow-y: auto; padding: 32px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  & .epra-dl-app.hidden { display: none !important; }
  & .dl-wrap { max-width: 860px; margin: 0 auto; width: 100%; }
  & .dl-card { background: white; border-radius: 10px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(10,77,140,0.06); }
  & .dl-card h2 { margin: 0 0 6px; font-size: 14px; color: var(--epra-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
  & .dl-card > p { margin: 0 0 24px; font-size: 13px; color: var(--muted); line-height: 1.6; }
  & .dl-section { margin-bottom: 22px; }
  & .dl-section:last-of-type { margin-bottom: 0; }
  & .dl-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 10px; }
  & .dl-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; }
  & .dl-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; padding: 5px 0; }
  & .dl-check input { accent-color: var(--epra-blue); width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }
  & .dl-check .unit { font-size: 11px; color: var(--muted); }
  & .dl-periods { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  & .dl-periods > div { display: flex; align-items: center; gap: 8px; }
  & .dl-periods label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
  & .dl-periods select { font-size: 13px; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--text); background: white; height: auto; }
  & .dl-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  & .dl-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--epra-blue); color: white; border: none; border-radius: 8px; padding: 11px 22px; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; }
  & .dl-btn:hover { background: #0f3c6a; color: white; }
  & .dl-note { font-size: 11px; color: var(--muted); line-height: 1.5; }

  /* === Disclaimer view === */
  & .epra-disc-app { background: #f4f6fa; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
  & .epra-disc-app.hidden { display: none !important; }
  & .disc-wrap { max-width: 860px; margin: 0 auto; padding: 40px 32px 56px; }
  & .disc-card { background: white; border-radius: 10px; padding: 36px 40px; box-shadow: 0 1px 4px rgba(10,77,140,0.07); }
  & .disc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #F5B833; margin-bottom: 8px; }
  & .disc-title { font-size: 18px; font-weight: 700; color: var(--epra-blue); margin: 0 0 20px; }
  & .disc-body { font-size: 13px; color: #444; line-height: 1.85; }

  /* === Methodology view === */
  & .epra-meth-app { background: #f4f6fa; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
  & .epra-meth-app.hidden { display: none !important; }
  & .meth-wrap { max-width: 860px; margin: 0 auto; padding: 0 0 56px; }
  & .epra-page-intro-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
  & .epra-page-intro-title { font-size: 19px; font-weight: 700; color: var(--epra-blue); margin: 0; line-height: 1.25; }
  & .epra-page-intro-sub { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
  & .meth-card { background: white; margin: 24px 32px 0; border-radius: 10px; padding: 32px 36px; box-shadow: 0 1px 4px rgba(10,77,140,0.07); }
  & .meth-card + .meth-card { margin-top: 16px; }
  & .meth-num { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #F5B833; text-transform: uppercase; margin-bottom: 5px; }
  & .meth-h2 { font-size: 16px; font-weight: 700; color: var(--epra-blue); margin: 0 0 16px; }
  & .meth-card p { font-size: 13px; color: #444; line-height: 1.8; margin: 0 0 12px; }
  & .meth-card p:last-child { margin-bottom: 0; }
  & .meth-inset { background: #f8fafc; border-left: 3px solid var(--epra-blue); border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
  & .meth-bullet { display: flex; gap: 10px; font-size: 13px; color: #444; line-height: 1.6; }
  & .meth-bullet-icon { color: var(--epra-blue); font-size: 9px; padding-top: 4px; flex-shrink: 0; }
  & .meth-h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 22px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
  & .meth-formulas { background: #f8fafc; border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
  & .meth-formula-row { display: flex; align-items: baseline; gap: 20px; }
  & .meth-flabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); width: 150px; flex-shrink: 0; }
  & .meth-formula { font-size: 14px; color: var(--epra-blue); font-weight: 600; }
  & .meth-defs { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 2px; }
  & .meth-defs tr { border-bottom: 1px dashed var(--border); }
  & .meth-defs tr:last-child { border-bottom: none; }
  & .meth-defs td:first-child { color: var(--epra-blue); font-weight: 700; padding: 8px 20px 8px 0; white-space: nowrap; vertical-align: top; }
  & .meth-defs td:last-child { color: #444; padding: 8px 0; line-height: 1.6; }
  & .meth-callout { background: #fffcf0; border: 1px solid #e8d870; border-radius: 7px; padding: 13px 16px; font-size: 12.5px; color: #555; line-height: 1.7; margin-top: 18px; }
  & .meth-list { margin: 8px 0 14px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
  & .meth-list li { font-size: 13px; color: #444; line-height: 1.7; padding-left: 16px; position: relative; }
  & .meth-list li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
  & .meth-sources { margin: 16px 32px 0; font-size: 11.5px; color: var(--muted); padding: 14px 0 0; border-top: 1px solid var(--border); }
  & .meth-sources strong { color: var(--text); }

  /* === Responsive === */
  @media (max-width: 1100px) {
    & .epra-header { grid-template-columns: 1fr; }
    & .epra-header > .epra-controls, & .epra-header > .back-block { justify-self: stretch; }
  }
  @media (max-width: 1000px) {
    & .ts-main { grid-template-columns: 1fr; }
  }
  @media (max-width: 980px) {
    & .dkpis { grid-template-columns: repeat(2,1fr); }
    & .drow2 { grid-template-columns: 1fr; }
    & .dmovers { grid-template-columns: 1fr; }
    & .dhero { grid-template-columns: 1fr; }
  }
  @media (max-width: 800px) {
    /* Below this width the viewport-fit behaviour is dropped (see fitTmtHeight()
       in tmt.js) in favour of the existing stacked, naturally-scrolling layout. */
    & .epra-app { height: auto; overflow: visible; grid-template-columns: 1fr; grid-template-rows: auto auto 60vh; }
    & .epra-sidebar { border-right: none; border-bottom: 1px solid var(--border); max-height: 30vh; }
    & .epra-controls select { min-width: 130px; }
    & .epra-timeseries-app { height: auto; overflow: visible; }
  }
}
