
.economy-investment-trade-log-item {
    display: grid;
    gap: 0;
}

.economy-investment-trade-log-item.is-active {
    gap: 10px;
}

.economy-investment-inline-journal {
    margin: -2px 0 4px 20px;
    border: 1px solid rgba(22, 163, 74, 0.24);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.98));
    padding: 14px;
    box-shadow: 0 14px 24px rgba(22, 101, 52, 0.1);
}

.economy-investment-journal-save-status:empty {
    display: none;
}

.economy-investment-journal-save-status {
    margin: 0 0 12px;
}

.economy-investment-journal-form--inline .economy-market-section-head {
    border-bottom: 1px solid rgba(22, 163, 74, 0.14);
    padding-bottom: 10px;
}

.economy-investment-journal-form--inline [data-investment-journal-field="reason"] {
    min-height: 96px;
}

body[data-economy-step="market"] .economy-investment-post-form .economy-field,
body[data-economy-step="market"] .economy-investment-journal-form .economy-field {
    color: #153760;
}

body[data-economy-step="market"] .economy-investment-post-form input,
body[data-economy-step="market"] .economy-investment-post-form textarea,
body[data-economy-step="market"] .economy-investment-post-form select,
body[data-economy-step="market"] .economy-investment-journal-form input,
body[data-economy-step="market"] .economy-investment-journal-form textarea,
body[data-economy-step="market"] .economy-investment-journal-form select {
    color: #10284d;
    -webkit-text-fill-color: #10284d;
    background: rgba(255, 255, 255, 0.96);
    caret-color: #10284d;
}

body[data-economy-step="market"] .economy-investment-post-form input::placeholder,
body[data-economy-step="market"] .economy-investment-post-form textarea::placeholder,
body[data-economy-step="market"] .economy-investment-journal-form input::placeholder,
body[data-economy-step="market"] .economy-investment-journal-form textarea::placeholder {
    color: #526b87;
    -webkit-text-fill-color: #526b87;
    opacity: 1;
}

.economy-investment-trade-log-list em {
    justify-self: end;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    padding: 6px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 1000;
}

.economy-investment-trade-type,
.economy-investment-selected-trade span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.economy-investment-trade-type.is-buy,
.economy-investment-selected-trade span.is-buy {
    background: #dc2626;
}

.economy-investment-trade-type.is-sell,
.economy-investment-selected-trade span.is-sell {
    background: #2563eb;
}

.economy-investment-selected-trade {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 16px;
    background: #f0fdf4;
    padding: 12px 14px;
}

.economy-investment-selected-trade strong {
    min-width: 0;
    color: #10284d;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.economy-investment-selected-trade small {
    grid-column: 2;
    color: #526b87;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.economy-investment-board-list span,
.economy-investment-post-head span,
.economy-investment-journal-list span,
.economy-investment-habit-card span {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 1000;
}

.economy-investment-board-list small,
.economy-investment-post-head p,
.economy-investment-journal-list small {
    color: #64748b;
    font-weight: 850;
}

.economy-investment-board-list em,
.economy-investment-post-head em,
.economy-investment-journal-list em {
    justify-self: start;
    border-radius: 999px;
    background: #fff3bd;
    color: #7a4b00;
    padding: 6px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 1000;
}

.economy-investment-post-detail,
.economy-investment-journal-list article,
.economy-investment-habit-card article {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 22px rgba(30, 64, 175, 0.07);
}

.economy-investment-post-detail--empty {
    display: grid;
    min-height: 240px;
    place-items: center;
}

.economy-investment-post-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.economy-investment-post-head h3 {
    margin: 4px 0;
    color: #10284d;
    font-size: 24px;
}

.economy-investment-post-sections {
    margin-top: 14px;
}

.economy-investment-post-sections section,
.economy-investment-comment-list article {
    border-radius: 14px;
    background: #f8fbff;
    padding: 12px;
}

.economy-investment-post-sections strong,
.economy-investment-comments h4 {
    color: #153760;
    font-weight: 1000;
}

.economy-investment-post-sections p,
.economy-investment-comment-list p,
.economy-investment-journal-list p {
    margin: 6px 0 0;
    color: #526b87;
    font-weight: 850;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.economy-investment-reactions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.economy-investment-reactions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 12px;
    font-weight: 1000;
}

.economy-investment-reactions span {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    text-align: left;
    overflow-wrap: anywhere;
}

.economy-investment-comments {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

body[data-economy-step="market"] .economy-investment-board-shell {
    border: 2px solid rgba(116, 70, 24, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 245, 213, 0.96), rgba(252, 231, 172, 0.94)),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.68), transparent 34%);
    box-shadow: 0 20px 36px rgba(83, 49, 14, 0.18);
}

body[data-economy-step="market"] .economy-investment-board-intro {
    border-color: rgba(91, 54, 18, 0.42);
    background:
        linear-gradient(180deg, rgba(122, 72, 23, 0.92), rgba(88, 50, 16, 0.94)),
        linear-gradient(90deg, rgba(255, 226, 160, 0.18), rgba(255, 255, 255, 0));
    color: #fff7df;
    box-shadow: inset 0 0 0 1px rgba(255, 244, 208, 0.18), 0 12px 22px rgba(80, 43, 12, 0.2);
}

