/*
Theme Name: Ventara Capital Signal Mosaic
Theme URI: https://ventaracapital.com/
Author: Ventara Capital LLC
Author URI: https://ventaracapital.com/
Description: Private research and paper-trading dashboard prototype for Signal Mosaic by Ventara Capital.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ventara-signal-mosaic
*/

:root {
  --sm-ink: #0a0a0b;
  --sm-ink-soft: #171719;
  --sm-paper: #ffffff;
  --sm-canvas: #f4f4f2;
  --sm-panel: #ffffff;
  --sm-panel-soft: #f7f7f5;
  --sm-line: #deded9;
  --sm-line-strong: #c7c7c0;
  --sm-muted: #686864;
  --sm-faint: #90908a;
  --sm-positive: #087a55;
  --sm-positive-soft: #e7f4ef;
  --sm-negative: #b4232c;
  --sm-negative-soft: #fbeaec;
  --sm-caution: #9a6400;
  --sm-caution-soft: #fff4d8;
  --sm-info: #275b8d;
  --sm-info-soft: #e9f1f8;
  --sm-shadow: 0 18px 45px rgba(10, 10, 11, 0.08);
  --sm-radius: 18px;
  --sm-radius-sm: 12px;
  --sm-sidebar: 248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--sm-canvas);
  color: var(--sm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-width: 320px;
  text-rendering: optimizeLegibility;
}

body.vsm-public-entry {
  background: #000;
  color: #fff;
}

.sm-entry {
  align-items: center;
  background: #000;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(22px, 4vw, 64px);
  width: 100%;
}

.sm-entry__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 34px);
  justify-content: center;
  max-width: min(1180px, 94vw);
  width: 100%;
}

.sm-entry__lockup {
  display: block;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  width: min(1120px, 94vw);
}

