:root {
    --login-panel-height: 580px;
    --login-panel-padding: clamp(1.25rem, 4vw, 2rem);
    --login-logo-max-height: calc(var(--login-panel-height) - (var(--login-panel-padding) * 2));
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--body-background);
}

body {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    color: var(--text-color);
    background:
        linear-gradient(135deg, rgba(51, 117, 170, 0.08), transparent 32rem),
        linear-gradient(315deg, rgba(79, 163, 106, 0.09), transparent 30rem),
        var(--body-background);
}

button,
input {
    font: inherit;
}

strong,
b {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(51, 117, 170, 0.28);
    outline-offset: 3px;
}

.app-shell,
.screen {
    min-height: 100vh;
    min-height: 100dvh;
}

.screen {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.brand-mark {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 24%;
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.brand-mark.small {
    width: 46px;
    height: 46px;
}

.brand-mark.large {
    width: clamp(96px, 18vw, 150px);
    height: clamp(96px, 18vw, 150px);
}

.eyebrow {
    margin: 1rem 0 0.35rem;
    color: var(--active-color);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.splash-screen,
.login-screen,
.offline-view,
.noscript-panel {
    display: grid;
    place-items: center;
}

.splash-panel {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(720px, 100%);
    text-align: center;
}

.animated-logo-host {
    display: grid;
    justify-items: center;
    width: min(620px, 92vw);
}

.animated-logo-svg {
    display: block;
    width: min(620px, 92vw);
    max-height: min(72vh, 620px);
    filter: drop-shadow(0 24px 42px rgba(15, 23, 42, 0.12));
}

.splash-caption {
    max-width: 34rem;
    margin: -0.5rem auto 0;
    color: var(--muted-color);
    font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.splash-copy h1,
.auth-brand h1,
.app-topbar h1,
.portfolio-hero h2,
.panel-heading h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-color);
}

.splash-copy h1 {
    font-size: clamp(2.3rem, 7vw, 4.8rem);
    line-height: 0.95;
    text-align: center;
}

.splash-progress {
    width: min(260px, 72vw);
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(51, 117, 170, 0.14);
}

.splash-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-red), var(--color-green));
    animation: splash-load 1.15s ease-in-out infinite;
}

@keyframes splash-load {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(260%);
    }
}

.login-screen {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: stretch;
    align-content: center;
    gap: clamp(1.2rem, 4vw, 4rem);
}

.login-screen .app-footer {
    grid-column: 1 / -1;
    width: 100%;
}

.splash-screen .app-footer {
    width: 100%;
}

.auth-visual {
    width: 100%;
    display: grid;
    place-items: center;
    height: var(--login-panel-height);
    max-height: min(var(--login-panel-height), calc(100vh - 48px));
    padding: var(--login-panel-padding);
    min-height: auto;
    overflow: hidden;
}

.auth-brand,
.brand-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.96;
}

.auth-visual .animated-logo-host {
    display: grid;
    place-items: center;
    width: min(520px, 100%);
    height: 100%;
    max-height: var(--login-logo-max-height);
    overflow: visible;
}

.auth-visual .animated-logo-svg {
    width: 100%;
    height: 100%;
    max-width: min(520px, 100%);
    max-height: var(--login-logo-max-height);
    object-fit: contain;
}

.market-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    align-items: end;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    min-height: 260px;
}

.market-strip span {
    display: block;
    min-height: 68px;
    border-radius: 8px 8px 0 0;
    background: var(--active-color);
    box-shadow: 0 18px 30px rgba(51, 117, 170, 0.16);
}

.market-strip span:nth-child(2n) {
    background: var(--color-green);
}

.market-strip span:nth-child(3n) {
    background: var(--color-red);
}

.auth-visual,
.auth-panel,
.panel,
.metric-card,
.offline-view,
.noscript-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--card-shadow);
}

.auth-panel {
    width: 100%;
    height: var(--login-panel-height);
    max-height: min(var(--login-panel-height), calc(100vh - 48px));
    overflow: auto;
    padding: var(--login-panel-padding);
}

.panel-heading {
    margin-bottom: 1.35rem;
}

