.forum-auth-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #08111f;
    color: #f5f7fb;
    font-family: Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.forum-auth-card {
    width: min(620px, 100%);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 24px;
    background: #101d2e;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.forum-auth-card--wide {
    width: min(780px, 100%);
}

.forum-auth-back,
.forum-auth-switch a {
    color: #4fd1c5;
    text-decoration: none;
}

.forum-auth-back {
    display: inline-block;
    margin-bottom: 24px;
}

.forum-auth-eyebrow {
    color: #4fd1c5;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.forum-auth-card h1 {
    margin: 10px 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.forum-auth-intro,
.forum-auth-help,
.forum-auth-switch {
    color: #aab8cb;
    line-height: 1.6;
}

.forum-auth-form label {
    display: block;
    margin: 22px 0 8px;
    font-weight: 750;
}

.forum-auth-form input,
.forum-auth-form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background: #0b1726;
    color: #f5f7fb;
    font: inherit;
}

.forum-auth-form button {
    width: 100%;
    margin-top: 24px;
    padding: 13px 16px;
    border: 0;
    border-radius: 12px;
    background: #4fd1c5;
    color: #07131e;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.forum-auth-message {
    margin: 18px 0;
    padding: 13px 15px;
    border-radius: 12px;
    line-height: 1.5;
}

.forum-auth-message--error {
    background: rgba(255, 123, 123, .13);
    color: #ffaaaa;
}

.forum-auth-message--success {
    background: rgba(79, 209, 197, .13);
    color: #8be8df;
}

.forum-auth-message--info {
    background: rgba(111, 168, 255, .12);
    color: #b9d3ff;
}

.forum-account {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.forum-account-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid
        rgba(255, 255, 255, .08);
}

.forum-account-row span {
    color: #aab8cb;
}

.forum-auth-logout {
    background: rgba(255, 255, 255, .10)
        !important;
    color: #f5f7fb !important;
}

.forum-account-actions {
    margin-top: 18px;
}

.forum-auth-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(12, 27, 45, .78);
}

.forum-auth-panel__copy {
    display: grid;
    gap: 5px;
}

.forum-auth-panel__copy span {
    color: #9fb0c5;
}

.forum-auth-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
}

.forum-auth-button--primary {
    background: #4fd1c5;
    color: #07131e;
}

.forum-auth-button--secondary {
    border: 1px solid rgba(255, 255, 255, .14);
    color: #f5f7fb;
}

.forum-auth-section {
    margin-top: 24px;
}

.forum-auth-section h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.forum-auth-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 20px;
}

.forum-auth-summary__item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(12, 27, 45, .62);
}

.forum-auth-summary__label {
    color: #8ea3bc;
    font-size: .85rem;
    letter-spacing: .02em;
}

.forum-auth-summary__value {
    font-size: 1.05rem;
    line-height: 1.35;
}

.forum-auth-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #c9d4e3;
    line-height: 1.6;
}

.forum-auth-list li + li {
    margin-top: 8px;
}

@media (max-width: 700px) {
    .forum-auth-summary {
        grid-template-columns: 1fr;
    }

    .forum-auth-panel,
    .forum-account-row {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-auth-panel__actions {
        width: 100%;
    }

    .forum-auth-button {
        flex: 1;
    }
}
.forum-auth-body--dashboard {
    place-items: start center;
}

.forum-auth-card--dashboard {
    width: min(1120px, 100%);
}

.private-dashboard-section {
    margin-top: 34px;
}

.private-dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.private-dashboard-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.private-dashboard-kicker {
    color: #4fd1c5;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.private-dashboard-heading__note {
    color: #8ea3bc;
    font-size: .88rem;
}

.private-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.private-metric-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(12, 27, 45, .72);
}

.private-metric-card span,
.private-metric-card small {
    color: #8ea3bc;
}

.private-metric-card span {
    font-size: .84rem;
}

.private-metric-card strong {
    overflow: hidden;
    font-size: 1.35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.private-chart-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(12, 27, 45, .68);
}

.private-chart-card:last-child {
    grid-column: 1 / -1;
}

.private-chart-card h3 {
    margin: 0;
    font-size: 1rem;
}

.private-chart-card header p {
    min-height: 38px;
    margin: 6px 0 14px;
    color: #8ea3bc;
    font-size: .88rem;
    line-height: 1.45;
}

.private-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.private-chart__grid {
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1;
}

.private-chart__line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.private-chart__line--teal,
.private-chart__dot--teal {
    stroke: #4fd1c5;
    background: #4fd1c5;
}

.private-chart__line--blue,
.private-chart__dot--blue {
    stroke: #6fa8ff;
    background: #6fa8ff;
}

.private-chart__line--gold,
.private-chart__dot--gold {
    stroke: #f1c75b;
    background: #f1c75b;
}

.private-chart__line--rose,
.private-chart__dot--rose {
    stroke: #ff8fa3;
    background: #ff8fa3;
}

.private-chart__line--violet,
.private-chart__dot--violet {
    stroke: #b59cff;
    background: #b59cff;
}

.private-chart__dates {
    display: flex;
    justify-content: space-between;
    margin-top: -2px;
    color: #7f93aa;
    font-size: .76rem;
}

