:root {
  --accent: #5b47fb;
  --accent-strong: #4935e8;
  --accent-text: #4b39e7;
  --accent-soft: rgb(91 71 251 / 0.1);
  --on-accent: #f8f7ff;
  --page: #f4f5f7;
  --surface: #fbfbfc;
  --surface-raised: #fdfdfe;
  --surface-muted: #eef0f3;
  --text: #17191f;
  --text-soft: #454a55;
  --meta: #626977;
  --border: #d5d9e0;
  --border-strong: #b8bec9;
  --positive: #137a55;
  --positive-soft: #e5f4ed;
  --negative: #b33d45;
  --negative-soft: #f8e7e9;
  --warning: #8d5d13;
  --warning-soft: #fff4dc;
  --chart-pmindi-dkk: #1f66b3;
  --chart-spx: #0b7285;
  --chart-qqqe: #ad5a06;
  --country-color-1: hsl(252 66% 36%);
  --country-color-2: hsl(30 66% 36%);
  --country-color-3: hsl(167 66% 36%);
  --country-color-4: hsl(305 66% 36%);
  --country-color-5: hsl(82 66% 36%);
  --country-color-6: hsl(220 66% 36%);
  --country-color-7: hsl(357 66% 36%);
  --country-color-8: hsl(135 66% 36%);
  --country-color-9: hsl(272 66% 36%);
  --country-color-10: hsl(50 66% 36%);
  --country-color-11: hsl(187 66% 36%);
  --country-color-12: hsl(325 66% 36%);
  --country-color-13: hsl(102 66% 36%);
  --country-color-14: hsl(240 66% 36%);
  --country-color-15: hsl(17 66% 36%);
  --country-color-16: hsl(155 66% 36%);
  --country-color-17: hsl(292 66% 36%);
  --country-color-18: hsl(70 66% 36%);
  --country-color-19: hsl(207 66% 36%);
  --country-color-20: hsl(345 66% 36%);
  --country-color-21: hsl(122 66% 36%);
  --country-color-22: hsl(260 66% 36%);
  --country-color-23: hsl(37 66% 36%);
  --country-color-24: hsl(175 66% 36%);
  --country-color-25: hsl(312 66% 36%);
  --country-color-26: hsl(5 66% 36%);
  --country-color-27: hsl(60 66% 36%);
  --country-color-28: hsl(115 66% 36%);
  --country-color-29: hsl(145 66% 36%);
  --country-color-30: hsl(195 66% 36%);
  --country-color-31: hsl(230 66% 36%);
  --country-color-32: hsl(280 66% 36%);
  --header: rgb(251 251 252 / 0.97);
  --shadow: 0 12px 32px rgb(28 31 39 / 0.08);
  --radius-surface: 12px;
  --radius-control: 9px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  font-family: var(--font-sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5b47fb;
    --accent-strong: #725fff;
    --accent-text: #bdb6ff;
    --accent-soft: rgb(91 71 251 / 0.18);
    --on-accent: #f8f7ff;
    --page: #121419;
    --surface: #181b21;
    --surface-raised: #1e2229;
    --surface-muted: #242830;
    --text: #f0f1f3;
    --text-soft: #c5c9d0;
    --meta: #a7adb8;
    --border: #343943;
    --border-strong: #4b5260;
    --positive: #5fc49a;
    --positive-soft: #17382c;
    --negative: #ed8389;
    --negative-soft: #3b2025;
    --warning: #dfb267;
    --warning-soft: #362b18;
    --chart-pmindi-dkk: #79b6f2;
    --chart-spx: #65c8d8;
    --chart-qqqe: #f2b45f;
    --country-color-1: hsl(252 70% 68%);
    --country-color-2: hsl(30 70% 68%);
    --country-color-3: hsl(167 70% 68%);
    --country-color-4: hsl(305 70% 68%);
    --country-color-5: hsl(82 70% 68%);
    --country-color-6: hsl(220 70% 68%);
    --country-color-7: hsl(357 70% 68%);
    --country-color-8: hsl(135 70% 68%);
    --country-color-9: hsl(272 70% 68%);
    --country-color-10: hsl(50 70% 68%);
    --country-color-11: hsl(187 70% 68%);
    --country-color-12: hsl(325 70% 68%);
    --country-color-13: hsl(102 70% 68%);
    --country-color-14: hsl(240 70% 68%);
    --country-color-15: hsl(17 70% 68%);
    --country-color-16: hsl(155 70% 68%);
    --country-color-17: hsl(292 70% 68%);
    --country-color-18: hsl(70 70% 68%);
    --country-color-19: hsl(207 70% 68%);
    --country-color-20: hsl(345 70% 68%);
    --country-color-21: hsl(122 70% 68%);
    --country-color-22: hsl(260 70% 68%);
    --country-color-23: hsl(37 70% 68%);
    --country-color-24: hsl(175 70% 68%);
    --country-color-25: hsl(312 70% 68%);
    --country-color-26: hsl(5 70% 68%);
    --country-color-27: hsl(60 70% 68%);
    --country-color-28: hsl(115 70% 68%);
    --country-color-29: hsl(145 70% 68%);
    --country-color-30: hsl(195 70% 68%);
    --country-color-31: hsl(230 70% 68%);
    --country-color-32: hsl(280 70% 68%);
    --header: rgb(24 27 33 / 0.97);
    --shadow: 0 16px 36px rgb(0 0 0 / 0.24);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--page);
  scroll-padding-block-start: 92px;
}

