:root {
  color-scheme: dark;
  --ink: #f2f4f3;
  --muted: #8b9297;
  --line: #222829;
  --panel: #101514;
  --paper: #0d1110;
  --accent: #19a66a;
  --accent-2: #48c8e8;
  --good: #00b875;
  --warn: #d9a641;
  --bad: #ff4268;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

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

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

.login-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 25, 25, 0.96), rgba(10, 15, 15, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  padding: 34px;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 24px;
  font-size: clamp(2.3rem, 8vw, 4rem);
  line-height: 0.95;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.login-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.login-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #131818;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px 18px;
  outline: none;
}

.login-row input:focus {
  border-color: rgba(80, 190, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(80, 190, 255, 0.16);
}

.login-row button {
  min-width: 108px;
}

.login-error {
  margin: 14px 0 0;
  color: var(--bad);
  font-weight: 800;
}

.shell {
  width: min(1280px, calc(100% - 16px));
  margin: 0 auto;
  padding: 6px 0 8px;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 18px;
  align-items: end;
  padding: 4px 0 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #9aa0a5;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  color: #f5f6f6;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  color: #f4f5f5;
  margin-bottom: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

h3 {
  color: #f4f5f5;
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.stock-title-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

#stock-title {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.mobile-title-price {
  display: none;
}

.mobile-logo-wrap {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #272e30;
  border-radius: 999px;
  background: #181e1d;
}

.mobile-sma-combined {
  display: none;
}

.company-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

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

.company-name {
  color: #f4f5f5;
  font-weight: 850;
  line-height: 1.08;
}

.company-symbol {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 7px;
  padding: 3px 7px;
  background: #1c2223;
  color: #a7adb1;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
}

.company-symbol::before {
  content: "US";
  margin-right: 6px;
  border-radius: 5px;
  padding: 2px 5px;
  background: #1aa7ee;
  color: #061820;
  font-size: 0.65rem;
  font-weight: 900;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}

input,
button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

input {
  min-width: 0;
  padding: 0 16px;
  border-color: #262d2f;
  background: #171c1d;
  color: #f4f6f5;
  font-weight: 650;
  text-transform: uppercase;
  box-shadow: none;
}

button {
  cursor: pointer;
  border-color: #263245;
  background: linear-gradient(180deg, #21406a 0%, #152747 100%);
  color: #f5f7fb;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(25, 166, 106, 0.16);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.portfolio-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #263245;
  border-radius: 8px;
  background: linear-gradient(180deg, #21406a 0%, #152747 100%);
  color: #f5f7fb;
  font-weight: 850;
  text-decoration: none;
  padding: 0 16px;
  box-shadow: 0 10px 22px rgba(25, 166, 106, 0.16);
}

.portfolio-actions {
  display: grid;
  gap: 8px;
}

.portfolio-action-button {
  width: 100%;
}

.text-status {
  margin: 0;
  color: #cbd2d6;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard {
  display: grid;
  gap: 6px;
}

.portfolio-dashboard {
  display: grid;
  gap: 8px;
}

.portfolio-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.metric em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.portfolio-summary-grid .metric em {
  color: #cbd2d6;
  font-weight: 900;
}

.mobile-goal-progress {
  display: none !important;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: none;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill,
.price {
  flex: 0 0 auto;
  border: 1px solid #26302e;
  border-radius: 999px;
  padding: 6px 10px;
  background: #1a201f;
  color: #dfe4e2;
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-badges {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.price {
  border-radius: 8px;
  background: #1a201f;
  color: #dfe4e2;
  font-size: 1rem;
}

.sma-profile {
  background: #1a201f;
  color: var(--muted);
}

.sma-profile.positive {
  background: rgba(0, 184, 117, 0.12);
  color: var(--good);
}

.sma-profile.negative {
  background: rgba(255, 66, 104, 0.12);
  color: var(--bad);
}

.metric-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

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

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

.earnings-hub {
  margin: 14px 18px 12px;
  border: 1px solid #4c4140;
  border-radius: 22px;
  background: #291d1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  padding: 28px 30px 30px;
}

.earnings-hub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.earnings-hub-growth {
  margin-top: 24px;
}

.earnings-hub-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #f2f0ef;
  font-size: 1.22rem;
  line-height: 1.15;
  white-space: nowrap;
}

.earnings-hub-item + .earnings-hub-item::before {
  content: "";
  width: 1px;
  height: 32px;
  margin: 0 22px;
  background: #51413f;
}

.earnings-hub-item b {
  color: #aaa5a3;
  font-weight: 700;
}

.earnings-hub-item strong {
  color: #f3f1f0;
  font-weight: 700;
}

@media (min-width: 561px) {
  .stock-grid .metric-marketCap,
  .stock-grid .metric-peRatio,
  .stock-grid .metric-priceToSales,
  .stock-grid .metric-ttmRevenue,
  .stock-grid .metric-eps,
  .stock-grid .metric-annualRevenueGrowth,
  .stock-grid .metric-ttmEpsGrowth {
    display: none;
  }
}

.metric {
  display: grid;
  align-content: space-between;
  min-height: 60px;
  padding: 7px 8px;
  background: var(--panel);
}

.metric span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.12;
}

.metric strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.35vw, 1.18rem);
  line-height: 1;
  word-break: break-word;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.12;
}

.positive small {
  color: var(--good);
  font-weight: 800;
}

.negative small {
  color: var(--bad);
  font-weight: 800;
}

.featured {
  background: #101514;
}

.positive strong {
  color: var(--good);
}

.negative strong {
  color: var(--bad);
}

.neutral strong {
  color: var(--warn);
}

.chart-card {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #101514;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.chart-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

#net-income-chart-latest {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 850;
}

.chart-wrap,
.chart-empty {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1110;
}

.chart-empty {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.net-income-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 96px;
}

.chart-tick line {
  stroke: #242a2b;
  stroke-width: 1;
}

.chart-tick text {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: end;
}

.chart-zero {
  stroke: #343b3d;
  stroke-width: 1.2;
}

.chart-bar {
  fill: #3f76ff;
}

.chart-bar.loss {
  fill: var(--bad);
}

.chart-line {
  fill: none;
  stroke: #9bd34d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.growth-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.growth-wrap {
  position: relative;
}

.growth-legend {
  position: absolute;
  right: 10px;
  top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 70%;
  font-size: 0.66rem;
  color: var(--muted);
}

.growth-legend span,
.symbol-list span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 800;
}

.growth-legend i,
.symbol-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--swatch, var(--accent));
}