.panel-heading h2 {
    font-size: 1.35rem;
    text-align: left;
}

.auth-form,
.field {
    display: grid;
    gap: 0.75rem;
}

.auth-form {
    gap: 1rem;
}

.auth-error {
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(217, 74, 74, 0.35);
    border-radius: 8px;
    background: rgba(217, 74, 74, 0.08);
    color: var(--color-red);
    font-size: 0.94rem;
    font-weight: 600;
}

.auth-error[hidden] {
    display: none;
}

.field span,
.check-row {
    color: var(--muted-color);
    font-size: 0.94rem;
    font-weight: 500;
}

.field .ev-input {
    width: 100%;
    min-height: 48px;
    border-color: var(--border-color);
    background: #fff;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--active-color);
}

.primary-action,
.secondary-action,
.icon-action,
.nav-action {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: var(--active-color);
    box-shadow: 0 12px 26px rgba(51, 117, 170, 0.24);
}

.secondary-action {
    color: var(--active-color);
    font-weight: 500;
    background: var(--active-color-light);
}

.primary-action:hover,
.secondary-action:hover,
.icon-action:hover {
    transform: translateY(-2px);
}

.primary-action:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted-color);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.social-login-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.social-login-action:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 117, 170, 0.35);
    background: var(--active-color-light);
}

.social-login-action:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.app-topbar h1 {
    font-size: 1.45rem;
    text-align: left;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-user {
    max-width: min(220px, 28vw);
    overflow: hidden;
    color: var(--text-color);
    font-size: 0.94rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-action,
.nav-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    color: var(--active-color);
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.nav-action {
    min-height: 38px;
    padding-inline: 0.7rem;
}

.nav-action.active {
    color: #fff;
    font-weight: 600;
    border-color: var(--active-color);
    background: var(--active-color);
}

.nav-action i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
}

.icon-action .action-icon,
.icon-action span:first-child {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--active-color-light);
    line-height: 1;
}

@media (display-mode: window-controls-overlay), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .install-action {
        display: none !important;
    }
}

.portfolio-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(51, 117, 170, 0.96), rgba(79, 163, 106, 0.92)),
        var(--active-color);
}

.portfolio-online-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-radius: 999px;
    background:
        linear-gradient(120deg, rgba(51, 117, 170, 0.96), rgba(79, 163, 106, 0.92)),
        var(--active-color);
}

.portfolio-hero .eyebrow,
.portfolio-hero h2 {
    color: #fff;
}

.portfolio-hero h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
    margin-bottom: 0.9rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid rgba(51, 117, 170, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    background:
        linear-gradient(135deg, rgba(51, 117, 170, 0.12), rgba(79, 163, 106, 0.08)),
        #fff;
    box-shadow: var(--card-shadow);
}

