* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0d1117;
    color: #f0f6fc;
    font-family: "Segoe UI", Arial, sans-serif;
}
.topbar{

    height:70px;

    background:#161b22;

    border-bottom:1px solid #30363d;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 25px;

}

.logo{

    font-size:28px;

    font-weight:bold;

    color:#00d084;

}

.version{

    color:#8b949e;

}

.container{

    display:flex;

}

.sidebar{

    width:230px;

    background:#161b22;

    min-height:calc(100vh - 70px);

    padding-top:20px;

}

.sidebar a{

    display:block;

    color:white;

    text-decoration:none;

    padding:15px 20px;

}

.sidebar a:hover{

    background:#21262d;

}

.content{

    flex:1;

    padding:30px;

}.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #00d084;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    font-size: 34px;
}

.subtitle {
    margin: 8px 0 0;
    color: #8b949e;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid #30363d;
    border-radius: 999px;
    background: #161b22;
    color: #c9d1d9;
    font-size: 14px;
    font-weight: 600;
}

.market-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b949e;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.portfolio-card {
    padding: 24px;
    border: 1px solid #30363d;
    border-radius: 14px;
    background: #161b22;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-label {
    margin: 0 0 5px;
    color: #8b949e;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-header h2 {
    margin: 0;
    color: #58a6ff;
    font-size: 24px;
}

.portfolio-icon {
    font-size: 30px;
}

.portfolio-value {
    margin: 28px 0;
    color: #f0f6fc;
    font-size: 38px;
    font-weight: 700;
}

.portfolio-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.portfolio-details div {
    padding: 14px;
    border-radius: 9px;
    background: #0d1117;
}

.portfolio-details span,
.combined-details span {
    display: block;
    margin-bottom: 6px;
    color: #8b949e;
    font-size: 12px;
}

.portfolio-details strong {
    font-size: 16px;
}

.neutral-value {
    color: #c9d1d9;
}

.card-link {
    color: #00d084;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

.combined-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #30363d;
    border-radius: 14px;
    background: #161b22;
}

.combined-value {
    margin: 5px 0 0;
    font-size: 32px;
    font-weight: 700;
}

.combined-details {
    text-align: right;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-card {
    padding: 24px;
    border: 1px solid #30363d;
    border-radius: 14px;
    background: #161b22;
}

.full-width {
    grid-column: 1 / -1;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0;
    color: #58a6ff;
    font-size: 20px;
}

.section-title a {
    color: #00d084;
    text-decoration: none;
    font-size: 13px;
}

.empty-state {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #30363d;
    border-radius: 10px;
    color: #8b949e;
}

.market-list {
    display: flex;
    flex-direction: column;
}

.market-list div {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #30363d;
}

.market-list div:last-child {
    border-bottom: none;
}

.market-list strong {
    color: #8b949e;
    font-size: 13px;
}

.assistant-message {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border-radius: 10px;
    background: #0d1117;
}

.assistant-icon {
    font-size: 28px;
}

.assistant-message p {
    margin-bottom: 0;
    color: #8b949e;
}

@media (max-width: 900px) {
    .portfolio-summary,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .page-heading,
    .combined-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .combined-details {
        text-align: left;
    }
}.portfolio-section-heading {
    margin-top: 28px;
    margin-bottom: 14px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}

.portfolio-section-heading h2 {
    margin: 0;
    font-size: 26px;
}

.portfolio-section-heading .subtitle {
    margin-bottom: 0;
}

.assistant-divider {
    height: 1px;
    background: #334155;
    margin: 18px 0;
    border: 0;
}