body[data-economy-step="market"] .economy-investment-board-intro span,
body[data-economy-step="market"] .economy-investment-board-intro h3,
body[data-economy-step="market"] .economy-investment-board-intro p,
body[data-economy-step="market"] .economy-investment-board-toolbar strong {
    color: #fff7df;
}

body[data-economy-step="market"] .economy-investment-board-list button,
body[data-economy-step="market"] .economy-investment-post-detail,
body[data-economy-step="market"] .economy-investment-post-form {
    border: 1px solid rgba(139, 92, 38, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.96)),
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.7), transparent 30%);
    box-shadow: 0 12px 22px rgba(92, 56, 18, 0.13);
}

body[data-economy-step="market"] .economy-investment-board-list button.is-active,
body[data-economy-step="market"] .economy-investment-board-list button.is-mine {
    border-color: rgba(180, 83, 9, 0.55);
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

body[data-economy-step="market"] .economy-investment-board-list span,
body[data-economy-step="market"] .economy-investment-post-head span {
    color: #a16207;
}

body[data-economy-step="market"] .economy-investment-board-list small,
body[data-economy-step="market"] .economy-investment-post-head p {
    color: #74512b;
}

body[data-economy-step="market"] .economy-investment-board-list em,
body[data-economy-step="market"] .economy-investment-post-head em {
    background: #fde68a;
    color: #713f12;
}

body[data-economy-step="market"] .economy-investment-post-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

body[data-economy-step="market"] .economy-investment-owner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

body[data-economy-step="market"] .economy-button.small.danger {
    border-color: rgba(185, 28, 28, 0.2);
    background: #fff1f2;
    color: #b91c1c;
}

body[data-economy-step="market"] .economy-investment-post-sections section,
body[data-economy-step="market"] .economy-investment-comment-list article {
    background: rgba(255, 247, 237, 0.9);
}

.economy-investment-journal-list article {
    display: grid;
    gap: 10px;
}

.economy-investment-journal-list article div {
    display: grid;
    gap: 4px;
}

.economy-investment-habit-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.economy-investment-habit-card strong {
    display: block;
    margin-top: 6px;
    color: #10284d;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.economy-investment-pledge-list label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 14px;
    background: #f0fdf4;
    padding: 12px;
    color: #14532d;
    font-weight: 900;
    line-height: 1.5;
}

.economy-investment-pledge-list input {
    margin-top: 3px;
}

@media (max-width: 1080px) {
    .economy-live-summary,
    .economy-live-grid,
    .economy-bank-hero-card,
    .economy-bank-workspace,
    .economy-bank-stat-grid,
    .economy-bank-mission-grid,
    .economy-bank-term-grid,
    .economy-bank-task-row,
    .economy-bank-action-grid,
    .economy-bank-workflow-grid,
    .economy-bank-product-compare,
    .economy-market-exchange,
    .economy-market-toolbar,
    .economy-market-hero-card,
    .economy-market-roadmap-grid,
    .economy-market-mission-grid,
    .economy-market-asset-grid {
        grid-template-columns: 1fr 1fr;
    }

    .economy-market-tabs,
    .economy-investment-habit-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .economy-investment-board-layout {
        grid-template-columns: 1fr;
    }

    .economy-investment-board-intro {
        display: grid;
    }

    .economy-investment-board-toolbar {
        justify-content: space-between;
        min-width: 0;
    }

    .economy-bank-exchange {
        grid-column: 1 / -1;
    }

    .economy-bank-task-panel {
        grid-template-columns: 1fr;
    }

    .economy-bank-page-head.split-head,
    .economy-bank-route-map {
        grid-template-columns: 1fr;
    }

    .economy-bank-balance-pills {
        justify-content: flex-start;
    }

    .economy-market-hero-copy,
    .economy-market-section-head,
    .economy-invest-basket {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .economy-live-head,
    .economy-bank-panel-head,
    .economy-bank-section-head,
    .economy-market-section-head,
    .economy-shop-foot,
    .economy-stock-price,
    .economy-purchase-list article,
    .economy-bank-history article,
    .economy-holding-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .economy-live-summary,
    .economy-live-grid,
    .economy-bank-hero-card,
    .economy-bank-workspace,
    .economy-bank-stat-grid,
    .economy-bank-mission-grid,
    .economy-bank-term-grid,
    .economy-bank-task-row,
    .economy-bank-action-grid,
    .economy-bank-workflow-grid,
    .economy-bank-product-compare,
    .economy-bank-saving-alert,
    .economy-bank-contract-list article,
    .economy-bank-task-panel,
    .economy-bank-page-head.split-head,
    .economy-bank-steps,
    .economy-bank-route-map,
    .economy-bank-balance-pair,
    .economy-bank-exchange,
    .economy-bank-exchange-cards,
    .economy-market-exchange,
    .economy-market-toolbar,
    .economy-exchange-grid,
    .economy-market-hero-card,
    .economy-market-roadmap-grid,
    .economy-market-mission-grid,
    .economy-market-asset-grid,
    .economy-invest-holding-grid,
    .economy-market-tabs,
    .economy-investment-form-grid,
    .economy-investment-reactions,
    .economy-investment-habit-card {
        grid-template-columns: 1fr;
    }

    .economy-live-head h2 {
        font-size: 24px;
    }

    .economy-bank-section-head h3,
    .economy-bank-learning-card h3 {
        font-size: 23px;
    }

    .economy-bank-mission-grid button {
        min-height: 142px;
    }

    .economy-market-hero-card {
        padding: 20px;
    }

    .economy-bank-hero-card {
        padding: 20px;
    }

    .economy-bank-hero-copy h2 {
        font-size: 34px;
    }

    .economy-bank-contract-list em {
        white-space: normal;
    }

    .economy-bank-route-map i {
        display: none;
    }

    .economy-bank-page-head h2 {
        font-size: 28px;
    }

    .economy-market-hero-side img {
        max-height: 130px;
    }

    .economy-investment-trade-log-list button,
    .economy-investment-selected-trade {
        grid-template-columns: 1fr;
    }

    .economy-investment-trade-log-list small,
    .economy-investment-selected-trade small {
        grid-column: auto;
    }

    .economy-investment-trade-log-list em {
        justify-self: start;
    }

    .economy-investment-inline-journal {
        margin-left: 0;
        padding: 12px;
    }

    .economy-market-mission-grid p {
        min-height: 0;
    }
}

.economy-live-market--compact {
    gap: 12px;
}

.economy-market-command,
.economy-market-list-panel,
.economy-market-detail-panel,
.economy-market-mission-bar,
.economy-invest-basket--mini {
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.09);
}

.economy-market-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
}

