:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#20242c;
  background:#fff;
  font-synthesis:none;
  --line:#e9ebef;
  --muted:#818895;
  --blue:#2563eb;
  --green:#16845c;
  --ink:#20242c
}

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

body {
  margin:0;
  height:100dvh;
  min-height:450px;
  display:flex;
  flex-direction:column
}

button,input,select {
  font:inherit
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}

button,summary {
  cursor:pointer
}

button {
  color:inherit
}

button:disabled {
  cursor:default;
  opacity:.45
}

button {
  background:none;
  border:0
}

a {
  color:inherit
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid #2563eb;
  outline-offset:3px
}

[hidden] {
  display:none!important
}

.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
}

.muted {
  color:var(--muted)
}

.small {
  font-size:11px;
  line-height:1.5
}

.eyebrow {
  font-size:9px;
  letter-spacing:.14em;
  font-weight:600;
  color:#959ba5
}

.topbar {
  min-height:58px;
  flex-shrink:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 24px;
  padding:12px 25px;
  border-bottom:1px solid var(--line);
  background:#fff
}

.brand {
  font-size:15px;
  letter-spacing:-.45px;
  font-weight:750;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap
}

.brand svg {
  color:var(--blue);
  fill:currentColor
}

.brand>span {
  font-weight:400;
  margin-left:-7px
}

.view-switch {
  display:flex;
  gap:4px
}

.nav-button {
  padding:8px 12px;
  font-size:12px;
  border-radius:6px;
  color:#818895
}

.nav-button.active {
  background:#f1f3f5;
  color:#20242c;
  font-weight:600
}

.nav-button:hover {
  background:#f6f7f9
}

.app-shell {
  position:relative;
  display:grid;
  grid-template-columns:276px minmax(0,1fr);
  flex:1;
  min-height:0
}

.sidebar {
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-height:0;
  background:#fff
}