.private-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: #c9d4e3;
    font-size: .82rem;
}

.private-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.private-chart__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.private-portfolio-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.private-portfolio-summary article {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(12, 27, 45, .58);
}

.private-portfolio-summary span {
    color: #8ea3bc;
    font-size: .82rem;
}

.private-portfolio-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.private-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
}

.private-portfolio-table {
    width: 100%;
    min-width: 890px;
    border-collapse: collapse;
    background: rgba(12, 27, 45, .58);
}

.private-portfolio-table th,
.private-portfolio-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    text-align: right;
    white-space: nowrap;
}

.private-portfolio-table th {
    color: #8ea3bc;
    font-size: .76rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.private-portfolio-table th:first-child,
.private-portfolio-table td:first-child {
    text-align: left;
}

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

.private-portfolio-table td:first-child {
    display: grid;
    gap: 3px;
}

.private-portfolio-table td:first-child span {
    color: #7f93aa;
    font-size: .78rem;
}

.private-dashboard-empty {
    padding: 22px;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: #8ea3bc;
    text-align: center;
}

.private-export-section {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.private-export-explanations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.private-export-explanations .forum-auth-section {
    margin-top: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(12, 27, 45, .48);
}

.private-export-explanations h3 {
    margin: 0 0 8px;
}

@media (max-width: 900px) {
    .private-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .private-chart-grid,
    .private-export-explanations {
        grid-template-columns: 1fr;
    }

    .private-chart-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .forum-auth-card--dashboard {
        padding: 24px 18px;
    }

    .private-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .private-dashboard-heading__note {
        margin-top: -8px;
    }

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

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

.private-chart-shell {
    position: relative;
}

.private-chart__axis {
    stroke: rgba(255, 255, 255, .17);
    stroke-width: 1;
}

.private-chart__axis-label {
    fill: #7f93aa;
    font-size: 11px;
    font-family: Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.private-chart__guide {
    stroke: rgba(255, 255, 255, .28);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    pointer-events: none;
}

.private-chart__point {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    cursor: crosshair;
    outline: none;
    transition: fill .12s ease, stroke .12s ease;
}

.private-chart__point--teal {
    --private-chart-point-color: #4fd1c5;
}

.private-chart__point--blue {
    --private-chart-point-color: #6fa8ff;
}

.private-chart__point--gold {
    --private-chart-point-color: #f1c75b;
}

.private-chart__point--rose {
    --private-chart-point-color: #ff8fa3;
}

.private-chart__point--violet {
    --private-chart-point-color: #b59cff;
}

.private-chart__point:hover,
.private-chart__point:focus,
.private-chart__point--active {
    fill: var(--private-chart-point-color);
    stroke: #08111f;
}

.private-chart-tooltip {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 3px;
    min-width: 142px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    background: rgba(6, 17, 31, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
    color: #f5f7fb;
    font-size: .78rem;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

.private-chart-tooltip strong {
    color: #aab8cb;
    font-size: .72rem;
    font-weight: 650;
}

.private-chart-tooltip span {
    color: #c9d4e3;
}

.private-chart-tooltip b {
    font-size: .95rem;
}

.private-chart-tooltip[hidden],
.private-chart__guide[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .private-chart__point {
        transition: none;
    }
}

/* Phase 10B · personal bond alert + web push */
.private-bond-alert-section {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 28px;
}

.private-bond-alert-intro {
    max-width: 820px;
    margin-bottom: 18px;
}

.private-bond-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.private-bond-alert-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.private-bond-alert-card h3,
.private-bond-alert-guide h3 {
    margin: 0;
}

.private-bond-alert-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 750;
}

.private-bond-alert-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #54d8cb;
}

.private-bond-alert-field {
    display: grid;
    gap: 7px;
}

.private-bond-alert-field > span:first-child {
    font-weight: 700;
}

.private-bond-alert-field small {
    color: #8ea3bc;
    line-height: 1.45;
}

.private-bond-alert-input-row {
    display: flex;
    gap: 9px;
    align-items: center;
}

.private-bond-alert-input-row input {
    width: 132px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 8px 10px;
    background: #0b1b2b;
    color: #f5f7fb;
    font: inherit;
}

.private-bond-alert-actions {
    justify-content: flex-start;
}

.private-bond-alert-actions .forum-auth-button[hidden] {
    display: none;
}

.private-bond-alert-actions .forum-auth-button--secondary {
    background: rgba(255, 255, 255, .07);
    color: #f5f7fb;
}

.private-bond-alert-actions .forum-auth-button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.private-bond-alert-status {
    min-height: 24px;
    margin: 0;
}

.private-bond-alert-status[data-status-kind="success"] {
    color: #7be0b8;
}

.private-bond-alert-status[data-status-kind="warning"] {
    color: #f0ca78;
}

.private-bond-alert-guide {
    margin-top: 14px;
}

.private-bond-alert-guide .forum-auth-list {
    margin-bottom: 10px;
}

@media (max-width: 760px) {
    .private-bond-alert-grid {
        grid-template-columns: 1fr;
    }

    .private-bond-alert-actions {
        align-items: stretch;
    }

    .private-bond-alert-actions .forum-auth-button {
        width: 100%;
    }
}
