:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #18202d;
  background: #f3f6f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 121, 91, 0.08), transparent 34%),
    #f3f6f9;
}

button,
input,
code {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid #dce3e9;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  color: #17212d;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  min-width: 0;
}

.nav-menu {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d6e0e6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: #334255;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.nav-menu-button.active,
.nav-menu-button:hover,
.nav-menu.open .nav-menu-button {
  border-color: #9bc3b8;
  background: #edf7f4;
  color: #0d6a54;
}

.nav-caret {
  font-size: 12px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 40px rgba(28, 39, 51, 0.14);
}

.nav-dropdown-link {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: #344151;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-dropdown-link.active,
.nav-dropdown-link:hover {
  background: #edf4f2;
  color: #0d6a54;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #0d765d;
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.account {
  position: relative;
  justify-self: end;
}

.account-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfd8df;
  border-radius: 50%;
  background: #e9f4f0;
  color: #0d624f;
  cursor: pointer;
}

.account-initial {
  width: 1ch;
  overflow: hidden;
  font-weight: 800;
  text-transform: uppercase;
}

.account-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 40px rgba(28, 39, 51, 0.14);
}

.account-name {
  padding: 10px 11px 12px;
  overflow: hidden;
  color: #667282;
  font-size: 13px;
  text-overflow: ellipsis;
}

.account-menu button,
.account-menu-link {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344151;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu form {
  margin: 0;
}

.account-menu form button {
  color: #a12727;
}

.account-menu button:hover,
.account-menu-link:hover {
  background: #edf4f2;
}

.account-menu form button:hover {
  background: #fff0f0;
}

.workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.workspace-heading {
  margin-bottom: 30px;
}

.workspace-copy {
  max-width: 720px;
  margin-top: 14px;
  color: #677486;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0d765d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.06;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  min-height: 270px;
  padding: 26px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.live-card {
  box-shadow: 0 16px 38px rgba(32, 50, 65, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.live-card:hover {
  transform: translateY(-3px);
  border-color: #78ad9f;
  box-shadow: 0 22px 44px rgba(32, 50, 65, 0.13);
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #697585;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #13a276;
  box-shadow: 0 0 0 4px #dcf5ec;
}

.empty-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #c8d2da;
  border-radius: 50%;
}

.project-card h2 {
  margin-bottom: 10px;
  font-size: 25px;
}

.project-card p {
  max-width: 460px;
  margin-bottom: 0;
  color: #657182;
  line-height: 1.6;
}

.open-project {
  color: #0b7159;
  font-weight: 800;
}

.placeholder-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.56);
}

.workspace-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(32, 50, 65, 0.06);
}

.panel-card h2 {
  margin: 22px 0 10px;
  font-size: 31px;
}

.panel-card p {
  max-width: 540px;
  margin-bottom: 0;
  color: #657182;
  line-height: 1.7;
}

.muted-card {
  background: rgba(255, 255, 255, 0.72);
}

.wide-card {
  max-width: 760px;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(430px, 100%);
}

.login-panel {
  padding: 38px;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 60px rgba(27, 43, 56, 0.12);
}

.login-panel .brand-mark {
  margin-bottom: 30px;
}

.login-panel h1 {
  margin-bottom: 12px;
  font-size: 34px;
}

.login-copy {
  margin-bottom: 28px;
  color: #697585;
}

.login-panel form {
  display: grid;
  gap: 18px;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: #465262;
  font-size: 13px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #c9d3db;
  border-radius: 6px;
  outline: none;
}

.login-panel input:focus {
  border-color: #0d765d;
  box-shadow: 0 0 0 3px rgba(13, 118, 93, 0.13);
}

.password-help {
  margin: -7px 0 0;
  color: #778292;
  font-size: 12px;
  line-height: 1.5;
}

.primary-button {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  background: #0d765d;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover {
  background: #095f4b;
}

.form-error {
  display: none;
  margin: 0 0 20px;
  padding: 11px 12px;
  border: 1px solid #f2b7b7;
  border-radius: 6px;
  background: #fff1f1;
  color: #9f2727;
  font-size: 13px;
}

.form-error.visible {
  display: block;
}

.form-notice {
  display: none;
  margin: 0 0 20px;
  padding: 11px 12px;
  border: 1px solid #9cd8c4;
  border-radius: 6px;
  background: #eaf8f3;
  color: #0b654f;
  font-size: 13px;
}

.form-notice.visible {
  display: block;
}

.admin-workspace {
  width: min(1380px, calc(100% - 48px));
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.secondary-link {
  color: #0b7159;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.temporary-password {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #74bda7;
  border-radius: 8px;
  background: #e9f8f2;
}

.temporary-password p {
  margin: 4px 0 0;
  color: #3f695d;
  font-size: 13px;
}

.temporary-password code {
  padding: 10px 12px;
  border: 1px solid #9bcfbe;
  border-radius: 6px;
  background: white;
  color: #0c5947;
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-section {
  min-width: 0;
  padding: 24px;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(32, 50, 65, 0.06);
}

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

.section-heading h2 {
  margin-bottom: 6px;
  font-size: 21px;
}

.section-heading p {
  margin-bottom: 0;
  color: #6b7787;
  font-size: 13px;
  line-height: 1.5;
}

.create-user-form {
  display: grid;
  gap: 17px;
}

.create-user-form label {
  display: grid;
  gap: 7px;
  color: #465262;
  font-size: 13px;
  font-weight: 700;
}

.create-user-form input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #c9d3db;
  border-radius: 6px;
  outline: none;
}

.create-user-form input:focus {
  border-color: #0d765d;
  box-shadow: 0 0 0 3px rgba(13, 118, 93, 0.13);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.users-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.users-table th,
.users-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e3e8ed;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.users-table th {
  color: #667282;
  font-size: 11px;
  text-transform: uppercase;
}

.users-table td:first-child {
  min-width: 190px;
}

.users-table td:first-child strong,
.users-table td:first-child span {
  display: block;
}

.users-table td:first-child span {
  margin-top: 3px;
  color: #788493;
}

.users-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-label {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef1f4;
  color: #66717f;
  font-weight: 750;
}

.status-label.active {
  background: #e4f5ef;
  color: #087056;
}

.table-actions {
  display: flex;
  gap: 7px;
}

.table-actions form {
  margin: 0;
}

.table-button {
  padding: 7px 9px;
  border: 1px solid #c8d4db;
  border-radius: 5px;
  background: white;
  color: #334050;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.table-button:hover {
  background: #eef5f3;
}

.table-button.danger {
  color: #a12727;
}

.table-button.danger:hover {
  background: #fff0f0;
}

.muted {
  color: #8993a0;
}

.portfolio-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(25, 143, 108, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 30%, rgba(44, 103, 170, 0.08), transparent 28rem),
    #f4f7f8;
}

.portfolio-page .topbar {
  display: flex;
  gap: 24px;
}

.portfolio-page .workspace-nav {
  margin-left: auto;
  margin-right: 18px;
  gap: 18px;
}

.portfolio-page .nav-menu-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  color: #2f3d4f;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(17, 24, 39, 0.02);
}

.portfolio-shell {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.portfolio-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.portfolio-hero h1 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.04em;
}

.month-control {
  display: grid;
  min-width: 190px;
  gap: 7px;
  color: #657283;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.month-control select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid #ccd7dd;
  border-radius: 9px;
  outline: none;
  background: white;
  color: #263342;
  font-weight: 750;
  text-transform: none;
  cursor: pointer;
}

.month-control select:focus {
  border-color: #0d765d;
  box-shadow: 0 0 0 3px rgba(13, 118, 93, 0.12);
}

.portfolio-loading,
.portfolio-error {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d7e1e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #657283;
}

.portfolio-error {
  min-height: auto;
  padding: 20px;
  border-color: #efc0c0;
  background: #fff5f5;
  color: #9f2727;
}

.loading-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a078;
  box-shadow: 0 0 0 0 rgba(22, 160, 120, 0.35);
  animation: portfolio-pulse 1.4s infinite;
}