.workspace-hero h2 {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.workspace-hero p:not(.eyebrow) {
    max-width: 66ch;
    margin: 0.7rem 0 0;
    color: var(--muted-color);
    line-height: 1.55;
}

.hero-stat-grid,
.legend-group {
    display: grid;
    gap: 0.7rem;
    align-content: center;
}

.hero-stat-grid {
    grid-template-columns: 1fr;
}

.hero-stat-grid > div,
.legend-group span,
.contract-strip > div,
.scenario-card,
.outcome-grid > div {
    border: 1px solid rgba(51, 117, 170, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-stat-grid > div,
.legend-group span {
    display: grid;
    gap: 0.15rem;
    min-height: 64px;
    padding: 0.75rem;
}

.hero-stat-grid span,
.legend-group span,
.contract-strip span,
.finance-row span,
.prospect-price span,
.scenario-card span,
.outcome-grid dt,
.scenario-card dt,
.probability-row > span {
    color: var(--muted-color);
    font-size: 0.82rem;
    font-weight: 500;
}

.prospects-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.26fr);
}

.legend-group span {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.legend-dot {
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
}

.simulated-dot {
    background: var(--color-blue);
}

.calculated-dot {
    background: var(--color-green);
}

.connection-pill {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
}

.connection-pill.offline {
    background: rgba(217, 74, 74, 0.95);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.finance-metrics {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.metric-card {
    display: grid;
    gap: 0.4rem;
    min-height: 138px;
    padding: 1rem;
}

.metric-card span,
.holding-row span {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.metric-card strong {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 500;
}

.metric-card em {
    align-self: end;
    font-style: normal;
    font-weight: 500;
}

.metric-card em.positive,
.metric-card em.negative {
    font-weight: 600;
}

.positive {
    color: var(--color-green) !important;
    font-weight: 600;
}

.neutral {
    color: var(--active-color);
}

.negative {
    color: var(--color-red) !important;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 0.9rem;
    align-items: start;
}

.finance-dashboard {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.78fr);
}

.panel {
    padding: clamp(1rem, 3vw, 1.25rem);
}

.holdings-table-panel {
    grid-row: span 2;
}

.split-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.panel-chip {
    flex: 0 0 auto;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    color: var(--active-color);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--active-color-light);
}

.finance-table,
.prospect-list {
    display: grid;
    gap: 0.75rem;
}

.finance-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.45fr) repeat(5, minmax(86px, 0.7fr));
    gap: 0.7rem;
    align-items: center;
    min-height: 72px;
    padding: 0.85rem;
    border-radius: 8px;
    background: var(--odd-row-background);
}

.finance-row > div,
.symbol-cell,
.prospect-price,
.scenario-card > div:first-child {
    display: grid;
    gap: 0.18rem;
}

.row-value {
    text-align: right;
}

.compact-row {
    grid-template-columns: minmax(108px, 0.7fr) minmax(128px, 1.1fr) repeat(3, minmax(80px, 0.6fr));
}

.option-panel {
    display: grid;
    gap: 0.85rem;
}

.option-summary {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 8px;
    background: var(--odd-row-background);
}

.option-title-row,
.prospect-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.option-title-row > div {
    display: grid;
    gap: 0.2rem;
}

.option-title-row span:not(.panel-chip),
.prospect-card h2 span {
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 400;
}

.outcome-grid,
.scenario-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.outcome-grid > div {
    display: grid;
    gap: 0.15rem;
    min-height: 64px;
    padding: 0.65rem;
}

.outcome-grid dd,
.scenario-card dd {
    margin: 0;
    font-weight: 500;
}

.empty-state {
    margin: 0;
    padding: 0.9rem;
    border-radius: 8px;
    color: var(--muted-color);
    background: var(--odd-row-background);
}

.prospect-list {
    margin-top: 0.9rem;
}

.prospect-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--card-shadow);
}

.prospect-card h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.prospect-price {
    text-align: right;
}

.prospect-price strong {
    font-size: 1.4rem;
    font-weight: 500;
}

.contract-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.contract-strip > div {
    display: grid;
    gap: 0.2rem;
    min-height: 66px;
    padding: 0.7rem;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.scenario-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    background: var(--odd-row-background);
}

.scenario-card strong {
    font-size: 1.35rem;
    font-weight: 500;
}

.hero-stat-grid strong,
.finance-row strong,
.allocation-row strong,
.holding-row strong,
.option-title-row strong,
.option-summary strong,
.contract-strip strong,
.probability-row strong,
.prospect-card strong {
    font-weight: 500;
}

.finance-row strong.positive,
.finance-row strong.negative,
.option-summary .positive,
.option-summary .negative,
.contract-strip .positive,
.scenario-card .positive,
.scenario-card .negative,
.prospect-card .positive,
.prospect-card .negative {
    font-weight: 600;
}

.probability-panel {
    padding-top: 0.2rem;
}

.probability-bars {
    display: grid;
    gap: 0.65rem;
}

.probability-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 48px;
    gap: 0.7rem;
    align-items: center;
}

.probability-stack {
    position: relative;
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef3f7;
}

.probability-track {
    position: absolute;
    left: 0;
    height: 50%;
    border-radius: inherit;
}

.probability-track.simulated {
    top: 0;
    background: var(--color-blue);
}

.probability-track.calculated {
    bottom: 0;
    background: var(--color-green);
}

.activity-panel {
    grid-column: 1 / -1;
}