.sidebar-heading {
  padding:27px 21px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.sidebar h1 {
  font-size:17px;
  margin:9px 0 0;
  font-weight:600;
  letter-spacing:-.4px
}

.count-badge {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  font-size:10px;
  background:#f1f3f6;
  color:#757e8d;
  border-radius:5px;
  min-width:24px;
  height:21px;
  vertical-align:middle;
  margin-left:5px;
  letter-spacing:0
}

.text-button {
  font-size:10px;
  color:#9299a4;
  padding:5px 0;
  text-decoration:underline;
  text-underline-offset:3px
}

.text-button:hover {
  color:#20242c
}

.search-form {
  padding:0 18px 12px;
  position:relative
}

.search-field {
  display:flex;
  align-items:center;
  border:1px solid #e1e5eb;
  border-radius:7px;
  padding:0 9px;
  gap:8px;
  height:37px;
  color:#9ca3af
}

.search-field:focus-within {
  border-color:#9bbaf8;
  box-shadow:0 0 0 3px #eff5ff
}

.search-field input {
  min-width:0;
  width:100%;
  border:0;
  background:none;
  font-size:11px;
  outline:none;
  color:#20242c;
  height:100%
}

.search-field input::-webkit-search-cancel-button {
  cursor:pointer
}

.search-field input::placeholder {
  color:#9ba2ad
}

.search-field button {
  font-size:20px;
  color:#6b7280;
  padding:0 2px
}

.search-form .small {
  margin:9px 0 0;
  font-size:10px
}

.form-message {
  color:#b34b30;
  font-size:11px;
  margin:8px 0 0;
  line-height:1.5
}

.search-results {
  position:absolute;
  top:41px;
  left:18px;
  right:18px;
  z-index:50;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 24px #19294415;
  background:#fff;
  overflow:hidden
}

.search-result {
  width:100%;
  text-align:left;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:3px;
  border-bottom:1px solid #f4f5f7;
  font-size:11px
}

.search-result:hover,.search-result:focus-visible {
  background:#f5f8ff
}

.search-result strong {
  font-size:11px
}

.search-result span {
  color:#7d8592;
  font-size:10px;
  line-height:1.4
}

.selection-label {
  display:flex;
  justify-content:space-between;
  padding:13px 22px 9px;
  font-size:8px;
  letter-spacing:.09em;
  color:#9fa6b1;
  border-top:1px solid #f4f5f7
}

.etf-list {
  list-style:none;
  margin:0;
  padding:0 9px;
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
  scrollbar-color:#e4e7ec transparent
}

.etf-item {
  display:flex;
  align-items:center;
  border-radius:6px;
  position:relative;
  margin-bottom:2px;
  min-height:48px
}

.etf-item:hover {
  background:#f6f8fb
}

.etf-item.selected {
  background:#eff5ff
}

.etf-open {
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  flex:1;
  min-width:0;
  padding:8px 7px 8px 12px
}

.fund-dot {
  width:7px;
  height:7px;
  background:var(--blue);
  border-radius:50%;
  flex-shrink:0
}

.fund-dot.loading {
  background:#cbd5e1;
  animation:breathe 1.3s ease-in-out infinite
}

.fund-dot.error {
  background:#d47658
}

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

.fund-title {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:650
}

.fund-note-mark {
  color:#c28b43;
  font-size:9px
}

.fund-subtitle {
  display:block;
  font-size:9px;
  color:#8a929f;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:4px
}

.fund-date {
  font-size:8px;
  color:#9aa2ae;
  white-space:nowrap
}

.remove-etf {
  color:#a5adb9;
  font-size:15px;
  padding:7px 6px 7px 2px;
  line-height:1
}

.remove-etf:hover {
  color:#c75151
}

.selection-empty {
  font-size:12px;
  line-height:1.7;
  color:#9097a3;
  padding:30px 12px;
  text-align:center
}

.sidebar-footer {
  padding:16px 21px 18px;
  border-top:1px solid var(--line)
}

.reset-button {
  font-size:11px;
  padding:0;
  color:#606a7a
}

.reset-button span {
  font-size:15px;
  padding-right:5px
}

.reset-button:hover {
  color:var(--blue)
}

.sidebar-footer p {
  margin:8px 0 0;
  font-size:9px
}

.workspace {
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0
}

.toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-left:auto
}

.filter-pills {
  display:flex;
  gap:5px
}

.pill {
  font-size:10px;
  border:1px solid #e0e4e9;
  border-radius:999px;
  padding:6px 12px;
  min-height:29px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  white-space:nowrap;
  background:#fff
}

.pill:hover {
  background:#f6f7f9
}

.pill.active {
  color:#fff;
  background:#20242c;
  border-color:#20242c
}

.minimum-filter {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#a0a6af
}

.minimum-filter select {
  font-size:10px;
  color:#626c7c;
  border:0;
  outline-offset:3px;
  background:#fff;
  padding:5px 0;
  max-width:90px
}

.status-strip {
  padding:10px 32px 0;
  min-height:29px;
  display:flex;
  gap:10px;
  align-items:center;
  font-size:10px;
  color:#929aa7
}

.status-strip .text-button {
  padding:0;
  color:#b56e45
}

.visual-area {
  flex:1;
  position:relative;
  min-height:0;
  overflow:hidden
}

.graph-view {
  position:absolute;
  inset:0
}

#graph {
  position:absolute;
  inset:0;
  overflow:hidden
}

#graph canvas {
  display:block
}

.graph-caption {
  position:absolute;
  left:32px;
  top:18px;
  display:flex;
  align-items:center;
  gap:7px;
  max-width:calc(100% - 64px);
  color:#9ca3ae;
  font-size:9px;
  pointer-events:none
}

.status-dot {
  display:inline-block;
  background:#d4dbe6;
  width:5px;
  height:5px;
  border-radius:50%;
  flex-shrink:0
}

