:root { color-scheme: dark; --bg: #0a0d12; --panel: #121821; --line: #26313e; --text: #edf2f7; --muted: #93a0b2; --accent: #d8b976; --green: #51c58b; --red: #f17d82; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% 0%, #202d3c 0, var(--bg) 38rem); color: var(--text); font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
.shell { max-width: 1440px; min-height: 100vh; margin: auto; padding: 56px 38px; }
[hidden] { display: none !important; }
.login-card { width: min(100%, 440px); margin: 8vh auto; padding: 42px; border: 1px solid var(--line); background: rgba(18, 24, 33, .9); box-shadow: 0 24px 70px #0008; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
h1, h2 { margin: 0; letter-spacing: -.03em; } h1 { font-size: clamp(30px, 4vw, 44px); } h2 { font-size: 28px; }
.intro, #updated-at, .user-actions { color: var(--muted); }
form { display: grid; gap: 18px; margin-top: 32px; }
label { display: grid; gap: 7px; color: #c4ceda; font-size: 12px; font-weight: 600; }
input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: #0d1219; color: var(--text); font: inherit; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #d8b97622; }
button { border: 0; border-radius: 3px; padding: 12px 16px; cursor: pointer; background: var(--accent); color: #11151a; font: inherit; font-weight: 750; } button:disabled { cursor: default; opacity: .5; }
.form-error { min-height: 1.2em; margin: -8px 0 0; color: var(--red); }
header, .panel-title, .user-actions, nav { display: flex; align-items: center; } header, .panel-title { justify-content: space-between; gap: 24px; } header { margin-bottom: 42px; } .user-actions { gap: 18px; }
.quiet { padding: 7px 0; background: none; color: var(--muted); font-size: 12px; } .quiet:hover { color: var(--text); }
nav { gap: 8px; border-bottom: 1px solid var(--line); } nav button { position: relative; padding: 13px 16px; border-radius: 0; background: transparent; color: var(--muted); } nav button.active { color: var(--text); } nav button.active::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; background: var(--accent); content: ""; } nav .disabled { color: #5b6571; cursor: not-allowed; } nav small { margin-left: 4px; font-weight: 500; }
.panel { margin-top: 26px; padding: 28px; border: 1px solid var(--line); background: rgba(18, 24, 33, .78); } #updated-at { margin: 0; font-size: 12px; } .table-message { color: var(--muted); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; white-space: nowrap; } th, td { padding: 13px 16px; border-bottom: 1px solid #202a36; text-align: right; } th { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; } .align-left { text-align: left; } td.align-left { font-weight: 650; } .col-logo { width: 44px; padding-right: 0; padding-left: 0; } .logo { display: block; width: 26px; height: 26px; border-radius: 4px; background: #ffffff0d; object-fit: contain; } .instrument { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; } .instrument:hover { color: var(--accent); border-bottom-color: var(--accent); } tr:hover td { background: #ffffff05; } .positive { color: var(--green); } .negative { color: var(--red); }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover, th.sortable:focus-visible { color: var(--text); outline: 0; } th.sortable::after { margin-left: 6px; color: #46536380; content: "\2195"; } th.sorted { color: var(--accent); } th.sorted[data-direction="asc"]::after { color: var(--accent); content: "\2191"; } th.sorted[data-direction="desc"]::after { color: var(--accent); content: "\2193"; }
.range-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } .range-controls label { flex-direction: row; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; } .range-controls input { width: auto; padding: 7px 9px; font-size: 12px; } .presets { display: flex; gap: 4px; } .presets button { padding: 7px 11px; background: #1a222d; color: var(--muted); font-size: 12px; font-weight: 600; } .presets button:hover { color: var(--text); } .presets button.active { background: var(--accent); color: #11151a; } .apply { padding: 8px 14px; font-size: 12px; }
#chart { min-height: 460px; margin-top: 6px; } .legend-link { color: inherit; text-decoration: none; border-bottom: 1px dashed #6ea8d8; } .legend-link:hover { color: #9cc7ea; }
#metrics-period, #returns-period, .table-note { margin: 0; color: var(--muted); font-size: 12px; } #metrics-wrap th[title], #returns-wrap th[title] { cursor: help; } #metrics-wrap td.align-left, #returns-wrap td.align-left { min-width: 260px; } #securities-wrap td.align-left { min-width: 150px; } .row-portfolio td { background: #d8b9760a; } .row-portfolio td.align-left { box-shadow: inset 2px 0 0 var(--accent); } .group-end { border-right: 1px solid #2f3b49; } .footnote { margin: 14px 0 0; color: #6d7a8a; font-size: 11px; line-height: 1.5; }
.rating-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 4px 0 22px; border: 1px solid #202a36; border-radius: 8px; background: #202a36; overflow: hidden; } .rating-band-card { padding: 12px 16px; background: #141b24; } .rating-band-label { margin: 0 0 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; } .rating-band-card strong { font-size: 15px; font-weight: 700; }
.rating-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; } .rating-column { min-width: 0; } .rating-block { min-width: 0; } .rating-block-title { margin: 14px 0 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; } .rating-column > .rating-block:first-child .rating-block-title { margin-top: 0; } .rating-table { table-layout: fixed; } .rating-table th, .rating-table td { padding: 7px 10px; white-space: normal; } .rating-table th { font-size: 9px; } .rating-table td.align-left, .rating-table th.align-left { width: 42%; font-weight: 500; } .rating-table td:not(.align-left), .rating-table th:not(.align-left) { text-align: center; } .rating-parent td.align-left { font-weight: 700; } .rating-parent + .rating-child td { border-top: 0; } .rating-child td.align-left { padding-left: 26px; color: var(--muted); } .rating-child + .rating-parent td { border-top: 1px solid #202a36; }
.gauge { display: inline-flex; gap: 2px; cursor: help; } .gauge-segment { width: 7px; height: 12px; border-radius: 1px; background: #202a36; } .financial-value { font-variant-numeric: tabular-nums; } .rating-muted { color: #6d7a8a; } .section-rule { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; } .section-rule::after { content: ""; flex: 1; height: 1px; background: #202a36; }
.rating-radars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .rating-radar { min-width: 0; border: 1px solid #202a36; border-radius: 8px; background: #141b24; }
.attribution-region { margin-bottom: 26px; } .attribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.attribution-card { min-width: 0; border: 1px solid #202a36; border-radius: 8px; background: #141b24; padding: 12px 14px; }
.attribution-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.attribution-title { margin: 0; font-size: 12px; font-weight: 700; color: #edf2f7; }
.attribution-windows { display: inline-flex; gap: 4px; } .attribution-windows button { border: 1px solid #26313e; background: #0f151d; color: #93a0b2; border-radius: 5px; padding: 3px 9px; font-size: 11px; cursor: pointer; } .attribution-windows button:hover { color: #edf2f7; } .attribution-windows button.active { background: #d8b976; border-color: #d8b976; color: #10161e; font-weight: 600; }
.attribution-stats { margin: 6px 0 2px; font-size: 11px; color: #93a0b2; } .attribution-chart { min-height: 60px; }
.attribution-wide { margin-top: 16px; } .attribution-chart-tall { min-height: 320px; }
.beta-table { table-layout: auto; } .beta-table th, .beta-table td { padding: 6px 8px; white-space: nowrap; } .beta-table td.align-left { max-width: 220px; overflow: hidden; text-overflow: ellipsis; } .beta-table .beta-sub { color: var(--muted); font-size: 10px; font-weight: 500; } .beta-table .beta-weak { color: #6b7789; }
.exposure-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.exposure-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; } .exposure-tabs button { border: 1px solid #26313e; background: #0f151d; color: #93a0b2; border-radius: 5px; padding: 5px 11px; font-size: 11px; cursor: pointer; } .exposure-tabs button:hover { color: #edf2f7; } .exposure-tabs button.active { background: #d8b976; border-color: #d8b976; color: #10161e; font-weight: 600; }
.exposure-chart { margin-bottom: 18px; }
.brinson-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.brinson-card { display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 6px 10px; border: 1px solid #26313e; border-radius: 6px; background: #0f151d; }
.brinson-card span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brinson-card b { font-size: 13px; }
.brinson-table { table-layout: auto; } .brinson-table th, .brinson-table td { padding: 7px 10px; white-space: nowrap; } .brinson-table td.align-left { font-weight: 500; white-space: normal; }
.brinson-table tfoot td { border-top: 1px solid #26313e; border-bottom: 0; font-weight: 700; }
.correlation-chart { margin-bottom: 18px; overflow-x: auto; }
.candidate-table { table-layout: auto; } .candidate-table th, .candidate-table td { padding: 8px 10px; white-space: nowrap; } .candidate-table td.align-left { font-weight: 500; } .candidate-rank { width: 30px; color: var(--muted); font-weight: 500; }
.candidate-held { margin-left: 8px; border: 1px solid #d8b976; border-radius: 4px; padding: 1px 5px; color: #d8b976; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.screen-manager { margin: 4px 0 18px; }
.screen-form { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.screen-form input, .screen-form textarea { border: 1px solid var(--line); border-radius: 6px; background: #0d1218; padding: 9px 11px; color: var(--text); font-family: inherit; font-size: 12px; }
.screen-form textarea { resize: vertical; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; line-height: 1.5; }
.screen-form input:focus, .screen-form textarea:focus { outline: none; border-color: #4c6a8f; }
.screen-form button { border: 1px solid #4c6a8f; border-radius: 6px; background: #17212d; padding: 9px 16px; color: var(--text); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.screen-form button:hover:not(:disabled) { background: #1e2a38; }
.screen-form button:disabled { opacity: .5; cursor: default; }
.screen-error:empty { display: none; }
.screen-error { margin: 8px 0 0; color: #d97070; font-size: 12px; }
.screen-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.screen-tag { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.screen-tag-editable button { border: 0; background: none; padding: 0 0 1px; color: inherit; font-size: 13px; line-height: 1; cursor: pointer; opacity: .6; }
.screen-tag-editable button:hover:not(:disabled) { opacity: 1; }
.screen-ranks { display: flex; flex-wrap: wrap; gap: 3px 0; } .screen-ranks .screen-tag b { opacity: .75; font-variant-numeric: tabular-nums; } .screen-ranks-empty { color: var(--muted); }
.screen-count { color: var(--muted); font-size: 11px; }
.metric-hoverable { cursor: help; }
.rating-table tbody tr:hover td { background: #182029; }
.metric-tooltip { position: fixed; z-index: 40; min-width: 235px; max-width: 330px; border: 1px solid #2b3646; border-radius: 8px; background: #10161e; padding: 12px 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); pointer-events: none; }
.metric-tooltip[hidden] { display: none; }
.metric-tooltip-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.metric-tooltip-caption { margin: 8px 0 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.metric-tooltip-caption.metric-top { color: #7fbf95; } .metric-tooltip-caption.metric-bottom { color: #c98a8a; }
.metric-tooltip ul { margin: 0; padding: 0; list-style: none; }
.metric-tooltip li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 2px 0; font-size: 11px; }
.metric-tooltip li span { color: #c3ccd8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-tooltip li strong { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (max-width: 680px) { .shell { padding: 28px 16px; } .login-card { padding: 28px; } header { align-items: flex-start; } .user-actions { align-items: flex-end; flex-direction: column; gap: 4px; } nav { overflow-x: auto; } nav button { padding: 13px 10px; } .panel { padding: 18px; } .panel-title { align-items: flex-start; flex-direction: column; gap: 8px; } .attribution-grid { grid-template-columns: minmax(0, 1fr); } .rating-grid { grid-template-columns: minmax(0, 1fr); } .rating-radars { grid-template-columns: minmax(0, 1fr); } .screen-form { grid-template-columns: minmax(0, 1fr); } }