.allocation-bars,
.holding-list {
    display: grid;
    gap: 0.9rem;
}

.allocation-row {
    display: grid;
    gap: 0.45rem;
}

.allocation-row > div:first-child,
.holding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.allocation-row span {
    color: var(--muted-color);
}

.bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef3f7;
}

.bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.holding-row {
    min-height: 68px;
    padding: 0.85rem;
    border-radius: 8px;
    background: var(--odd-row-background);
}

.holding-row > div {
    display: grid;
    gap: 0.2rem;
}

.holding-row > div:last-child {
    text-align: right;
}

.activity-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted-color);
}

.projects-panel {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.projects-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.project-toolbar-button {
    min-width: 0;
}

.project-toolbar-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.project-toolbar-button:disabled:hover {
    background: #fff;
    box-shadow: none;
}

.projects-selection-chip {
    white-space: nowrap;
}

.projects-panel .ec-compact-grid {
    border-radius: 8px;
    box-shadow: none;
}

.projects-panel .ec-grid-head {
    font-weight: 600;
}

.projects-panel .ec-grid-cell:not(.ec-select-cell)::before {
    font-weight: 500;
}

.projects-panel .ec-grid-body .ec-grid-row.ec-selected {
    font-weight: 600;
}

.project-name-cell {
    color: var(--text-color);
    font-weight: 500;
}

.projects-panel .ec-grid-body .ec-grid-row.ec-selected .project-name-cell {
    font-weight: 600;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 0.85rem 0 0.2rem;
    color: var(--muted-color);
    font-size: 0.85rem;
    text-align: center;
}

.app-footer p {
    margin: 0;
}

.footer-install-action {
    flex: 0 0 auto;
}

.toast-root {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10000;
    display: grid;
    gap: 0.6rem;
    width: min(360px, calc(100vw - 32px));
}

.toast {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--card-shadow);
    background: var(--active-color);
}

.toast.error {
    background: var(--color-red);
}

.toast.warning {
    background: var(--color-orange);
}

.toast.success {
    background: var(--color-green);
}

.offline-view,
.noscript-panel {
    width: min(430px, calc(100vw - 32px));
    margin: 10vh auto 0;
    padding: 2rem;
    text-align: center;
}

.offline-view h1,
.noscript-panel h1 {
    text-align: center;
}

.offline-view p,
.noscript-panel p {
    color: var(--muted-color);
}

@media (max-width: 860px) {
    .login-screen {
        grid-template-columns: 1fr;
        align-items: center;
        align-content: center;
    }

    .auth-visual {
        height: auto;
        max-height: none;
        min-height: auto;
        gap: 2rem;
    }

    .auth-panel {
        height: auto;
        max-height: none;
    }

    .auth-visual .animated-logo-host,
    .auth-visual .animated-logo-svg {
        max-height: min(420px, 64vh);
    }

    .market-strip {
        min-height: 170px;
    }

    .metric-grid,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .workspace-hero,
    .prospects-hero,
    .projects-hero,
    .finance-dashboard,
    .scenario-grid,
    .contract-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-grid > .panel {
        grid-column: 1 / -1;
    }

    .finance-row,
    .compact-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .symbol-cell,
    .row-value {
        text-align: left;
    }

    .holding-detail-row .symbol-cell {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .screen {
        padding-inline: 14px;
    }

    .app-topbar,
    .portfolio-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .icon-action,
    .nav-action {
        flex: 1;
        justify-content: center;
    }

    .header-user {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .app-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .projects-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .projects-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .projects-selection-chip {
        text-align: center;
    }

    .footer-install-action {
        width: 100%;
        justify-content: center;
    }

    .social-login-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid,
    .outcome-grid,
    .scenario-card dl,
    .finance-row,
    .compact-row {
        grid-template-columns: 1fr;
    }

    .holding-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .holding-row > div:last-child {
        text-align: left;
    }

    .prospect-card-header,
    .option-title-row,
    .split-heading {
        flex-direction: column;
    }

    .prospect-price {
        text-align: left;
    }

    .probability-row {
        grid-template-columns: 68px minmax(0, 1fr) 42px;
        gap: 0.55rem;
    }
}