body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

:where(button, input, select, summary) {
  font: inherit;
}

button,
input,
select,
summary {
  min-height: 44px;
}

button,
summary {
  touch-action: manipulation;
}

.close-workspace-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.account-note {
  margin-top: 0.55rem;
  color: var(--meta);
  font-size: 0.82rem;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

p {
  color: var(--text-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1000;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1440px);
  min-height: 72px;
  margin-inline: auto;
  padding: 10px 24px;
}

.brand-lockup,
.header-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.brand-name,
.brand-context {
  margin: 0;
  white-space: nowrap;
}

.brand-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-context {
  margin-top: 2px;
  color: var(--meta);
  font-size: 13px;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.data-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.header-as-of {
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.logout-form {
  margin: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  padding: 9px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.primary-button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.primary-button:active,
.secondary-button:active,
.exposure-button:active,
.sort-button:active {
  transform: translateY(1px);
}

.workspace {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 28px 24px 52px;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.8fr);
  gap: 32px;
  align-items: end;
  padding: 12px 0 28px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 750;
  letter-spacing: -0.048em;
  line-height: 1.04;
}

.page-summary {
  max-width: 68ch;
  margin: 14px 0 0;
  font-size: 17px;
}

.snapshot-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.snapshot-meta > div {
  min-width: 0;
  padding: 12px 14px;
}

.snapshot-meta > div + div {
  border-inline-start: 1px solid var(--border);
}

.snapshot-meta dt {
  color: var(--meta);
  font-size: 12px;
  font-weight: 680;
}

.snapshot-meta dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.state-copy {
  max-width: 56ch;
}

.state-copy h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.state-copy p {
  margin: 8px 0 0;
}

.error-state {
  border-color: var(--negative);
  background: var(--negative-soft);
}

.empty-state {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 10px;
  width: min(100%, 600px);
}

.skeleton-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
}

.skeleton-kpi {
  min-height: 88px;
}

.skeleton-table {
  grid-column: 1 / -1;
  min-height: 110px;
}

.app-content {
  display: grid;
  gap: 20px;
}

.workspace-section {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.section-heading,
.panel-heading,
.table-status-row,
.compare-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.panel-heading h3 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading p,
.panel-heading p {
  margin: 6px 0 0;
  font-size: 14px;
}

.coverage-note,
#balances-count {
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

#summary-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.position-statistics-stack {
  display: grid;
  gap: 16px;
  margin: 16px 0 20px;
}

.position-statistics-group {
  display: grid;
  gap: 8px;
}

.position-statistics-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.position-statistics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-item {
  min-width: 0;
  padding: 16px;
}

.kpi-item + .kpi-item {
  border-inline-start: 1px solid var(--border);
}

.kpi-label,
.kpi-detail,
.kpi-value {
  margin: 0;
}

.kpi-label {
  color: var(--meta);
  font-size: 12px;
  font-weight: 680;
}

.kpi-value {
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.2vw, 29px);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
}

.kpi-detail {
  margin-top: 7px;
  color: var(--meta);
  font-size: 11px;
  line-height: 1.35;
}

.data-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.panel-heading {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.panel-heading h3 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.018em;
}

.regional-domicile-panel,
.currency-context-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.regional-domicile-panel {
  --region-surface: #ffffff;
  --region-inset: #f8fafc;
  --region-hover: #f1f5f9;
  --region-selected: rgb(91 71 251 / 0.055);
  --region-border: #e2e8f0;
  --region-border-strong: #64748b;
  --region-secondary: #475569;
  --region-muted: #64748b;
  --region-accent: #4b39e7;
  background: var(--region-surface);
  border-color: var(--region-border);
}

@media (prefers-color-scheme: dark) {
  .regional-domicile-panel {
    --region-surface: #151820;
    --region-inset: #1c202a;
    --region-hover: #252b36;
    --region-selected: rgb(91 71 251 / 0.17);
    --region-border: #2b313d;
    --region-border-strong: #717b8e;
    --region-secondary: #d7dce5;
    --region-muted: #aeb6c4;
    --region-accent: #bdb6ff;
  }
}

.regional-domicile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.regional-domicile-header h2,
.domicile-breakdown-heading h3,
.country-holdings-heading h4,
.currency-context-panel h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.018em;
}

.regional-domicile-header h2 {
  font-size: 21px;
}

.regional-domicile-header p {
  max-width: 820px;
  margin: 5px 0 0;
  color: var(--meta);
  font-size: 13px;
  line-height: 1.55;
}

.regional-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, auto));
  gap: 24px;
  flex: 0 0 auto;
}