.sm-entry__login {
  border: 0;
  color: #fff;
  display: inline-flex;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.2em;
  min-width: 190px;
  padding: 12px 18px 12px 22px;
  text-decoration: none;
  text-underline-offset: 7px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sm-entry__login:hover,
.sm-entry__login:focus-visible {
  color: #fff;
  opacity: 0.72;
  text-decoration: underline;
  transform: translateY(-1px);
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #4f91d2;
  outline-offset: 3px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.sm-app {
  display: grid;
  grid-template-columns: var(--sm-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sm-sidebar {
  background: var(--sm-ink);
  color: var(--sm-paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 27px 20px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.sm-brand {
  align-items: center;
  display: flex;
  gap: 13px;
  min-height: 68px;
  padding: 0 8px;
}

.sm-brand__crest {
  display: block;
  height: 58px;
  object-fit: contain;
  width: 42px;
}

.sm-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.sm-brand__byline {
  color: #a8a8a3;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-transform: uppercase;
}

.sm-private-badge {
  align-items: center;
  border: 1px solid #333335;
  border-radius: 999px;
  color: #c9c9c4;
  display: inline-flex;
  font-size: 10px;
  gap: 7px;
  letter-spacing: 0.07em;
  margin: 24px 8px 18px;
  padding: 7px 10px;
  text-transform: uppercase;
  width: max-content;
}

.sm-private-badge::before {
  background: #bfc0ba;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.sm-nav {
  display: grid;
  gap: 5px;
}

.sm-nav__item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #f2f2ef;
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 29px 1fr;
  padding: 10px 11px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  width: 100%;
}

.sm-nav__item:hover {
  background: #171719;
  color: #ffffff;
}

.sm-nav__item[aria-current="page"] {
  background: #2a2a2c;
  border-color: #3b3b3e;
  color: #ffffff;
}

.sm-nav-settings {
  position: relative;
}

.sm-nav__item--settings {
  grid-template-columns: 29px 1fr 18px;
}

.sm-nav__chevron {
  height: 16px;
  transition: transform 160ms ease;
  width: 16px;
}

.sm-nav__item--settings[aria-expanded="true"] .sm-nav__chevron {
  transform: rotate(180deg);
}

.sm-nav-submenu {
  border-left: 1px solid #3b3b3e;
  margin: 4px 0 2px 25px;
  padding: 3px 0 3px 14px;
}

.sm-nav-submenu__item {
  align-items: center;
  border-radius: 8px;
  color: #c8c8c4;
  display: flex;
  font-size: 12px;
  gap: 10px;
  padding: 9px 10px;
  text-decoration: none;
}

.sm-nav-submenu__item:hover,
.sm-nav-submenu__item:focus-visible {
  background: #171719;
  color: #ffffff;
}

.sm-nav-submenu__item svg {
  height: 16px;
  width: 16px;
}

.sm-nav__icon {
  height: 18px;
  justify-self: center;
  width: 18px;
}

.sm-nav__key {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  letter-spacing: 0.04em;
  opacity: 0.88;
  width: 26px;
}

.sm-nav__label {
  font-size: 13px;
  font-weight: 600;
}

.sm-main {
  min-width: 0;
  padding: 28px 30px 46px;
}

.sm-topbar {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto 20px;
  max-width: 1560px;
}

.sm-heading__eyebrow {
  color: var(--sm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.sm-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.sm-top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sm-market-control {
  position: relative;
}

.sm-market-control__button {
  align-items: center;
  background: var(--sm-paper);
  border: 1px solid var(--sm-line-strong);
  border-radius: 12px;
  color: var(--sm-ink);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px 1fr 16px;
  min-height: 44px;
  padding: 6px 10px;
  text-align: left;
}

.sm-market-control__flag {
  align-items: center;
  background: var(--sm-ink);
  border-radius: 7px;
  color: var(--sm-paper);
  display: inline-flex;
  font-size: 8px;
  font-weight: 800;
  height: 27px;
  justify-content: center;
  letter-spacing: 0.06em;
  width: 30px;
}

.sm-market-control__button strong,
.sm-market-control__button small {
  display: block;
  white-space: nowrap;
}

.sm-market-control__button strong {
  font-size: 10px;
}

.sm-market-control__button small {
  color: var(--sm-muted);
  font-size: 8px;
  margin-top: 2px;
}

.sm-market-menu {
  background: var(--sm-paper);
  border: 1px solid var(--sm-line);
  border-radius: 12px;
  box-shadow: var(--sm-shadow);
  left: 0;
  min-width: 245px;
  padding: 8px;
  position: absolute;
  top: 50px;
  z-index: 45;
}

.sm-market-menu__label {
  color: var(--sm-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 8px;
  text-transform: uppercase;
}

.sm-market-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--sm-ink);
  display: flex;
  justify-content: space-between;
  padding: 9px 8px;
  text-align: left;
  width: 100%;
}

.sm-market-menu button.is-current {
  background: #eeeeeb;
}

.sm-market-menu button:disabled {
  color: var(--sm-faint);
}

.sm-market-menu button span {
  font-size: 10px;
  font-weight: 650;
}

.sm-market-menu button small {
  font-size: 8px;
}

.sm-search {
  position: relative;
}

.sm-search__field {
  background: var(--sm-paper);
  border: 1px solid var(--sm-line-strong);
  border-radius: 999px;
  color: var(--sm-ink);
  height: 44px;
  min-width: 285px;
  padding: 0 86px 0 17px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sm-search__field:focus {
  border-color: var(--sm-ink);
  box-shadow: 0 0 0 3px rgba(39, 91, 141, 0.18);
  outline: none;
}

.sm-search__button {
  background: var(--sm-ink);
  border: 0;
  border-radius: 999px;
  color: var(--sm-paper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  height: 34px;
  padding: 0 15px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.sm-search__message {
  background: var(--sm-negative-soft);
  border-radius: 7px;
  color: var(--sm-negative);
  display: none;
  font-size: 10px;
  padding: 7px 9px;
  position: absolute;
  right: 0;
  top: 50px;
  width: max-content;
  z-index: 30;
}

.sm-search__message.is-visible {
  display: block;
}

.sm-status-strip {
  align-items: center;
  background: #efefec;
  border: 1px solid #dadad5;
  border-radius: 12px;
  color: #484846;
  display: flex;
  font-size: 11px;
  gap: 10px;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1560px;
  padding: 10px 13px;
}

.sm-status-strip__copy {
  align-items: center;
  display: flex;
  gap: 9px;
}

.sm-status-strip__marker {
  align-items: center;
  background: var(--sm-ink);
  border-radius: 50%;
  color: var(--sm-paper);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.sm-status-strip__time {
  color: var(--sm-muted);
  white-space: nowrap;
}

.sm-view {
  display: none;
  margin: 0 auto;
  max-width: 1560px;
}

.sm-view.is-active {
  display: block;
}

.sm-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.sm-stat {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-sm);
  min-width: 0;
  padding: 15px 16px 14px;
}

.sm-stat__label {
  color: var(--sm-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sm-stat__value {
  font-size: clamp(18px, 1.55vw, 24px);
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -0.045em;
  margin-top: 8px;
  white-space: nowrap;
}

.sm-stat__note {
  color: var(--sm-faint);
  font-size: 9px;
  line-height: 1.35;
  margin-top: 5px;
}

.is-positive {
  color: var(--sm-positive) !important;
}

.is-negative {
  color: var(--sm-negative) !important;
}

.is-caution {
  color: var(--sm-caution) !important;
}

.sm-overview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.72fr);
}

.sm-stack {
  display: grid;
  gap: 14px;
}

.sm-panel {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  min-width: 0;
  padding: 19px;
}

.sm-panel--flush {
  padding: 0;
}

.sm-panel__head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.sm-panel--flush .sm-panel__head {
  margin: 0;
  padding: 19px 19px 12px;
}

.sm-panel__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}

.sm-panel__subtitle {
  color: var(--sm-muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.sm-panel__meta {
  color: var(--sm-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding-top: 2px;
  text-align: right;
  text-transform: uppercase;
}

.sm-market-chart-panel {
  min-height: 430px;
}

.sm-quote-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--sm-line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: -2px 0 17px;
  padding-bottom: 15px;
}

.sm-quote-head__identity {
  align-items: baseline;
  display: flex;
  gap: 9px;
}

.sm-quote-head__identity strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.sm-quote-head__identity span {
  color: var(--sm-muted);
  font-size: 9px;
}

.sm-quote-head__price {
  align-items: baseline;
  display: flex;
  gap: 9px;
  margin-top: 6px;
}

.sm-quote-head__price > span {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.sm-quote-head__price small {
  font-size: 9px;
  font-weight: 700;
}

.sm-quote-facts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, auto);
}

.sm-quote-facts div {
  border-left: 1px solid var(--sm-line);
  padding-left: 13px;
}

.sm-quote-facts span,
.sm-quote-facts strong {
  display: block;
  white-space: nowrap;
}

.sm-quote-facts span {
  color: var(--sm-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sm-quote-facts strong {
  font-size: 9px;
  margin-top: 5px;
}

.sm-chart-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.sm-range {
  background: #eeeeeb;
  border-radius: 8px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.sm-range button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--sm-muted);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  padding: 6px 8px;
}

.sm-range button[aria-pressed="true"] {
  background: var(--sm-paper);
  box-shadow: 0 1px 3px rgba(10, 10, 11, 0.12);
  color: var(--sm-ink);
}

.sm-chart-canvas {
  min-width: 0;
  position: relative;
}

.sm-chart-canvas--primary {
  height: 286px;
  margin-top: 8px;
}

.sm-chart-canvas--history {
  height: 280px;
}

.sm-chart-canvas--portfolio {
  height: 265px;
}

.sm-chart-canvas--donut {
  height: 150px;
  width: 150px;
}

.sm-history-panel,
.sm-watch-table-panel,
.sm-decision-panel {
  margin-top: 14px;
}

.sm-table-wrap {
  overflow-x: auto;
}

.sm-table {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

.sm-table th {
  color: var(--sm-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.sm-table td {
  border-top: 1px solid var(--sm-line);
  font-variant-numeric: tabular-nums;
  padding: 11px 12px;
  vertical-align: middle;
}

.sm-table tbody tr {
  transition: background 120ms ease;
}

.sm-table tbody tr:hover {
  background: var(--sm-panel-soft);
}

.sm-table tbody tr.is-selected {
  background: #ededeb;
  box-shadow: 3px 0 0 var(--sm-ink) inset;
}

.sm-table--numeric td:not(:first-child),
.sm-table--numeric th:not(:first-child) {
  text-align: right;
}

.sm-ticker-button {
  background: none;
  border: 0;
  color: var(--sm-ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.sm-ticker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.sm-company {
  color: var(--sm-muted);
  display: block;
  font-size: 9px;
  margin-top: 3px;
  white-space: nowrap;
}

.sm-rank {
  color: var(--sm-faint);
  font-size: 10px;
  width: 26px;
}

.sm-score-inline {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.sm-score-inline__track {
  background: #e5e5e1;
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
  width: 38px;
}

.sm-score-inline__fill {
  background: var(--sm-positive);
  display: block;
  height: 100%;
}

.sm-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding: 5px 7px;
  white-space: nowrap;
}

.sm-chip--positive {
  background: var(--sm-positive-soft);
  color: var(--sm-positive);
}

.sm-chip--caution {
  background: var(--sm-caution-soft);
  color: var(--sm-caution);
}

.sm-chip--negative {
  background: var(--sm-negative-soft);
  color: var(--sm-negative);
}

.sm-chip--neutral {
  background: #ededeb;
  color: #4e4e4b;
}

.sm-analysis {
  overflow: hidden;
  position: relative;
}

.sm-analysis::before {
  background: var(--sm-ink);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.sm-analysis__identity {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.sm-analysis__ticker {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sm-analysis__company {
  color: var(--sm-muted);
  font-size: 10px;
  margin-top: 3px;
}

.sm-analysis__price {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.sm-analysis__change {
  font-size: 9px;
  margin-top: 3px;
  text-align: right;
}

.sm-score-pair {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-score-card {
  background: var(--sm-panel-soft);
  border: 1px solid #e6e6e1;
  border-radius: 11px;
  padding: 12px;
}

.sm-score-card__label {
  color: var(--sm-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sm-score-card__value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.05em;
  margin-top: 5px;
}

.sm-score-card__value small {
  color: var(--sm-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.sm-score-card__note {
  color: var(--sm-muted);
  font-size: 8px;
  margin-top: 2px;
}

.sm-chart {
  border-bottom: 1px solid var(--sm-line);
  border-top: 1px solid var(--sm-line);
  margin: 15px 0;
  padding: 13px 0 11px;
}

.sm-chart__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sm-chart__label {
  color: var(--sm-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sm-chart__trend {
  font-size: 9px;
  font-weight: 700;
}

.sm-chart svg {
  display: block;
  height: 82px;
  overflow: visible;
  width: 100%;
}

.sm-chart__grid {
  stroke: #e4e4df;
  stroke-width: 1;
}

.sm-chart__area {
  fill: rgba(39, 91, 141, 0.09);
}

.sm-chart__line {
  fill: none;
  stroke: var(--sm-info);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.sm-confidence {
  align-items: center;
  display: flex;
  font-size: 9px;
  gap: 9px;
  margin-bottom: 12px;
}

.sm-confidence__label {
  color: var(--sm-muted);
  min-width: 65px;
}

.sm-confidence__track {
  background: #e6e6e2;
  border-radius: 99px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.sm-confidence__fill {
  background: var(--sm-info);
  display: block;
  height: 100%;
}

.sm-confidence__value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.sm-finding-list {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
}

.sm-finding {
  align-items: flex-start;
  display: grid;
  font-size: 9px;
  gap: 8px;
  grid-template-columns: 8px 1fr;
  line-height: 1.42;
}

.sm-finding::before {
  background: var(--sm-positive);
  border-radius: 50%;
  content: "";
  height: 6px;
  margin-top: 4px;
  width: 6px;
}

.sm-finding--risk::before {
  background: var(--sm-negative);
}

.sm-button-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.sm-button {
  align-items: center;
  background: var(--sm-paper);
  border: 1px solid var(--sm-line-strong);
  border-radius: 9px;
  color: var(--sm-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: center;
  min-height: 37px;
  padding: 8px 11px;
  text-decoration: none;
}

.sm-button:hover {
  background: var(--sm-panel-soft);
  border-color: var(--sm-ink);
}

.sm-button--dark {
  background: var(--sm-ink);
  border-color: var(--sm-ink);
  color: var(--sm-paper);
}

.sm-button--dark:hover {
  background: #2a2a2c;
  border-color: #2a2a2c;
}

.sm-mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.sm-watchlist {
  display: grid;
  gap: 1px;
}

.sm-watch-row {
  align-items: center;
  border-top: 1px solid var(--sm-line);
  display: grid;
  font-size: 10px;
  gap: 10px;
  grid-template-columns: 1fr auto auto;
  padding: 10px 0;
}

.sm-watch-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.sm-watch-row__score,
.sm-watch-row__price {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sm-watch-row__score {
  color: var(--sm-muted);
  font-size: 9px;
}

.sm-activity {
  display: grid;
}

.sm-activity__item {
  align-items: flex-start;
  border-top: 1px solid var(--sm-line);
  display: grid;
  gap: 10px;
  grid-template-columns: 9px 1fr auto;
  padding: 11px 0;
}

.sm-activity__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.sm-activity__dot {
  background: var(--sm-info);
  border-radius: 50%;
  height: 7px;
  margin-top: 4px;
  width: 7px;
}

.sm-activity__dot--positive {
  background: var(--sm-positive);
}

.sm-activity__dot--caution {
  background: var(--sm-caution);
}

.sm-activity__dot--negative {
  background: var(--sm-negative);
}

.sm-activity__title {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.sm-activity__copy {
  color: var(--sm-muted);
  font-size: 9px;
  line-height: 1.42;
  margin-top: 3px;
}

.sm-activity__time {
  color: var(--sm-faint);
  font-size: 8px;
  white-space: nowrap;
}

.sm-section-intro {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sm-section-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}

.sm-section-intro p {
  color: var(--sm-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
  max-width: 670px;
}

.sm-content-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.sm-allocation {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 150px 1fr;
}

.sm-content-grid--portfolio {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  margin-bottom: 14px;
}

.sm-donut {
  align-items: center;
  background: conic-gradient(var(--sm-info) 0 31%, var(--sm-positive) 31% 58%, var(--sm-caution) 58% 79%, #777772 79% 100%);
  border-radius: 50%;
  display: flex;
  height: 138px;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 138px;
}

.sm-donut::after {
  background: var(--sm-panel);
  border-radius: 50%;
  content: "";
  height: 80px;
  position: absolute;
  width: 80px;
}

.sm-donut__label {
  font-size: 10px;
  font-weight: 800;
  position: relative;
  text-align: center;
  z-index: 1;
}

.sm-donut__label small {
  color: var(--sm-muted);
  display: block;
  font-size: 8px;
  font-weight: 500;
  margin-top: 2px;
}

.sm-legend {
  display: grid;
  gap: 9px;
}

.sm-legend__row {
  align-items: center;
  display: grid;
  font-size: 9px;
  gap: 8px;
  grid-template-columns: 8px 1fr auto;
}

.sm-legend__swatch {
  background: var(--swatch);
  border-radius: 2px;
  height: 8px;
  width: 8px;
}

.sm-legend__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sm-performance-chart svg {
  display: block;
  height: 210px;
  width: 100%;
}

.sm-performance-chart .grid {
  stroke: #e5e5e1;
  stroke-width: 1;
}

.sm-performance-chart .portfolio-area {
  fill: rgba(8, 122, 85, 0.08);
}

.sm-performance-chart .portfolio-line {
  fill: none;
  stroke: var(--sm-positive);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.sm-performance-chart .benchmark-line {
  fill: none;
  stroke: #777772;
  stroke-dasharray: 6 5;
  stroke-width: 2;
}

.sm-performance-key {
  display: flex;
  font-size: 9px;
  gap: 16px;
  margin-top: 8px;
}

.sm-performance-key span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.sm-performance-key i {
  background: var(--sm-positive);
  display: inline-block;
  height: 2px;
  width: 18px;
}

.sm-performance-key .benchmark i {
  background: repeating-linear-gradient(90deg, #777772 0 5px, transparent 5px 8px);
}

.sm-alert-card {
  align-items: flex-start;
  border: 1px solid var(--sm-line);
  border-left: 3px solid var(--alert-color, var(--sm-info));
  border-radius: 11px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.sm-alert-card + .sm-alert-card {
  margin-top: 9px;
}

.sm-alert-card__title {
  font-size: 11px;
  font-weight: 750;
}

.sm-alert-card__copy {
  color: var(--sm-muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 4px;
}

.sm-alert-card__time {
  color: var(--sm-faint);
  font-size: 8px;
  white-space: nowrap;
}

.sm-asset-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sm-asset-card {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  min-width: 0;
  padding: 15px;
}

.sm-asset-card__top {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sm-asset-card__price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

.sm-asset-card__price strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.sm-asset-card__price span {
  font-size: 8px;
  font-weight: 750;
}

.sm-asset-card__scores {
  border-bottom: 1px solid var(--sm-line);
  border-top: 1px solid var(--sm-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 0;
}

.sm-asset-card__scores div + div {
  border-left: 1px solid var(--sm-line);
  padding-left: 8px;
}

.sm-asset-card__scores span,
.sm-asset-card__scores strong {
  display: block;
}

.sm-asset-card__scores span {
  color: var(--sm-muted);
  font-size: 7px;
}

.sm-asset-card__scores strong {
  font-size: 12px;
  margin-top: 3px;
}

.sm-asset-card__trigger {
  margin-top: 11px;
}

.sm-asset-card__trigger span,
.sm-asset-card__trigger strong {
  display: block;
}

.sm-asset-card__trigger span {
  color: var(--sm-muted);
  font-size: 7px;
  text-transform: uppercase;
}

.sm-asset-card__trigger strong {
  font-size: 9px;
  line-height: 1.35;
  margin-top: 4px;
}

.sm-decision-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sm-decision {
  align-items: flex-start;
  display: grid;
  gap: 9px;
  grid-template-columns: 8px 1fr auto;
  padding: 4px 14px;
}

.sm-decision + .sm-decision {
  border-left: 1px solid var(--sm-line);
}

.sm-decision strong {
  font-size: 9px;
}

.sm-decision p {
  color: var(--sm-muted);
  font-size: 8px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.sm-decision time {
  color: var(--sm-faint);
  font-size: 8px;
}

.sm-boundary-list {
  display: grid;
  gap: 12px;
}

.sm-boundary-list > div {
  align-items: flex-start;
  display: grid;
  font-size: 10px;
  gap: 9px;
  grid-template-columns: 17px 1fr;
  line-height: 1.45;
}

.sm-boundary-list svg {
  color: var(--sm-muted);
  height: 16px;
  margin-top: 1px;
  width: 16px;
}

.sm-dialog-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.sm-dialog-summary > div {
  align-items: center;
  border-bottom: 1px solid var(--sm-line);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  padding-bottom: 7px;
}

.sm-dialog-summary span {
  color: var(--sm-muted);
}

.sm-table tfoot td {
  background: var(--sm-panel-soft);
  border-top: 2px solid var(--sm-line-strong);
  font-weight: 750;
}

.sm-category-list {
  display: grid;
  gap: 12px;
}

.sm-category {
  display: grid;
  gap: 6px;
}

.sm-category__head {
  align-items: center;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
}

.sm-category__name {
  color: var(--sm-muted);
}

.sm-category__value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.sm-category__track {
  background: #e7e7e2;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.sm-category__fill {
  background: var(--sm-info);
  border-radius: inherit;
  height: 100%;
}

.sm-evidence-list {
  display: grid;
  gap: 9px;
}

.sm-evidence {
  background: var(--sm-panel-soft);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.45;
  padding: 10px 11px;
}

button.sm-evidence {
	appearance: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

button.sm-evidence:hover,
button.sm-evidence:focus-visible,
button.sm-evidence[aria-pressed="true"] {
	border-color: #111;
	background: #f4f4f1;
	outline: none;
}

.sm-dialog-section-copy {
	margin: -4px 0 14px;
	color: var(--sm-muted);
	font-size: 13px;
}

.sm-evidence-detail {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--sm-border);
	border-radius: 10px;
}

.sm-evidence-detail__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

.sm-evidence-detail__head strong,
.sm-evidence-detail__head span {
	display: block;
}

.sm-evidence-detail__head span:not(.sm-chip) {
	margin-top: 4px;
	color: var(--sm-muted);
	font-size: 12px;
}

.sm-chart-canvas--evidence {
	height: 300px;
}

.sm-dialog__surface--form {
	width: min(820px, calc(100vw - 24px));
}

.sm-trade-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.sm-trade-form label {
	display: grid;
	gap: 7px;
	color: #1b1b1b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.sm-trade-form input,
.sm-trade-form select,
.sm-trade-form textarea {
	width: 100%;
	border: 2px solid #8c8c86;
	border-radius: 8px;
	padding: 10px 12px;
	background: #fafafa;
	color: var(--sm-ink);
	font: inherit;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sm-trade-form input:hover,
.sm-trade-form select:hover,
.sm-trade-form textarea:hover {
	border-color: #555550;
}

.sm-trade-form input:focus,
.sm-trade-form select:focus,
.sm-trade-form textarea:focus {
	border-color: #000;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
	outline: none;
}

.sm-trade-form input[readonly] {
	background: #ececea;
	color: #444440;
}

.sm-trade-form__wide {
	grid-column: 1 / -1;
}

.sm-trade-form__message {
	min-height: 18px;
	color: var(--sm-muted);
	font-size: 12px;
}

.sm-target-line {
	display: block;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.5;
}

.sm-view-tabs,
.sm-lot-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 18px 0 10px;
}

.sm-view-tab,
.sm-lot-tab {
	border: 1px solid #c7c7c1;
	border-radius: 999px;
	background: #fff;
	color: var(--sm-muted);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 13px;
	cursor: pointer;
}

.sm-view-tab.is-active,
.sm-lot-tab.is-active {
	background: #0a0a0b;
	border-color: #0a0a0b;
	color: #fff;
}

.sm-dialog__surface--lot {
	box-sizing: border-box;
	overflow-x: hidden;
	width: 100%;
}

#sm-lot-dialog {
	max-width: 960px;
	width: calc(100% - 32px);
}

.sm-dialog__surface--lot > *,
.sm-lot-panel,
.sm-lot-detail-grid,
.sm-lot-detail {
	min-width: 0;
}

.sm-lot-detail strong {
	overflow-wrap: anywhere;
}

.sm-lot-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.sm-lot-detail {
	border: 1px solid var(--sm-line);
	border-radius: 10px;
	background: #fafafa;
	padding: 13px;
}

.sm-lot-detail span,
.sm-lot-detail strong {
	display: block;
}

.sm-lot-detail span {
	color: var(--sm-muted);
	font-size: 11px;
	margin-bottom: 5px;
}

.sm-row-actions {
	display: inline-flex;
	gap: 5px;
}

.sm-icon-button {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid #b9b9b3;
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
}

.sm-icon-button:hover,
.sm-icon-button:focus-visible {
	border-color: #000;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.sm-position-status {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 5px 9px;
	font: inherit;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	white-space: nowrap;
}

button.sm-position-status { cursor: pointer; }
.sm-position-status--sell { background: #d9f3e8; color: #066642; }
.sm-position-status--hold { background: #f8dfe1; color: #9d1c27; }
.sm-position-status--review { background: #f8edd1; color: #815200; }
.sm-position-status--unscored { background: #e8e8e4; color: #555550; }

@media (max-width: 600px) {
	.sm-trade-form {
		grid-template-columns: 1fr;
	}

	.sm-lot-detail-grid {
		grid-template-columns: 1fr;
	}
}

.sm-evidence strong {
  display: block;
  font-size: 9px;
  margin-bottom: 3px;
}

.sm-evidence span {
  color: var(--sm-muted);
}

.sm-dialog__surface--statement {
	width: 100%;
}

#sm-pnl-dialog {
	max-width: 1080px;
	width: calc(100% - 24px);
}

.sm-table-wrap--statement {
	overflow-x: visible;
}

.sm-statement-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--sm-muted);
	font-size: 12px;
}

.sm-statement-table {
	table-layout: fixed;
	width: 100%;
}

.sm-statement-table th,
.sm-statement-table td {
	padding: 9px 8px;
	font-size: 12px;
	white-space: nowrap;
}

.sm-statement-table th:first-child,
.sm-statement-table td:first-child {
	width: 38%;
	white-space: normal;
	line-height: 1.3;
}

.sm-statement-table th:not(:first-child),
.sm-statement-table td:not(:first-child) {
	width: 15.5%;
}

.sm-statement-table tbody tr[data-emphasis="true"] td {
	font-weight: 700;
	border-top: 1px solid #9a9a94;
}

.sm-statement-table td:first-child,
.sm-statement-table th:first-child {
	text-align: left;
}

@media (max-width: 700px) {
	.sm-statement-table th,
	.sm-statement-table td {
		padding: 7px 5px;
		font-size: 10px;
	}

	.sm-statement-table th:first-child,
	.sm-statement-table td:first-child {
		width: 34%;
	}

	.sm-statement-table th:not(:first-child),
	.sm-statement-table td:not(:first-child) {
		width: 16.5%;
	}
}

.sm-disclosure {
  background: #eeeeeb;
  border: 1px solid #d8d8d3;
  border-radius: 10px;
  color: var(--sm-muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 14px;
  padding: 10px 12px;
}

.sm-empty-state {
  color: var(--sm-muted);
  font-size: 10px;
  padding: 18px;
  text-align: center;
}

.sm-dialog {
  background: transparent;
  border: 0;
  max-height: 92vh;
  max-width: 820px;
  padding: 0;
  width: calc(100% - 34px);
}

.sm-dialog::backdrop {
  background: rgba(8, 8, 9, 0.72);
  backdrop-filter: blur(2px);
}

.sm-dialog__surface {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: var(--sm-shadow);
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px;
  width: 100%;
}

.sm-dialog__head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sm-dialog__ticker {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.sm-dialog__company {
  color: var(--sm-muted);
  font-size: 10px;
  margin-top: 4px;
}

.sm-dialog__close {
  align-items: center;
  background: var(--sm-ink);
  border: 0;
  border-radius: 50%;
  color: var(--sm-paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sm-dialog__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.sm-dialog__section {
  border: 1px solid var(--sm-line);
  border-radius: 12px;
  padding: 14px;
}

.sm-dialog__section h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 11px;
}

.sm-dialog__section--wide {
  grid-column: 1 / -1;
}

.sm-company-tabs {
  border-bottom: 1px solid var(--sm-line);
  display: flex;
  gap: 5px;
  margin: 0 -4px 16px;
  overflow-x: auto;
  padding: 0 4px 9px;
  scrollbar-width: thin;
}

.sm-company-page {
  margin: 0 auto;
  max-width: 1560px;
  padding: 22px;
}

.sm-report-card-workspace {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
  margin-top: 14px;
}

.sm-report-card-primary {
  order: -1;
}

.sm-report-card-menu {
  align-content: start;
  border-right: 1px solid var(--sm-line);
  display: grid;
  gap: 7px;
  padding-right: 14px;
}

.sm-report-card-menu .sm-evidence {
  align-items: center;
  background: #f6f6f3;
  border: 1px solid var(--sm-line);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 11px;
  text-align: left;
  width: 100%;
}

.sm-report-card-menu .sm-evidence[aria-pressed="true"] {
  background: var(--sm-ink);
  border-color: var(--sm-ink);
  color: var(--sm-paper);
}

.sm-report-card-menu .sm-evidence[aria-pressed="true"] span {
  color: #d7d7d2;
}

.sm-evidence__status {
  display: block;
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}

.sm-evidence__copy {
  display: block;
  min-width: 0;
}

.sm-evidence__grade {
  align-items: center;
  align-self: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  min-width: 32px;
}

.sm-report-card-workspace .sm-evidence-detail {
  margin: 0;
  min-width: 0;
}

.sm-evidence-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.sm-evidence-fact {
  background: #f6f6f3;
  border: 1px solid var(--sm-line);
  border-radius: 9px;
  min-width: 0;
  padding: 10px;
}

.sm-evidence-fact span {
  color: var(--sm-muted);
  display: block;
  font-size: 9px;
  margin-bottom: 5px;
}

.sm-evidence-fact__head {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sm-evidence-fact small {
  color: var(--sm-muted);
  display: block;
  font-size: 8px;
  margin-top: 6px;
}

.sm-trend-indicator {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex !important;
  flex: 0 0 22px;
  font-size: 13px !important;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  margin: 0 !important;
  width: 22px;
}

.sm-trend-indicator--positive { color: var(--sm-positive) !important; }
.sm-trend-indicator--negative { color: var(--sm-negative) !important; }
.sm-trend-indicator--neutral { color: #777772 !important; }

.sm-evidence-fact strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .sm-report-card-workspace { grid-template-columns: 1fr; }
  .sm-report-card-menu {
    border-bottom: 1px solid var(--sm-line);
    border-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 12px;
  }
  .sm-evidence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .sm-report-card-menu { grid-template-columns: 1fr; }
  .sm-evidence-facts { grid-template-columns: 1fr; }
}

.sm-company-tab {
  background: #f4f4f1;
  border: 1px solid var(--sm-line);
  border-radius: 999px;
  color: var(--sm-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 11px;
}

.sm-company-tab.is-active {
  background: var(--sm-ink);
  border-color: var(--sm-ink);
  color: var(--sm-paper);
}

.sm-company-panel[hidden] { display: none; }

.sm-profile-cover {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.sm-profile-grade {
  background: #f6f6f3;
  border: 1px solid var(--sm-line);
  border-radius: 12px;
  padding: 13px;
}

.sm-profile-grade span { color: var(--sm-muted); display: block; font-size: 9px; text-transform: uppercase; }
.sm-profile-grade strong { display: block; font-size: 25px; margin-top: 5px; }

.sm-profile-document-list { display: grid; gap: 8px; }
.sm-profile-document {
  align-items: flex-start;
  border: 1px solid var(--sm-line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  padding: 11px;
}
.sm-profile-document__light { border-radius: 50%; height: 9px; margin-top: 3px; width: 9px; }
.sm-profile-document__light--positive { background: var(--sm-positive); }
.sm-profile-document__light--negative { background: var(--sm-negative); }
.sm-profile-document__light--caution { background: var(--sm-caution); }
.sm-profile-document__light--neutral { background: #8b8b86; }
.sm-profile-document strong { display: block; font-size: 11px; }
.sm-profile-document p { color: var(--sm-muted); font-size: 10px; line-height: 1.5; margin: 4px 0 0; }
.sm-profile-document time { color: var(--sm-faint); font-size: 9px; white-space: nowrap; }
.sm-profile-document__title { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.sm-profile-entry-grade { align-items: center; border: 1px solid var(--sm-line); border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 800; justify-content: center; min-height: 25px; min-width: 30px; padding: 2px 8px; }
.sm-profile-facts { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 0; }
.sm-profile-facts div { background: #f6f6f3; border: 1px solid var(--sm-line); border-radius: 7px; min-width: 0; padding: 8px; }
.sm-profile-facts dt { color: var(--sm-muted); font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sm-profile-facts dd { color: var(--sm-ink); font-size: 10px; font-weight: 700; margin: 4px 0 0; overflow-wrap: anywhere; }
.sm-profile-source-link { color: var(--sm-ink); display: inline-block; font-size: 9px; font-weight: 700; margin-top: 9px; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .sm-profile-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-profile-document { grid-template-columns: 12px minmax(0, 1fr); }
  .sm-profile-document time { grid-column: 2; }
  .sm-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .sm-profile-facts { grid-template-columns: 1fr; }
}

.sm-toast {
  background: var(--sm-ink);
  border-radius: 9px;
  bottom: 24px;
  color: var(--sm-paper);
  font-size: 10px;
  left: 50%;
  opacity: 0;
  padding: 11px 15px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.sm-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sm-footer-note {
  color: var(--sm-faint);
  font-size: 9px;
  line-height: 1.5;
  margin: 20px auto 0;
  max-width: 1560px;
  text-align: center;
}

.sm-noscript {
  background: var(--sm-negative-soft);
  border: 1px solid #edc1c5;
  border-radius: 10px;
  color: var(--sm-negative);
  font-size: 11px;
  margin: 12px;
  padding: 12px;
}

@media (max-width: 1260px) {
  :root {
    --sm-sidebar: 218px;
  }

  .sm-main {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .sm-overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(315px, 0.75fr);
  }

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

@media (max-width: 1020px) {
  .sm-app {
    grid-template-columns: 1fr;
  }

  .sm-sidebar {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    height: auto;
    min-height: 0;
    padding: 12px 18px;
    position: sticky;
  }

  .sm-brand {
    min-height: 52px;
    padding: 0;
  }

  .sm-brand__crest {
    height: 46px;
    width: 34px;
  }

  .sm-brand__name {
    font-size: 17px;
  }

  .sm-private-badge {
    display: none;
  }

  .sm-nav {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    overflow-x: auto;
  }

  .sm-nav__item {
    gap: 7px;
    grid-template-columns: 24px auto;
    min-width: max-content;
    padding: 8px 9px;
  }

  .sm-nav__item--settings {
    grid-template-columns: 24px auto 16px;
  }

  .sm-nav-submenu {
    background: #0a0a0b;
    border: 1px solid #343436;
    border-radius: 9px;
    margin: 0;
    min-width: 132px;
    padding: 5px;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 30;
  }

  .sm-nav__key {
    height: 22px;
    width: 22px;
  }

  .sm-nav__label {
    font-size: 11px;
  }

  .sm-overview-grid,
  .sm-content-grid {
    grid-template-columns: 1fr;
  }

  .sm-overview-grid > .sm-stack:first-child {
    order: 2;
  }

  .sm-overview-grid > .sm-stack:last-child {
    order: 1;
  }

  .sm-content-grid--portfolio {
    grid-template-columns: 1fr;
  }

  .sm-decision-list {
    grid-template-columns: 1fr 1fr;
  }

  .sm-decision:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--sm-line);
    margin-top: 10px;
    padding-top: 14px;
  }

  .sm-decision:nth-child(4) {
    border-top: 1px solid var(--sm-line);
    margin-top: 10px;
    padding-top: 14px;
  }
}

@media (max-width: 760px) {
  .sm-sidebar {
    grid-template-columns: 1fr;
    padding-bottom: 9px;
    position: static;
  }

  .sm-brand {
    justify-content: center;
  }

  .sm-nav {
    justify-content: flex-start;
  }

  .sm-nav__item {
    grid-template-columns: 22px auto;
  }

  .sm-main {
    padding: 21px 15px 38px;
  }

  .sm-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-top-actions,
  .sm-search,
  .sm-search__field {
    width: 100%;
  }

  .sm-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-market-control__button {
    width: 100%;
  }

  .sm-market-menu {
    width: 100%;
  }

  .sm-quote-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-quote-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .sm-quote-facts div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .sm-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-range {
    width: max-content;
  }

  .sm-search__field {
    min-width: 0;
  }

  .sm-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .sm-status-strip__time {
    padding-left: 29px;
  }

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

  .sm-mini-grid,
  .sm-dialog__grid {
    grid-template-columns: 1fr;
  }

  .sm-dialog__section--wide {
    grid-column: auto;
  }

  .sm-section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .sm-allocation {
    grid-template-columns: 1fr;
  }

  .sm-asset-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 470px) {
  .sm-brand__byline {
    display: none;
  }

  .sm-stat-grid {
    grid-template-columns: 1fr;
  }

  .sm-stat {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
  }

  .sm-stat__value {
    margin-top: 0;
    text-align: right;
  }

  .sm-stat__note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .sm-panel {
    border-radius: 14px;
    padding: 15px;
  }

  .sm-panel--flush {
    padding: 0;
  }

  .sm-panel--flush .sm-panel__head {
    padding: 15px 15px 9px;
  }

  .sm-button-row {
    grid-template-columns: 1fr;
  }

  .sm-asset-grid,
  .sm-decision-list {
    grid-template-columns: 1fr;
  }

  .sm-decision + .sm-decision,
  .sm-decision:nth-child(3),
  .sm-decision:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--sm-line);
    margin-top: 8px;
    padding-top: 12px;
  }
}

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