.economy-market-command h2 {
    margin: 4px 0 0;
    color: #10284d;
    font-size: 30px;
    line-height: 1.18;
}

.economy-market-command p {
    margin: 6px 0 0;
    color: #315276;
    font-weight: 900;
}

.economy-market-command-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.economy-market-command-pills span,
.economy-market-step-strip span,
.economy-market-mission-bar span,
.economy-stock-market {
    border-radius: 999px;
    background: #eef6ff;
    color: #1d4ed8;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 1000;
}

.economy-market-command-pills .is-up,
.economy-market-asset-strip .is-up em,
.economy-market-command-pills .is-down,
.economy-market-asset-strip .is-down em {
    color: #0b7a4b;
}

.economy-market-command-pills .is-down,
.economy-market-asset-strip .is-down em {
    color: #dc2626;
}

.economy-market-segment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.economy-market-segment-tabs button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
}

.economy-market-segment-tabs button span {
    display: none;
}

.economy-market-asset-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.economy-market-asset-strip article {
    border-radius: 16px;
    padding: 12px 14px;
}

.economy-market-asset-strip article div {
    justify-content: flex-start;
}

.economy-market-asset-strip p {
    display: none;
}

.economy-market-asset-strip em {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    font-size: 18px;
}

.economy-market-asset-strip em small {
    color: #47607e;
    font-size: 12px;
    font-style: normal;
    font-weight: 1000;
    line-height: 1.2;
}

.economy-market-step-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.economy-market-step-strip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.9);
    color: #47607e;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.economy-market-step-strip i,
.economy-market-mission-bar i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-style: normal;
}

.economy-market-step-strip .is-done,
.economy-market-mission-bar .is-done {
    background: #ecfdf5;
    color: #047857;
}

.economy-market-step-strip .is-active {
    background: #fff7d6;
    color: #8a4b00;
}

.economy-market-rule-strip {
    gap: 7px;
}

.economy-market-rule-strip span {
    padding: 7px 10px;
    font-size: 12px;
}

.economy-market-workbench {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 14px;
    align-items: start;
}

.economy-market-list-panel,
.economy-market-detail-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.economy-market-panel-head,
.economy-market-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.economy-market-panel-head span,
.economy-market-detail-head span,
.economy-invest-basket--mini span {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 1000;
}

.economy-market-panel-head h3,
.economy-market-detail-head h3 {
    margin: 4px 0 0;
    color: #10284d;
    font-size: 23px;
    line-height: 1.25;
}

.economy-market-panel-head em {
    border-radius: 999px;
    background: #fff3bd;
    color: #7a4b00;
    padding: 7px 10px;
    font-style: normal;
    font-weight: 1000;
}

.economy-market-list-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.economy-market-list-toolbar .economy-field {
    margin: 0;
}

.economy-market-stock-list {
    display: grid;
    gap: 9px;
    max-height: min(62vh, 640px);
    overflow: auto;
    padding-right: 4px;
}

.economy-stock-card-compact {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    width: 100%;
    min-height: 92px;
    border-radius: 16px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
}