.regional-summary > div {
  display: grid;
  align-content: start;
}

.regional-summary strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.regional-summary span {
  margin-top: 5px;
  color: var(--meta);
  font-size: 11px;
  white-space: nowrap;
}

.regional-domicile-layout {
  display: grid;
  grid-template-columns: minmax(245px, 0.34fr) minmax(0, 0.66fr);
  min-width: 0;
}

.region-selector {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 0;
  background: var(--region-surface);
}

.regional-group-heading,
.domicile-breakdown-heading,
.country-holdings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.regional-group-heading > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.regional-actions {
  display: flex;
  gap: 10px;
}

.regional-actions button,
.regional-table-jump {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--region-accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.regional-actions button:hover:not(:disabled),
.regional-table-jump:hover {
  background: var(--region-selected);
}

.regional-actions button:disabled {
  color: var(--meta);
  cursor: default;
  opacity: 0.62;
}

.region-filter-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--region-border);
  border-radius: var(--radius-surface);
  background: var(--region-inset);
}

.region-filter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.region-filter-row + .region-filter-row {
  border-top: 1px solid var(--region-border);
}

.region-filter-row:hover,
.region-filter-row[data-selected="true"] {
  background: var(--region-selected);
}

.region-filter-row:hover {
  background: var(--region-hover);
}

.region-filter-checkbox {
  appearance: none;
  display: grid;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  border: 1px solid var(--region-border-strong);
  border-radius: 5px;
  background: var(--region-surface);
  place-content: center;
}

.region-filter-checkbox::before {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg) scale(0);
}

.region-filter-checkbox:checked {
  border-color: var(--region-accent);
  background: var(--region-accent);
}

.region-filter-checkbox:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.region-filter-copy,
.domicile-legend-copy,
.country-holding-identity {
  display: block;
  min-width: 0;
}

.region-filter-name,
.region-filter-count,
.domicile-legend-name,
.domicile-legend-meta,
.country-holding-name,
.country-holding-meta {
  display: block;
}

.region-filter-name,
.domicile-legend-name,
.country-holding-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-filter-count,
.domicile-legend-meta,
.country-holding-meta {
  margin-top: 2px;
  color: var(--region-muted);
  font-size: 11px;
}

.region-filter-value,
.domicile-legend-share,
.country-holding-weight {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 720;
  white-space: nowrap;
}

.domicile-breakdown {
  min-width: 0;
  padding: 18px 20px 20px;
  border-inline-start: 1px solid var(--region-border);
}

.domicile-breakdown-heading h3,
.currency-context-panel h3 {
  font-size: 15px;
}

.domicile-breakdown-heading p,
.country-holdings-heading p,
.currency-context-panel header p {
  margin: 4px 0 0;
  color: var(--meta);
  font-size: 11px;
  line-height: 1.45;
}

#domicile-context {
  color: var(--meta);
  font-size: 11px;
  white-space: nowrap;
}

.domicile-visual-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}

.domicile-donut-wrap {
  display: grid;
  min-height: 180px;
  border: 0;
  border-radius: var(--radius-surface);
  background: var(--region-inset);
  place-items: center;
}

.domicile-donut {
  position: relative;
  width: 142px;
  height: 142px;
}

.domicile-donut svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.domicile-donut-track,
.domicile-donut-segment {
  fill: none;
  stroke-width: 20;
}

.domicile-donut-track {
  stroke: var(--border);
}

.domicile-donut-segment {
  stroke: var(--country-segment);
  transition: opacity 160ms ease;
}

.domicile-donut-centre {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  text-align: center;
}

.domicile-donut-centre strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 23px;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}

.domicile-donut-centre span {
  margin-top: 4px;
  color: var(--meta);
  font-size: 10px;
}

.domicile-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.domicile-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 52px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--region-border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: start;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.domicile-legend-row:hover,
.domicile-legend-row[aria-pressed="true"] {
  background: var(--region-selected);
}

.domicile-swatch {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 3px;
  background-color: var(--country-segment);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
}

.country-color-1 { --country-segment: var(--country-color-1); }
.country-color-2 { --country-segment: var(--country-color-2); }
.country-color-3 { --country-segment: var(--country-color-3); }
.country-color-4 { --country-segment: var(--country-color-4); }
.country-color-5 { --country-segment: var(--country-color-5); }
.country-color-6 { --country-segment: var(--country-color-6); }
.country-color-7 { --country-segment: var(--country-color-7); }
.country-color-8 { --country-segment: var(--country-color-8); }
.country-color-9 { --country-segment: var(--country-color-9); }
.country-color-10 { --country-segment: var(--country-color-10); }
.country-color-11 { --country-segment: var(--country-color-11); }
.country-color-12 { --country-segment: var(--country-color-12); }
.country-color-13 { --country-segment: var(--country-color-13); }
.country-color-14 { --country-segment: var(--country-color-14); }
.country-color-15 { --country-segment: var(--country-color-15); }
.country-color-16 { --country-segment: var(--country-color-16); }
.country-color-17 { --country-segment: var(--country-color-17); }
.country-color-18 { --country-segment: var(--country-color-18); }
.country-color-19 { --country-segment: var(--country-color-19); }
.country-color-20 { --country-segment: var(--country-color-20); }
.country-color-21 { --country-segment: var(--country-color-21); }
.country-color-22 { --country-segment: var(--country-color-22); }
.country-color-23 { --country-segment: var(--country-color-23); }
.country-color-24 { --country-segment: var(--country-color-24); }
.country-color-25 { --country-segment: var(--country-color-25); }
.country-color-26 { --country-segment: var(--country-color-26); }
.country-color-27 { --country-segment: var(--country-color-27); }
.country-color-28 { --country-segment: var(--country-color-28); }
.country-color-29 { --country-segment: var(--country-color-29); }
.country-color-30 { --country-segment: var(--country-color-30); }
.country-color-31 { --country-segment: var(--country-color-31); }
.country-color-32 { --country-segment: var(--country-color-32); }