.legend {
  position:absolute;
  bottom:18px;
  left:25px;
  max-width:270px;
  background:#fffffff2;
  border:1px solid #e8ecf1;
  border-radius:7px;
  box-shadow:0 2px 12px #172c4710;
  backdrop-filter:blur(4px);
  z-index:2
}

.legend summary {
  display:flex;
  align-items:center;
  gap:7px;
  list-style:none;
  padding:9px 11px;
  font-size:9px;
  color:#7b8492;
  font-weight:600
}

.legend summary::-webkit-details-marker {
  display:none
}

.help-icon {
  display:inline-flex;
  width:15px;
  height:15px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef1f5;
  font-size:9px
}

.legend-body {
  border-top:1px solid #f0f2f6;
  margin:0 11px;
  padding:6px 0 9px
}

.legend-body p {
  display:flex;
  gap:9px;
  align-items:center;
  margin:6px 0;
  font-size:10px;
  color:#7a8492
}

.legend-shape {
  display:inline-block;
  width:8px;
  height:8px;
  flex-shrink:0
}

.legend-shape.etf {
  border-radius:50%;
  background:var(--blue)
}

.legend-shape.shared {
  background:var(--green)
}

.legend-shape.unique {
  background:#a4adba
}

.legend-shape.unmapped {
  background:#c6954d
}

.legend-body p.legend-explanation {
  font-size:9px;
  line-height:1.6;
  margin:10px 0 0;
  display:block
}

.zoom-controls {
  position:absolute;
  right:25px;
  bottom:18px;
  display:flex;
  border:1px solid #e7ebf0;
  border-radius:7px;
  background:#fff;
  box-shadow:0 2px 12px #172c470a;
  overflow:hidden
}

.zoom-controls button {
  width:33px;
  height:31px;
  font-size:16px;
  color:#818b9a
}

.zoom-controls button+button {
  border-left:1px solid #e7ebf0
}

.zoom-controls button:hover {
  background:#f5f7fa
}

.workspace-footer {
  border-top:1px solid #f0f2f5;
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:11px 32px;
  font-size:8px;
  color:#9da5b1;
  background:#fff
}

.workspace-footer a {
  text-decoration:none;
  color:#7c8798
}

.workspace-footer a:hover {
  text-decoration:underline
}

.empty-state {
  position:absolute;
  left:50%;
  top:43%;
  transform:translate(-50%,-50%);
  text-align:center;
  max-width:350px;
  width:80%;
  padding:20px;
  background:#fffffff5;
  border-radius:12px
}

.empty-icon {
  font-size:38px;
  color:#c5d3e6;
  font-weight:200
}

.empty-state h3 {
  font-size:17px;
  letter-spacing:-.3px;
  font-weight:500;
  margin:8px 0
}

.empty-state p {
  font-size:12px;
  color:#8d97a5;
  line-height:1.7;
  margin:0 0 16px
}

.list-view {
  height:100%;
  overflow:auto;
  padding:22px 32px 25px;
  scrollbar-width:thin
}

.list-intro h3 {
  font-size:14px;
  margin:0 0 6px;
  font-weight:550
}

.list-intro p {
  font-size:10px;
  line-height:1.6;
  color:#9099a6;
  margin:0 0 20px
}

.table-scroll {
  overflow-x:auto
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px
}

th {
  color:#99a2af;
  font-size:9px;
  font-weight:500;
  padding:11px 12px;
  border-bottom:1px solid #e8ecf2
}

td {
  padding:12px;
  border-bottom:1px solid #f0f3f6;
  line-height:1.6;
  color:#647084
}

th:first-child,td:first-child {
  padding-left:0
}

th:last-child,td:last-child {
  text-align:right;
  padding-right:0;
  white-space:nowrap
}

td:nth-child(3) {
  font-size:10px;
  color:#8b95a4
}

