.sim-page .app-bar-link {
    text-decoration: none;
    color: inherit;
    gap: 0.35rem;
}

.sim-app {
    padding-bottom: 2rem;
}

.sim-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--green);
    margin: 0.25rem 0;
}

.sim-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.sim-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.sim-kpi {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
}

.sim-kpi.wide {
    grid-column: 1 / -1;
}

.sim-kpi .label {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sim-kpi .value {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.sim-kpi .value.up {
    color: var(--green);
}

.sim-kpi .value.down {
    color: var(--red);
}

.sim-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 140px;
    margin: 1rem 0 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sim-bar {
    flex: 0 0 6px;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
    background: var(--gray);
    position: relative;
}

.sim-bar.up {
    background: linear-gradient(180deg, #22c55e, var(--green));
}

.sim-bar.down {
    background: linear-gradient(180deg, #f87171, var(--red));
}

.sim-bar[data-label] {
    cursor: default;
}

.sim-daily-table-wrap {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.sim-table th,
.sim-table td {
    padding: 0.5rem 0.65rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.sim-table th:first-child,
.sim-table td:first-child {
    text-align: left;
}

.sim-table th {
    background: var(--bg-elevated);
    position: sticky;
    top: 0;
    font-weight: 600;
    color: var(--muted);
}

.sim-sector {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.sim-sector:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sim-sector-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sim-sector-head strong {
    font-size: 0.95rem;
}

.sim-sector-bar {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.sim-sector-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #22c55e);
    border-radius: 6px;
}

.sim-sector-reason {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.sim-holding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
}

.sim-holding:last-child {
    border-bottom: none;
}

.sim-holding .code {
    font-size: 0.75rem;
    color: var(--muted);
}

.sim-hist-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem;
    margin-bottom: 0.625rem;
}

.sim-hist-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.sim-hist-card .note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.sim-hist-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

@media (min-width: 600px) {
    .sim-kpis {
        grid-template-columns: repeat(4, 1fr);
    }

    .sim-kpi.wide {
        grid-column: span 2;
    }
}