@keyframes portfolio-pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(22, 160, 120, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 160, 120, 0);
  }
}

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

.metric-card,
.dashboard-card {
  border: 1px solid #dbe3e7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 34px rgba(34, 54, 68, 0.055);
}

.metric-card {
  position: relative;
  min-height: 142px;
  padding: 21px 22px;
  overflow: hidden;
}

.metric-primary::after {
  position: absolute;
  top: -54px;
  right: -34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 160, 120, 0.15), transparent 68%);
  content: "";
}

.metric-label,
.metric-footnote {
  display: block;
  color: #778391;
  font-size: 12px;
  font-weight: 700;
}

.metric-label {
  margin-bottom: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-bottom: 9px;
  color: #172230;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric-date {
  font-size: 30px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.dashboard-card {
  min-width: 0;
  padding: 23px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: #82909e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.chart-subtitle {
  margin: 6px 0 0;
  color: #7b8895;
  font-size: 13px;
  line-height: 1.35;
}

.chart-total {
  color: #0a7559;
  font-size: 17px;
  font-weight: 850;
}

.profit-chart {
  position: relative;
  width: 100%;
  min-height: 290px;
}

.profit-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.profit-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 150, 111, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(18, 36, 48, 0.14);
  color: #132433;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  backdrop-filter: blur(8px);
}

.profit-tooltip.visible {
  opacity: 1;
}

.profit-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.profit-tooltip span {
  display: block;
  color: #667481;
  font-size: 12px;
}

.profit-point {
  cursor: pointer;
}