.symbol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.symbol-list span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #1a201f;
  color: #dfe4e2;
  font-size: 0.72rem;
}

.comparison-table {
  overflow: auto;
  border-top: 1px solid var(--line);
}

.portfolio-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.portfolio-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.portfolio-table td {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.portfolio-table td span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.holdings-table td span.good-text,
.holdings-table td span.bad-text {
  display: inline;
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 850;
}

.good-text {
  color: var(--good) !important;
}

.bad-text {
  color: var(--bad) !important;
}

.compare-grid {
  display: grid;
  background: var(--line);
  gap: 1px;
}

.compare-head,
.compare-label,
.compare-cell {
  background: #101514;
  padding: 7px 8px;
}

.compare-head {
  color: #f1f3f2;
  font-size: 0.72rem;
  font-weight: 850;
}

.compare-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.compare-cell {
  min-height: 46px;
}

.compare-cell strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.05;
}

.compare-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.05;
}

.compare-cell.positive strong,
.compare-cell.positive small {
  color: var(--good);
}

.compare-cell.negative strong,
.compare-cell.negative small {
  color: var(--bad);
}

.compare-cell.neutral strong {
  color: var(--warn);
}

.chart-x-label {
  fill: var(--muted);
  font-size: 10px;
  text-anchor: middle;
}

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

@media (max-width: 880px) {
  .search-band {
    grid-template-columns: minmax(130px, 0.7fr) minmax(260px, 1fr);
    gap: 10px;
  }

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

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

  h1 {
    font-size: 2rem;
  }

  .metric {
    min-height: 56px;
    padding: 7px 7px;
  }

  .metric span {
    font-size: 0.66rem;
    line-height: 1.08;
  }

  .metric strong {
    margin-top: 5px;
    font-size: 1rem;
  }

  .metric small {
    font-size: 0.56rem;
  }
}