.domicile-legend-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.domicile-legend-share {
  color: var(--accent-text);
}

.domicile-mobile-select {
  display: none;
}

.country-holdings-preview {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.country-holdings-heading h4 {
  font-size: 14px;
}

.country-holdings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--border);
}

.country-holding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 11px;
  background: var(--surface-raised);
}

.regional-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  color: var(--meta);
  font-size: 12px;
  text-align: center;
}

.currency-context-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  margin-top: 14px;
  box-shadow: none;
}

.currency-context-panel header {
  padding: 14px 16px;
  background: var(--surface-muted);
}

.currency-exposure-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.exposure-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-inline-start: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: start;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.exposure-button:hover,
.exposure-button[aria-pressed="true"] {
  background: var(--accent-soft);
}

.exposure-button[aria-pressed="true"] .exposure-label {
  color: var(--accent-text);
}

.exposure-label {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exposure-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  white-space: nowrap;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(120px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-field label,
.check-control {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

input[type="search"],
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  padding: 9px 11px;
}

input[type="search"]::placeholder {
  color: var(--meta);
  opacity: 1;
}

input[type="search"]:hover,
select:hover {
  border-color: var(--accent);
}

.check-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 2px;
  cursor: pointer;
  white-space: nowrap;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.comparison-control {
  display: grid;
  width: 44px;
  height: 44px;
  margin: -10px auto;
  place-items: center;
  cursor: pointer;
}

.comparison-control:has(input:disabled) {
  cursor: not-allowed;
}

.table-status-row {
  align-items: center;
  margin: 0 0 8px;
}

.table-status-row p {
  margin: 0;
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums lining-nums;
}

.explorer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.selection-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-inline-start: auto;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 720;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  scrollbar-width: thin;
}

.holdings-region {
  max-height: min(68vh, 720px);
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-inline: contain;
  overscroll-behavior-block: auto;
  scroll-margin-block-start: 92px;
}

.holdings-region.is-expanded {
  max-height: none;
  overflow: visible;
}

.holdings-expand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-control) var(--radius-control);
  background: var(--surface-muted);
}

.holdings-expand-footer p {
  margin: 0;
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.holdings-expand-footer-button {
  flex: 0 0 auto;
}

.holdings-table-hint {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--meta);
  font-size: 11px;
  line-height: 1.45;
}

#compare-panel {
  scroll-margin-block-start: 92px;
}

table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums lining-nums;
}

.holdings-table {
  min-width: 0;
  table-layout: fixed;
}

.holdings-table th:nth-child(1) { width: 46px; }
.holdings-table th:nth-child(2) { width: 22%; }
.holdings-table th:nth-child(3) { width: 17%; }
.holdings-table th:nth-child(4) { width: 10%; }
.holdings-table th:nth-child(5) { width: 19%; }
.holdings-table th:nth-child(6) { width: 9%; }
.holdings-table th:nth-child(7) { width: 13%; }
.holdings-table th:nth-child(8) { width: 8%; }

body[data-page="pmindi-asia"] .holdings-table th:nth-child(2) { width: 28%; }
body[data-page="pmindi-asia"] .holdings-table th:nth-child(3) { width: 20%; }
body[data-page="pmindi-asia"] .holdings-table th:nth-child(4) { width: 11%; }
body[data-page="pmindi-asia"] .holdings-table th:nth-child(5) { width: 27%; }
body[data-page="pmindi-asia"] .holdings-table th:nth-child(6) { width: 14%; }

.return-unavailable {
  color: var(--meta);
}

.holdings-table th,
.holdings-table td {
  white-space: normal;
}

.balances-table {
  min-width: 900px;
}

.coverage-table {
  min-width: 560px;
}

.annual-table {
  min-width: 600px;
}

.heatmap-table {
  min-width: 920px;
}

th,
td {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font-size: 13px;
  text-align: start;
  vertical-align: middle;
  white-space: nowrap;
}

thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 720;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody tr:hover > * {
  background: var(--accent-soft);
}

.holdings-table .selection-column,
.holdings-table td:first-child {
  position: static;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  background: var(--surface-raised);
  text-align: center;
}