.profit-point:focus {
  outline: none;
}

.profit-point.is-active {
  stroke: #0f5136;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(21, 150, 111, 0.28));
}

.chart-grid-line {
  stroke: #e8edef;
  stroke-width: 1;
}

.chart-zero-line {
  stroke: #bdc9ce;
  stroke-dasharray: 4 5;
  stroke-width: 1.2;
}

.chart-axis-label {
  fill: #8a959f;
  font-size: 10px;
  font-weight: 650;
}

.chart-axis-label.x-axis {
  fill: #74808d;
}

.profit-line {
  fill: none;
  stroke: #15966f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.profit-point {
  fill: #15966f;
  stroke: white;
  stroke-width: 2;
}

.profit-point.negative {
  fill: #d45d63;
}

.direction-card {
  display: flex;
  flex-direction: column;
}

.direction-content {
  display: grid;
  flex: 1;
  place-items: center;
  gap: 24px;
}

.donut-chart {
  --long-share: 0deg;
  position: relative;
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #15966f 0deg var(--long-share),
    #334f73 var(--long-share) 360deg
  );
  box-shadow: inset 0 0 0 1px rgba(25, 50, 65, 0.04);
}

.donut-tooltip {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  min-width: 116px;
  padding: 9px 11px;
  border: 1px solid rgba(21, 150, 111, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(18, 36, 48, 0.14);
  color: #162330;
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}

.donut-tooltip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.donut-center {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(32, 50, 65, 0.08);
}

.donut-center strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.donut-center span {
  margin-top: 2px;
  color: #82909d;
  font-size: 11px;
}

.direction-legend {
  display: grid;
  width: 100%;
  gap: 10px;
}

.direction-legend > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f6f8f9;
  color: #586676;
  font-size: 12px;
}

.direction-legend strong {
  color: #263340;
  justify-self: end;
  text-align: right;
}

.direction-legend > div:first-child {
  grid-template-columns: auto 1fr;
  color: #465262;
  font-weight: 800;
  background: transparent;
  padding: 0;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15966f;
}

.legend-dot.short {
  background: #334f73;
}

.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-label {
  font-size: 12px;
  font-weight: 800;
}

.legend-label.long {
  color: #15966f;
}

.legend-label.short {
  color: #334f73;
}

.leaderboard-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-detections-card {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.top-trades-card,
.top-losses-card {
  min-height: 100%;
}

.detection-table-scroll {
  max-height: 420px;
  overflow-x: auto;
  overflow-y: auto;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.portfolio-table th,
.portfolio-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edef;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.portfolio-table th {
  color: #87929d;
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.portfolio-table tbody tr:last-child td {
  border-bottom: 0;
}

.portfolio-table tbody tr:hover td {
  background: #f8faf9;
}

.capsule-text {
  color: #0d6a54;
  font-weight: 700;
}

.muted-cell {
  color: #667282;
  font-weight: 700;
}

.symbol-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.symbol-cell > span:last-child {
  display: grid;
}

.symbol-cell strong,
.symbol-plain {
  color: #1f2b38;
  font-weight: 850;
}

.symbol-cell small {
  margin-top: 3px;
  color: #8a95a0;
  font-size: 10px;
}

.trade-rank {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f1;
  color: #087056;
  font-size: 11px;
  font-weight: 850;
}

.side-text {
  font-weight: 800;
}

.side-text.long {
  color: #0b8262;
}

.side-text.short {
  color: #365778;
}

.money-value {
  font-variant-numeric: tabular-nums;
}

.positive-value {
  color: #08775a !important;
}

.negative-value {
  color: #c04750 !important;
}

.detection-status {
  display: inline-flex;
  max-width: 260px;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f3f5;
  color: #64717e;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.detection-status.submitted {
  background: #e7f6f1;
  color: #087056;
}

.empty-table-cell {
  padding: 32px !important;
  color: #87929d;
  text-align: center !important;
}

@media (max-width: 720px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    height: auto;
    padding: 16px 18px;
  }

  .workspace-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    margin-right: 0;
  }

  .nav-dropdown {
    left: 0;
    right: auto;
    z-index: 30;
  }

  .workspace {
    width: min(100% - 28px, 1180px);
    padding-top: 42px;
  }

  .project-grid,
  .workspace-panel {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 240px;
  }

  .login-panel {
    padding: 28px 24px;
  }

  .admin-heading,
  .temporary-password {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-section {
    padding: 20px;
  }

  .portfolio-shell {
    width: min(100% - 28px, 1420px);
    padding-top: 30px;
  }

  .portfolio-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .month-control {
    min-width: 0;
  }

  .metric-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .top-trades-card,
  .top-losses-card {
    grid-column: auto;
  }

  .leaderboard-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 19px;
  }
}

@media (max-width: 460px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 125px;
  }
}