td button {
  padding:0;
  font-weight:600;
  font-size:11px;
  display:flex;
  gap:8px;
  align-items:center;
  text-align:left;
  color:#3d4a5e
}

td button:hover {
  color:var(--blue)
}

.table-dot {
  width:7px;
  height:7px;
  flex-shrink:0;
  border-radius:1px;
  background:var(--green)
}

.table-dot.unique {
  background:#a4adba
}

.table-dot.unmapped {
  background:#c6954d
}

.table-empty {
  padding:30px;
  text-align:center;
  color:#929ba9;
  font-size:12px
}

.details-panel {
  position:absolute;
  z-index:5;
  top:12px;
  right:18px;
  bottom:12px;
  width:306px;
  overflow:auto;
  background:#fffffff9;
  border:1px solid #e5eaf1;
  border-radius:10px;
  box-shadow:0 8px 30px #1a305012;
  backdrop-filter:blur(8px);
  padding:24px 21px;
  scrollbar-width:thin
}

.close-button {
  position:absolute;
  right:11px;
  top:10px;
  font-size:20px;
  color:#9ca5b1;
  width:25px;
  height:25px;
  border-radius:5px
}

.close-button:hover {
  background:#f2f4f7
}

.detail-kind {
  font-size:9px;
  color:#97a0ad;
  text-transform:uppercase;
  letter-spacing:.1em;
  padding-right:16px
}

.detail-title {
  font-size:25px;
  letter-spacing:-.6px;
  margin:12px 0 5px;
  font-weight:550;
  overflow-wrap:anywhere
}

.detail-name {
  font-size:11px;
  line-height:1.6;
  color:#8c96a5;
  margin:0 0 18px
}

.detail-metrics {
  display:flex;
  gap:24px;
  padding:15px 0;
  border-top:1px solid #edf0f5;
  border-bottom:1px solid #edf0f5
}

.detail-metrics strong {
  display:block;
  font-size:19px;
  font-weight:500;
  font-variant-numeric:tabular-nums
}

.detail-metrics span {
  display:block;
  color:#9aa3b0;
  font-size:9px;
  margin-top:5px
}

.detail-section {
  font-size:10px;
  font-weight:600;
  margin:20px 0 9px;
  color:#7f8b9c
}

.detail-rows {
  display:flex;
  flex-direction:column;
  gap:5px
}

.detail-row {
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  justify-content:space-between;
  padding:7px 0;
  width:100%;
  font-size:11px
}

.detail-row strong {
  font-size:11px;
  font-weight:550
}

.detail-row .row-label {
  min-width:0;
  overflow-wrap:anywhere
}

.detail-row .row-value {
  flex-shrink:0;
  font-variant-numeric:tabular-nums;
  text-align:right;
  color:#697689
}

.detail-row small {
  display:block;
  font-size:9px;
  color:#9ba5b3;
  margin-top:3px;
  font-weight:400
}

.detail-row:hover strong {
  color:var(--blue)
}

.weight-track {
  width:100%;
  height:3px;
  background:#edf1f7;
  border-radius:3px;
  margin-top:6px;
  overflow:hidden
}

.weight-fill {
  height:100%;
  background:#b9d0fc;
  border-radius:3px
}

.detail-note {
  font-size:10px;
  line-height:1.6;
  color:#a48047;
  background:#fffbf2;
  border:1px solid #f1e7d4;
  border-radius:5px;
  padding:8px;
  margin:10px 0
}

.detail-footnote {
  font-size:9px;
  line-height:1.65;
  color:#9aa3b0;
  margin-top:16px
}

.detail-footnote a {
  color:#7c91b0
}

.source-link {
  display:inline-block;
  font-size:10px;
  color:#7e94b7;
  margin-top:12px;
  text-decoration:none
}

.source-link:hover {
  text-decoration:underline
}

.detail-error {
  font-size:12px;
  line-height:1.7;
  color:#b37956
}