.holdings-table thead .selection-column {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--surface-muted);
}

.holdings-table th:nth-child(2),
.holdings-table td:nth-child(2) {
  position: static;
  min-width: 0;
  background: var(--surface-raised);
  box-shadow: none;
}

.holdings-table thead th:nth-child(2) {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--surface-muted);
}

.holdings-table tbody tr:hover td:first-child,
.holdings-table tbody tr:hover td:nth-child(2) {
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent) 18%);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: -10px -12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  text-align: inherit;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.sort-button:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}

th[aria-sort="ascending"] .sort-button::after {
  content: "  ▲";
  color: var(--accent-text);
  font-size: 9px;
}

th[aria-sort="descending"] .sort-button::after {
  content: "  ▼";
  color: var(--accent-text);
  font-size: 9px;
}

.numeric-column,
.numeric-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  text-align: end;
}

.cell-primary,
.cell-secondary {
  display: block;
}

.cell-primary {
  max-width: 260px;
  overflow: hidden;
  color: var(--text);
  font-weight: 680;
  text-overflow: ellipsis;
}

.cell-secondary {
  margin-top: 3px;
  color: var(--meta);
  font-size: 11px;
}

.position-detail-cell .cell-primary,
.position-detail-cell .cell-secondary {
  max-width: none;
  overflow: visible;
  text-align: end;
  text-overflow: clip;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 680;
}

.data-missing {
  color: var(--meta);
}

.positive-value {
  color: var(--positive);
  font-weight: 700;
}

.negative-value {
  color: var(--negative);
  font-weight: 700;
}

.empty-table-cell {
  height: 96px;
  color: var(--meta);
  text-align: center;
}

.compare-panel {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.compare-heading {
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compare-scroll {
  border: 0;
  border-radius: 0;
}

.compare-table {
  min-width: 720px;
}

.compare-table th[scope="row"] {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  min-width: 180px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
}

.compare-table td {
  min-width: 180px;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.method-note,
.performance-caveat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
}

.method-note h3,
.performance-caveat h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.method-note p,
.performance-caveat p {
  margin: 8px 0 0;
  color: var(--meta);
  font-size: 13px;
}

#snapshot-digest {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums lining-nums;
}

.performance-caveat {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.performance-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.comparison-unavailable {
  padding: 16px;
  border: 1px solid var(--warning);
  border-radius: var(--radius-control);
  background: var(--warning-soft);
}

.comparison-unavailable h3,
.comparison-unavailable p {
  margin: 0;
}

.comparison-unavailable h3 {
  color: var(--text);
  font-size: 16px;
}

.comparison-unavailable p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

.performance-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="pmindi-asia"] .summary-section,
body[data-page="pmindi-asia"] .performance-notes,
body[data-page="pmindi-asia"] .performance-kpis,
body[data-page="pmindi-asia"] .performance-tables,
body[data-page="pmindi-asia"] .exact-values,
body[data-page="pmindi-asia"] .balances-section,
body[data-page="pmindi-asia"] .coverage-section {
  display: none;
}

body[data-page="pmindi-asia"] .currency-context-panel {
  display: none;
}

body[data-page="pmindi-asia"] .comparison-chart-panel {
  margin-top: 0;
}

body[data-page="pmindi-asia"] .chart-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asia-performance-note {
  margin-top: 16px;
}

.chart-panel {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.chart-panel figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.chart-panel figcaption strong {
  color: var(--text);
  font-size: 16px;
}

.chart-panel figcaption span {
  color: var(--meta);
  font-size: 13px;
  text-align: end;
}

#growth-chart {
  display: block;
  width: 100%;
  min-height: 280px;
  color: var(--text-soft);
  outline-offset: -4px;
}

.chart-grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--meta);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums lining-nums;
}

.chart-baseline {
  stroke: var(--border-strong);
  stroke-dasharray: 4 5;
  stroke-width: 1.5;
}