@media (max-width: 560px) {
  body {
    --ink: #f2f4f3;
    --muted: #8b9297;
    --line: #222829;
    --panel: #111615;
    --paper: #0d1110;
    --accent: #19a66a;
    --accent-2: #48c8e8;
    --good: #00b875;
    --warn: #d9a641;
    --bad: #ff4268;
    background: #0d1110;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  }

  .shell {
    width: min(100% - 16px, 1180px);
    padding: 14px 0 22px;
  }

  .search-band {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  h1 {
    color: #f5f6f6;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 850;
  }

  .eyebrow {
    color: #9aa0a5;
    font-size: 0.78rem;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
  }

  input,
  button {
    height: 72px;
    border-radius: 12px;
    font-size: 1.12rem;
  }

  input {
    border-color: #262d2f;
    background: #171c1d;
    color: #f4f6f5;
    padding: 0 14px;
    box-shadow: none;
  }

  button {
    width: 72px;
    border-color: #263245;
    background: linear-gradient(180deg, #21406a 0%, #152747 100%);
    padding: 0;
    color: #f5f7fb;
    font-size: 0.98rem;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(25, 166, 106, 0.16);
  }

  .status-row {
    flex-direction: column;
    gap: 3px;
    font-size: 0.98rem;
    min-height: 20px;
    color: #858c91;
  }

  .status-row:has(#status:empty) {
    min-height: 0;
    margin: 0;
  }

  .dashboard {
    gap: 14px;
  }

  .panel {
    border-color: #1d2324;
    border-radius: 18px;
    background: #101514;
    box-shadow: none;
    overflow: hidden;
  }

  .metric-grid,
  .compare-grid {
    background: #202627;
  }

  .panel-heading {
    min-height: 48px;
    padding: 16px 16px 12px;
    border-bottom-color: #202627;
  }

  .panel-heading,
  .chart-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .stock-panel > .panel-heading {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 10px;
  }

  .stock-panel .profile-badges {
    grid-column: 1 / -1;
  }

  .mobile-logo-wrap {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    background: #181e1d;
    border: 1px solid #272e30;
  }

  .company-logo {
    display: block;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: contain;
  }

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

  h2,
  h3 {
    color: #f4f5f5;
    font-size: 1.34rem;
    font-weight: 850;
  }

  .panel-heading p,
  .chart-heading p {
    color: #8d9499;
    font-size: 0.92rem;
  }

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

  .stock-panel {
    order: 1;
  }

  .comparison-panel {
    order: 2;
  }

  .market-panel {
    order: 3;
  }

  .stock-grid {
    grid-template-columns: 1fr;
  }

  .earnings-hub {
    display: none;
  }

  .pill,
  .price {
    border: 1px solid #26302e;
    background: #1a201f;
    color: #dfe4e2;
    padding: 8px 10px;
    font-size: 1rem;
  }

  .sma-profile.positive {
    background: rgba(0, 184, 117, 0.12);
  }

  .sma-profile.negative {
    background: rgba(255, 66, 104, 0.12);
  }

  .stock-title-line {
    gap: 10px;
    align-items: flex-start;
  }

  #stock-title {
    gap: 8px;
    align-items: center;
  }

  .company-name {
    color: #f4f5f5;
    font-size: 1.72rem;
    font-weight: 850;
    line-height: 1.06;
  }

  .company-symbol {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 7px;
    padding: 3px 7px;
    background: #1c2223;
    color: #a7adb1;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1;
  }

  .company-symbol::before {
    content: "US";
    margin-right: 6px;
    border-radius: 5px;
    padding: 2px 5px;
    background: #1aa7ee;
    color: #061820;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .mobile-title-price {
    display: block;
    flex-basis: 100%;
    order: 3;
    width: 100%;
    margin-top: 4px;
    color: var(--good);
    font-size: 1.42rem;
    line-height: 1.1;
    font-weight: 900;
  }

  #stock-subtitle {
    grid-column: 2;
    margin-top: -8px;
    font-size: 1rem;
  }

  #quote-price {
    display: none;
  }

  .mobile-sma-combined {
    display: inline-flex;
  }

  #sma50-profile,
  #sma-profile {
    display: none;
  }

  .profile-badges {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .profile-badges .mobile-sma-combined {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .chart-card {
    padding: 14px 16px;
    border-bottom-color: #202627;
    background: #101514;
  }

  .chart-heading {
    margin-bottom: 8px;
  }

  .chart-wrap,
  .chart-empty,
  .net-income-svg {
    min-height: 238px;
  }

  .net-income-svg {
    height: 238px;
  }

  .chart-wrap,
  .chart-empty {
    border-color: #242a2b;
    background: #0d1110;
  }

  .metric {
    min-height: 98px;
    border-bottom: 1px solid #202627;
    background: #101514;
    padding: 16px 18px;
  }

  .market-grid .metric {
    min-height: 78px;
    padding: 10px 12px;
  }

  .metric span {
    color: #969da2;
    font-size: 1.02rem;
    line-height: 1.2;
    font-weight: 650;
  }

  .metric strong {
    margin-top: 8px;
    color: #f2f4f3;
    font-size: 2.05rem;
    font-weight: 850;
    line-height: 1.05;
  }

  .market-grid .metric strong {
    font-size: 1.55rem;
  }

  .metric small {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .positive strong,
  .positive small,
  .sma-profile.positive {
    color: var(--good);
  }

  .negative strong,
  .negative small,
  .sma-profile.negative {
    color: var(--bad);
  }

  .neutral strong {
    color: var(--warn);
  }

  .chart-tick line {
    stroke: #242a2b;
  }

  .chart-tick text,
  .chart-x-label {
    fill: #7d8488;
  }

  .chart-zero {
    stroke: #343b3d;
  }

  .chart-bar {
    fill: #3f76ff;
  }

  .chart-line {
    stroke: #9bd34d;
  }

  .chart-tick text,
  .chart-x-label {
    font-size: 10px;
  }

  .growth-legend {
    position: static;
    max-width: none;
    justify-content: flex-start;
    padding: 8px 10px 10px;
    font-size: 0.92rem;
  }

  .symbol-list {
    justify-content: flex-start;
  }

  .symbol-list span {
    background: #1a201f;
    color: #dfe4e2;
    padding: 7px 10px;
    font-size: 0.94rem;
  }

  .comparison-table {
    border-top: 0;
  }

  .compare-grid {
    min-width: 760px;
  }

  .compare-head,
  .compare-label,
  .compare-cell {
    background: #101514;
    padding: 10px 12px;
  }

  .compare-head {
    color: #f1f3f2;
    font-size: 0.98rem;
  }

  .compare-label {
    color: #969da2;
    font-size: 0.92rem;
  }

  .compare-cell strong {
    color: #f2f4f3;
    font-size: 1.25rem;
  }

  .compare-cell small {
    color: #8d9499;
    font-size: 0.82rem;
  }

  .compare-cell.positive strong,
  .compare-cell.positive small {
    color: var(--good);
  }

  .compare-cell.negative strong,
  .compare-cell.negative small {
    color: var(--bad);
  }

  .compare-cell.neutral strong {
    color: var(--warn);
  }

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

  .portfolio-link-button {
    display: none;
  }

  .portfolio-actions {
    display: block;
  }

  .portfolio-action-button {
    height: 58px;
    border-radius: 18px;
    font-size: 1.15rem;
  }

  .text-status {
    margin-top: 10px;
    text-align: left;
    font-size: 0.98rem;
  }

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

  .portfolio-summary-grid .metric strong {
    font-size: 1.025rem;
  }

  .portfolio-summary-grid .mobile-goal-progress {
    display: block !important;
    color: var(--good);
  }

  .portfolio-table table {
    min-width: 680px;
  }

  .portfolio-table th,
  .portfolio-table td {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .holdings-table td span.good-text,
  .holdings-table td span.bad-text {
    font-size: 1rem;
  }
}