.tooltip {
  position:fixed;
  z-index:80;
  pointer-events:none;
  max-width:245px;
  min-width:155px;
  background:#fffffff7;
  border:1px solid #e4e9f0;
  border-radius:7px;
  padding:10px 13px;
  font-size:10px;
  color:#8792a2;
  box-shadow:0 3px 16px #14273f14;
  line-height:1.6
}

.tooltip strong {
  display:block;
  font-size:12px;
  color:#354256;
  margin-bottom:4px;
  overflow-wrap:anywhere
}

.tooltip span {
  display:block
}

.mobile-only {
  display:none
}

.noscript {
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background:#fff;
  color:#67758a;
  z-index:100;
  padding:30px
}

@keyframes breathe {
  50% {
    opacity:.35
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    scroll-behavior:auto!important
  }
}

@media(min-width:1500px) {
  .app-shell {
    grid-template-columns:294px minmax(0,1fr)
  }
  .etf-item {
    min-height:52px
  }
  .fund-subtitle {
    font-size:10px
  }
  .fund-date {
    font-size:9px
  }
}

@media(max-width:1100px) {
  .toolbar {
    flex-basis:100%;
    margin-left:0
  }
  .status-strip {
    padding-left:22px;
    padding-right:22px
  }
  .workspace-footer {
    padding-left:22px;
    padding-right:22px
  }
  .graph-caption {
    left:22px
  }
  .workspace-footer>span:last-child {
    display:none
  }
  .list-view {
    padding-left:22px;
    padding-right:22px
  }
}

@media(max-width:780px) {
  .topbar {
    padding:10px 16px;
    column-gap:20px
  }
  .app-shell {
    grid-template-columns:236px minmax(0,1fr)
  }
  .sidebar-heading {
    padding-left:17px;
    padding-right:17px
  }
  .search-form {
    padding-left:14px;
    padding-right:14px
  }
  .fund-date {
    display:none
  }
  .selection-label span:last-child {
    display:none
  }
  .pill {
    font-size:9px;
    padding:5px 10px
  }
  .details-panel {
    right:10px;
    left:10px;
    width:auto
  }
  .legend {
    left:16px
  }
  .zoom-controls {
    right:16px
  }
}

@media(max-width:600px) {
  .topbar {
    column-gap:13px
  }
  .brand {
    font-size:13px;
    gap:5px
  }
  .brand svg {
    width:21px
  }
  .brand>span {
    margin-left:-4px
  }
  .nav-button {
    padding:7px 8px;
    font-size:10px
  }
  .mobile-only {
    display:inline-flex;
    margin-left:auto
  }
  .app-shell {
    display:block
  }
  .workspace {
    height:100%
  }
  .sidebar {
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    width:280px;
    z-index:40;
    transform:translateX(-100%);
    box-shadow:12px 0 35px #19365317;
    visibility:hidden
  }
  .sidebar.is-open {
    transform:translateX(0);
    visibility:visible
  }
  .fund-date {
    display:block
  }
  .selection-label span:last-child {
    display:block
  }
  .toolbar {
    gap:7px
  }
  .minimum-filter {
    font-size:9px
  }
  .minimum-filter select {
    font-size:9px
  }
  .status-strip {
    padding:9px 19px 0;
    font-size:9px
  }
  .graph-caption {
    left:19px;
    font-size:8px;
    top:13px
  }
  .workspace-footer {
    padding:10px 19px
  }
  .details-panel {
    inset:8px 10px;
    width:auto
  }
  .legend {
    max-width:255px;
    bottom:13px
  }
  .zoom-controls {
    bottom:13px
  }
  .list-view {
    padding:19px
  }
  .list-intro p {
    font-size:9px
  }
  .table-scroll {
    margin-right:-8px
  }
  th,td {
    padding:10px 8px
  }
  .empty-state {
    top:43%
  }
}