.chart-baseline-label {
  fill: var(--meta);
  font-family: var(--font-mono);
  font-size: 11px;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line-pmindi-usd {
  stroke: var(--accent);
  stroke-width: 3.5;
}

.chart-line-pmindi-dkk {
  stroke: var(--chart-pmindi-dkk);
  stroke-dasharray: 14 4 3 4;
  stroke-width: 3;
}

.chart-line-spx {
  stroke: var(--chart-spx);
  stroke-dasharray: 10 6;
  stroke-width: 2.5;
}

.chart-line-qqqe {
  stroke: var(--chart-qqqe);
  stroke-dasharray: 2 6;
  stroke-width: 2.5;
}

.chart-endpoint {
  stroke: var(--surface-raised);
  stroke-width: 3;
}

.chart-endpoint-pmindi-usd {
  fill: var(--accent);
}

.chart-endpoint-pmindi-dkk {
  fill: var(--chart-pmindi-dkk);
}

.chart-endpoint-spx {
  fill: var(--chart-spx);
}

.chart-endpoint-qqqe {
  fill: var(--chart-qqqe);
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.chart-legend-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
}

.chart-legend-item + .chart-legend-item {
  border-inline-start: 1px solid var(--border);
}

.chart-legend-swatch {
  display: block;
  width: 40px;
  border-top: 4px solid var(--accent);
}

.chart-legend-pmindi-dkk .chart-legend-swatch {
  border-color: var(--chart-pmindi-dkk);
  border-top-style: dashed;
}

.chart-legend-pmindi-usd .chart-legend-swatch {
  border-color: var(--accent);
}

.chart-legend-spx .chart-legend-swatch {
  border-color: var(--chart-spx);
  border-top-style: dashed;
}

.chart-legend-qqqe .chart-legend-swatch {
  border-color: var(--chart-qqqe);
  border-top-style: dotted;
}

.chart-legend-copy {
  display: grid;
  min-width: 0;
}

.chart-legend-label,
.chart-legend-return {
  color: var(--text);
  font-size: 13px;
}

.chart-legend-basis {
  overflow: hidden;
  color: var(--meta);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend-return {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  white-space: nowrap;
}

.chart-legend-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
}

.chart-legend-cagr {
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.comparison-chart-interaction {
  position: relative;
  min-width: 0;
}

.comparison-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}

.chart-focus-line {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.chart-focus-marker {
  fill: var(--surface-raised);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-focus-marker-pmindi-usd {
  stroke: var(--accent);
}

.chart-focus-marker-pmindi-dkk {
  stroke: var(--chart-pmindi-dkk);
}

.chart-focus-marker-spx {
  stroke: var(--chart-spx);
}

.chart-focus-marker-qqqe {
  stroke: var(--chart-qqqe);
}

.chart-tooltip {
  position: absolute;
  inset-block-start: 14px;
  width: min(340px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  color: var(--text);
  pointer-events: none;
  transform: translateX(-50%);
}

.chart-tooltip-flip {
  transform: translateX(-100%);
}

.chart-tooltip-start {
  transform: translateX(0);
}

.chart-tooltip-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.chart-tooltip-values {
  display: grid;
  gap: 4px;
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.chart-tooltip-label {
  color: var(--meta);
}

.chart-tooltip-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  white-space: nowrap;
}

.chart-tooltip-dates,
.chart-help {
  color: var(--meta);
  font-size: 11px;
}

.chart-tooltip-dates {
  margin: 9px 0 0;
  line-height: 1.45;
}

.chart-help {
  margin: 0;
  padding: 0 16px 14px;
}

.performance-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.heatmap-cell {
  min-width: 62px;
  text-align: end;
}

.heatmap-positive {
  background: var(--positive-soft) !important;
  color: var(--positive);
  font-weight: 700;
}

.heatmap-negative {
  background: var(--negative-soft) !important;
  color: var(--negative);
  font-weight: 700;
}

.heatmap-missing {
  color: var(--meta);
}

.exact-values {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.exact-values summary {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.exact-values[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.exact-values .table-scroll {
  border: 0;
  border-radius: 0 0 var(--radius-control) var(--radius-control);
}

.exact-comparison-table {
  min-width: 1180px;
}

.source-date-cell {
  min-width: 170px;
  white-space: normal;
}

.workspace-footer {
  padding: 8px 12px 0;
}

.workspace-footer p {
  margin: 0;
  color: var(--meta);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .page-intro {
    grid-template-columns: 1fr;
  }

  .snapshot-meta {
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #summary-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .position-statistics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .position-statistics-grid .kpi-item:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .position-statistics-grid .kpi-item:nth-child(odd) {
    border-inline-start: 0;
  }

  .position-statistics-grid .kpi-item:nth-child(even) {
    border-inline-start: 1px solid var(--border);
  }

  .kpi-item:nth-child(4) {
    border-inline-start: 0;
    border-top: 1px solid var(--border);
  }

  .kpi-item:nth-child(n + 5) {
    border-top: 1px solid var(--border);
  }

  .filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .check-control {
    align-self: end;
  }

  .performance-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .performance-tables,
  .coverage-layout,
  .performance-notes {
    grid-template-columns: 1fr;
  }

  .regional-domicile-layout {
    grid-template-columns: 1fr;
  }

  .domicile-breakdown {
    border-block-start: 1px solid var(--border);
    border-inline-start: 0;
  }
}

@media (max-width: 980px) {
  .chart-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="pmindi-asia"] .chart-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-legend-item:nth-child(n + 3) {
    border-block-start: 1px solid var(--border);
  }

  .chart-legend-item:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-block-start: 132px;
  }

  .app-header-inner {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-context,
  .header-as-of {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .data-status-badge {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .secondary-button,
  .primary-button {
    padding-inline: 11px;
  }

  .workspace {
    padding: 18px 12px 40px;
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
  }

  h1 {
    font-size: 36px;
  }

  .snapshot-meta {
    grid-template-columns: 1fr;
  }

  .snapshot-meta > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--border);
  }

  .state-panel {
    display: grid;
    min-height: 0;
    padding: 20px 16px;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-section {
    padding: 18px 14px;
  }

  .section-heading,
  .panel-heading,
  .compare-heading,
  .table-status-row {
    display: grid;
    gap: 10px;
  }

  .section-heading .secondary-button,
  .compare-heading .secondary-button {
    justify-self: start;
  }

  .explorer-actions {
    justify-content: flex-start;
  }

  .compare-actions {
    justify-content: flex-start;
  }

  .coverage-note,
  #balances-count {
    text-align: start;
  }

  .kpi-grid,
  .performance-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #summary-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-item {
    border-top: 1px solid var(--border);
    border-inline-start: 0 !important;
  }

  .kpi-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .kpi-item:nth-child(2n) {
    border-inline-start: 1px solid var(--border) !important;
  }

  .regional-domicile-layout,
  .currency-context-panel,
  .coverage-layout,
  .performance-tables,
  .performance-notes {
    grid-template-columns: 1fr;
  }

  .regional-domicile-header,
  .domicile-breakdown-heading,
  .country-holdings-heading {
    display: grid;
  }

  .regional-summary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-selector {
    padding: 14px;
  }

  .domicile-breakdown {
    padding: 16px 14px;
    border-block-start: 1px solid var(--border);
    border-inline-start: 0;
  }

  .domicile-visual-grid,
  .country-holdings-list {
    grid-template-columns: 1fr;
  }

  .domicile-donut-wrap {
    min-height: 174px;
  }

  .domicile-mobile-select {
    display: grid;
    gap: 6px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
  }

  .domicile-legend {
    display: none;
  }

  .currency-context-panel header {
    border-bottom: 1px solid var(--border);
  }

  .exposure-button {
    border-block-start: 1px solid var(--border);
    border-inline-start: 0;
  }

  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-column: auto;
  }

  .check-control {
    white-space: normal;
  }

  .selection-jump {
    justify-self: start;
    margin-inline-start: 0;
  }

  .holdings-table-hint {
    position: static;
  }

  .holdings-table,
  .holdings-table tbody {
    display: block;
    width: 100%;
  }

  .holdings-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .holdings-table tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-raised);
  }

  .holdings-table tbody td,
  .holdings-table tbody td:first-child,
  .holdings-table tbody td:nth-child(2) {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .holdings-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
  }

  .holdings-table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .holdings-table tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .holdings-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    color: var(--meta);
  }

  .holdings-table tbody td:nth-child(4)::before {
    content: "Quote ";
    font-family: var(--font-sans);
    font-size: 11px;
  }

  .holdings-table tbody td:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 4;
    padding-top: 7px;
    border-top: 1px solid var(--border);
  }

  .holdings-table tbody td:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    font-weight: 720;
  }

  .holdings-table tbody td:nth-child(6)::before {
    content: "YTD ";
    color: var(--meta);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 650;
  }

  .holdings-table tbody td:nth-child(7) {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
  }

  .holdings-table tbody td:nth-child(8) {
    grid-column: 3;
    grid-row: 3;
    align-self: start;
    color: var(--accent-text);
    font-weight: 720;
  }

  body[data-page="pmindi-asia"] .holdings-table tbody td:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
    color: var(--accent-text);
    font-weight: 720;
  }

  body[data-page="pmindi-asia"] .holdings-table tbody td:nth-child(6)::before {
    content: none;
  }

  .holdings-expand-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .holdings-expand-footer-button {
    width: 100%;
  }

  .holdings-table .comparison-control {
    margin: -8px 0 0;
  }

  .holdings-table .empty-table-cell {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 24px 0;
    text-align: center;
  }

  .position-detail-cell .cell-primary,
  .position-detail-cell .cell-secondary {
    text-align: start;
  }

  .chart-panel figcaption {
    display: grid;
  }

  .chart-panel figcaption span {
    text-align: start;
  }

  .chart-legend {
    grid-template-columns: 1fr;
  }

  body[data-page="pmindi-asia"] .chart-legend {
    grid-template-columns: 1fr;
  }

  .chart-legend-item + .chart-legend-item {
    border-block-start: 1px solid var(--border);
    border-inline-start: 0;
  }

  .comparison-chart-interaction {
    min-width: 680px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 13px;
  }

  .data-status-badge {
    max-width: 128px;
    white-space: normal;
  }

  .kpi-grid,
  .performance-kpis {
    grid-template-columns: 1fr;
  }

  #summary-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-item,
  .kpi-item:nth-child(2n) {
    border-top: 1px solid var(--border);
    border-inline-start: 0 !important;
  }

  .kpi-item:first-child {
    border-top: 0;
  }

  .regional-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .workspace-section,
  .data-panel,
  .regional-domicile-panel,
  .currency-context-panel,
  .table-scroll,
  .snapshot-meta,
  .method-note,
  .performance-caveat,
  .comparison-unavailable,
  .state-panel {
    border: 1px solid CanvasText;
  }

  .domicile-donut,
  .domicile-swatch {
    forced-color-adjust: none;
  }

  .chart-line,
  .chart-focus-marker,
  .chart-baseline,
  .chart-focus-line {
    stroke: CanvasText;
  }

  .chart-endpoint {
    fill: Canvas;
    stroke: CanvasText;
  }

  .chart-legend-swatch {
    border-color: CanvasText;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  :root {
    --page: #f7f7f8;
    --surface: #fbfbfc;
    --surface-raised: #fdfdfe;
    --surface-muted: #eef0f3;
    --text: #17191f;
    --text-soft: #454a55;
    --meta: #626977;
    --border: #c8cbd1;
    --accent-text: #4935e8;
    --positive: #116c4a;
    --positive-soft: #e5f4ed;
    --negative: #a53742;
    --negative-soft: #f8e7e9;
    --chart-pmindi-dkk: #1f5d9d;
    --chart-spx: #0b6676;
    --chart-qqqe: #92500b;
    --country-color-1: hsl(252 66% 36%);
    --country-color-2: hsl(30 66% 36%);
    --country-color-3: hsl(167 66% 36%);
    --country-color-4: hsl(305 66% 36%);
    --country-color-5: hsl(82 66% 36%);
    --country-color-6: hsl(220 66% 36%);
    --country-color-7: hsl(357 66% 36%);
    --country-color-8: hsl(135 66% 36%);
    --country-color-9: hsl(272 66% 36%);
    --country-color-10: hsl(50 66% 36%);
    --country-color-11: hsl(187 66% 36%);
    --country-color-12: hsl(325 66% 36%);
    --country-color-13: hsl(102 66% 36%);
    --country-color-14: hsl(240 66% 36%);
    --country-color-15: hsl(17 66% 36%);
    --country-color-16: hsl(155 66% 36%);
    --country-color-17: hsl(292 66% 36%);
    --country-color-18: hsl(70 66% 36%);
    --country-color-19: hsl(207 66% 36%);
    --country-color-20: hsl(345 66% 36%);
    --country-color-21: hsl(122 66% 36%);
    --country-color-22: hsl(260 66% 36%);
    --country-color-23: hsl(37 66% 36%);
    --country-color-24: hsl(175 66% 36%);
    --country-color-25: hsl(312 66% 36%);
    --country-color-26: hsl(5 66% 36%);
    --country-color-27: hsl(60 66% 36%);
    --country-color-28: hsl(115 66% 36%);
    --country-color-29: hsl(145 66% 36%);
    --country-color-30: hsl(195 66% 36%);
    --country-color-31: hsl(230 66% 36%);
    --country-color-32: hsl(280 66% 36%);
    color-scheme: light;
  }

  html,
  body {
    min-height: 0;
    overflow: visible;
    background: #f7f7f8;
    color: #17191f;
  }

  .app-header,
  .skip-link,
  .filter-toolbar,
  #holdings-expand,
  #holdings-expand-footer,
  #reset-filters,
  #retry-button,
  #return-to-holdings,
  #clear-comparison,
  .selection-jump,
  .selection-column,
  .holdings-table td:first-child {
    display: none !important;
  }

  .chart-tooltip,
  .chart-focus-line,
  .chart-focus-marker,
  .chart-help {
    display: none !important;
  }

  .workspace {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .page-intro {
    padding-top: 0;
  }

  .app-content {
    gap: 12px;
  }

  .workspace-section,
  .data-panel,
  .regional-domicile-panel,
  .currency-context-panel,
  .chart-panel,
  .method-note,
  .performance-caveat,
  .snapshot-meta {
    break-inside: avoid;
    box-shadow: none;
  }

  .table-scroll,
  .chart-panel,
  .comparison-chart-scroll {
    overflow: visible;
  }

  .comparison-chart-scroll,
  .comparison-chart-interaction,
  .chart-help,
  #growth-chart {
    width: 100%;
    min-width: 0;
  }

  .exact-values > :not(summary) {
    display: block !important;
  }

  .exact-values summary {
    display: none;
  }

  .exact-comparison-table {
    min-width: 0;
    font-size: 8px;
  }

  .exact-comparison-table th,
  .exact-comparison-table td {
    min-width: 0;
    padding: 4px;
    white-space: normal;
  }

  .chart-line,
  .chart-endpoint,
  .chart-legend-swatch {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .holdings-region,
  .domicile-legend {
    max-height: none;
    overflow: visible;
  }

  .regional-domicile-layout {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  }

  .region-selector {
    background: var(--surface-muted);
  }

  .regional-actions,
  .regional-table-jump,
  .domicile-mobile-select {
    display: none !important;
  }

  .domicile-legend {
    display: grid;
  }

  .regional-domicile-panel,
  .currency-context-panel,
  .domicile-donut,
  .domicile-swatch {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .holdings-table {
    min-width: 0;
    font-size: 9px;
  }

  .holdings-table th,
  .holdings-table td {
    position: static !important;
    min-width: 0 !important;
    padding: 5px 6px;
    box-shadow: none !important;
    font-size: 9px;
    white-space: normal;
  }

  .workspace-footer {
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
}
